Registered User Joined: 11/14/2004 Posts: 33
|
How can I advance a moving average of closing price (say a five day average) three days into the future so I can use this as a baseline for another moving average to cross? I would use this crossover as a trigger to trade.
|
Administration
Joined: 9/18/2004 Posts: 3,522
|
Baroffset with a 3 would offset it 3 days into the future, and would allow you to compare the value 3 days ago with the current value.
It's the equivilant of C3 in a pcf.
Ken Gilb (Kuf) Chief Software Engineer - Worden Brothers Inc. Try/Catch - My RealCode Blog
|