Announcement

Collapse
No announcement yet.

Stochastic DDE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stochastic DDE

    I've been having a real difficult time coding the stochastic indicator into a DDE EFS file. I have similar files for bollinger bands, CCI, MACD so I tried to copy those files and just change a few things but I can't get it to work. I wanted to see if anyone out there has just the basic stochastic EFS that will send that data into Excel over DDE. Thanks!

    Jeff

  • #2
    Jeff
    Enclosed is a basic script for the Stochastic%K that was written using the example provided in this article of the EFS KnowledgeBase on the DDE Object.
    Load the efs on an IBM chart and in Excel use =eSignal|EFS!StochKIBM as the DDE formula. The result is shown in the image that follows the code.
    Alex

    PHP Code:
    var dde = new DDEOutput("StochK" getSymbol());
     
    function 
    preMain() {
        
    setPriceStudy(false);
    }
     
    var 
    study null;
     
    function 
    main() {
     
        if(
    study==nullstudy stochK(14,3,3);
     
        var 
    vRet study.getValue(0);
        if(
    vRet != nulldde.set(vRet);
     
        return 
    vRet;

    Comment

    Working...
    X