Announcement

Collapse
No announcement yet.

help needed on ratio of two MAs (one with offset)

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

  • help needed on ratio of two MAs (one with offset)

    Can someone please help me with this indicator?

    I need the ratio of two moving averages plotted as graph in a separate window.

    The first MA is a 20-sma.
    The second MA is a 20-sma, but with an offset of -20, i.e. over close(-20) to close(-39).

    How do I do this? I am having trouble creating the series.

    Many thanks.

  • #2
    Hi,

    If you do a search in the forum for "ratio of series" you will find a number of helpful posts. There even is an efs in the function library that will do this for you.

    To offset a series use offsetSeries().

    Hope this helps.
    Regards,
    Jane

    Comment

    Working...
    X