Announcement

Collapse
No announcement yet.

which study? MACDStudy vs macd, macdSignal etc

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

  • which study? MACDStudy vs macd, macdSignal etc

    For MACD values I can create three series, like,
    macd(12, 26, 9);
    macdSignal(12, 26, 9),;
    macdHist(12, 26, 9) ;

    or one using the "builtin" study
    MACDStudy(12,26,9,"Close",false)
    and then use the .getValue(MACDStudy.MACD) etc

    Why the choice?

    What's the difference? Performance?

    Does the same answer apply to the other "duplicates"?

    Why doesn't the documentation explain this kind of stuff?

    Thanks

    Dave

  • #2
    Re: which study? MACDStudy vs macd, macdSignal etc

    Dave180
    The MACDStudy(), RSIStudy() and all the other XXXStudy() functions were the functions provided when EFS was first introduced. Functions such as macd(), macdSignal(), rsi() etc were subsequently introduced with EFS2 ie the second iteration of eSignal's formula language and include enhanced functionality such as the ability to use and synchronize external symbols and/or intervals, use custom variables as the source and overall ease of use.
    As far as I know the main reason why the older XxxStudy() functions are still available is for backwards compatibility.
    As an aside in the Formulas folder you have two folders each containing a complete set of formulas that use these built-in functions. In the Built-in folder you can find all the studies that use the original functions while in the EFS2 Basic and EFS2 Custom folder you can find the studies created using the corresponding EFS2 functions.
    Alex


    Originally posted by Dave180
    For MACD values I can create three series, like,
    macd(12, 26, 9);
    macdSignal(12, 26, 9),;
    macdHist(12, 26, 9) ;

    or one using the "builtin" study
    MACDStudy(12,26,9,"Close",false)
    and then use the .getValue(MACDStudy.MACD) etc

    Why the choice?

    What's the difference? Performance?

    Does the same answer apply to the other "duplicates"?

    Why doesn't the documentation explain this kind of stuff?

    Thanks

    Dave

    Comment

    Working...
    X