Announcement

Collapse
No announcement yet.

diferents plots

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

  • diferents plots

    hi

    Could you please tell me why this formula plots diferent then the
    default macd study on esignal with the same parameters?

    myStudyValue_240 = macd( 12, 26, 9 , inv(240));
    myStudySignal_240 = macdSignal( 12, 26, 9 , inv(240));

    vValue_240 = myStudyValue_240.getValue(0);
    vSignal_240 = myStudySignal_240.getValue(0);

    if (getInterval() == 240) return new Array(vValue_240, vSignal_240);

    thanks

    Jaime

  • #2
    Jaime
    Probably because you have the default MACD study set to use the simple moving average for either the oscillator or the signal line while the efs2 version (which is what you posted) uses only exponential averages for both the oscillator and the signal line.
    Alex

    Comment

    Working...
    X