Announcement

Collapse
No announcement yet.

MAofMA - re-entrant routine

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

  • MAofMA - re-entrant routine

    I have used the MAofMA to construct a low lag moving average - LLMA. I am now trying to create a MACD using the LLMA. In building the MACD you need to create 2 moving averages of different lengths, typically 26 and 12 bars. When I add the statements that call the MAofMA a second time, the script crashes eSig 7.5 (not just a program error).

    My question is:
    1. is it possible to call the MAofMA routine multiple times within a routine, each time with different parameters (like length)?
    2. if this is not possible, should I make my LLMA routine a separate function and repeatedly call it from within the main program?

    Thank you
    549584 - aka Ed Hoopes aka [email protected]
    Attached Files

  • #2
    Ed
    FWIW you can do the same using the Formula Wizard. Attached is an example of a MACD that uses and EMAofEMA as the data series
    Alex
    Attached Files

    Comment

    Working...
    X