Announcement

Collapse
No announcement yet.

Better MACD

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

  • Better MACD

    I tried to convert this TS-Code with the Formula Wizard (and EFS2) and get an error message "line 10: can not find internal class to construct builtin study."

    Could somebody help?

    Regards Stephan





    inputs:
    FastLen( 12),
    SlowLen( 26),
    Length( 10 ),
    StDv(1);

    VARS:
    BB_Macd(0),
    Avg(0),
    SDev(0),
    Upper_band(0),
    Lower_band(0);

    BB_Macd= MACD( Close, FastLen, SlowLen ) ;
    Avg = XAverage(BB_Macd,Length);
    SDev = StdDev( BB_Macd, Length ) ;
    Upper_Band = Avg + StDv * SDev ;
    Lower_Band = Avg - StDv * SDev ;

    Plot1(BB_Macd);
    Plot2(Upper_Band);
    Plot3(Lower_Band);
    Attached Files

  • #2
    Stephan
    There was an error in declaring the Bollinger of MACD study. The attached revision should fix it.
    To see the change open the two studies with the Editor and compare them
    Alex

    Attached Files

    Comment


    • #3
      Hi Alexis,

      your code works fine with esignal 7.8.

      With version 7.9 and efs 2 there is still an error message "An invalid argument was encountered" when plotting the formula on a chart. Your added "new" to new BollingerStudy disappeared when I open the code with the wizard, while opening it with the normal editor it is still visible.

      Stephan

      Comment


      • #4
        Stephan
        For issues or questions regarding 7.9 please post in the appropriate forum
        Alex

        Comment

        Working...
        X