Announcement

Collapse
No announcement yet.

Look back function

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

  • Look back function

    I'd like to write an EFS that:

    1. looks back over a certain number of bars of an existing efs function and finds the highest high of this function within that period and

    2. then add the highest high to a Simple moving average and

    3. Plot it on the price chart.

    Can you point me in the correct direction.

    Thanks
    Last edited by cosbyva; 06-01-2012, 11:12 AM.

  • #2
    cosbyva

    You could use the 'upperDonchian' study to return the highest high of your existing efs function over a certain number of bars, the rest is pretty straight forward.

    Comment

    Working...
    X