Bob, I've been trying to write a system test using a 3-period EMA crossover of the forecast oscillator(c,21) as a trigger for entries and exits. I've written the following:
Enter long: Cross(ForecastOsc(C,21),Mov(C,3,E)>0 + Ref(Cross(ForecastOsc(C,21),Mov(C,3,E)),-1))<0
What I'm trying to say is BUY when the forecast oscillator crosses the moving average and the oscillator is crossing up through zero.
Exit long: Cross(Mov(C,3,E),ForecastOsc(C,21)<6 + Ref(Cross(Mov(C,3,E),ForecastOsc(C,21)),-1))>6
What I'm trying to say here is SELL when the moving average crosses the forecast oscillator and the oscillator is crossing down through 6.
When I run this system test the reports yield zeros across the board.
Would really appreciate help from the grand codemaster.
Thanks, Codeless Mike
|