PureBytes Links
Trading Reference Links
|
Hello list,
I get an error message in a system-test, that I don`t understand.
Can anyone explain this, did I miss something?
I wanted to apply it to a 5min NQ chart.
The indicator is visible and the max. periods loaded.
The test was posted by Steve Karnish.
Thanks;
Nicholas
System
Enter long:
Cross(opt1,ForecastOsc(CLOSE,opt3))
Enter short:
Cross(ForecastOsc(CLOSE,opt3),opt2)
opt1: 5-21 step: 1
opt2: 1-15 step: 1
opt3: -15 -1 step: 1
Indicator
{Forecast Osc-Chande}
{from jseed}
Forecast osc:
Pds:=Input("Time Periods",1,1000,5);
Fld:=Input("Price Field 1=C 2=O 3=H 4=L",1,4,1);
PFld:=If(Fld=1,C,If(Fld=2,O,If(Fld=3,H,L)));
Sig:=Input("Signal MA Periods",1,200,3);
ForO:=((Pfld-(Ref(LinearReg(Pfld,Pds),-1)+
Ref(LinRegSlope(Pfld,Pds),-1)))*100)/Pfld;
ForO;
Mov(ForO,Sig,E);
{end}
error message
"The selected test was not completed becasuse the enter long formula
terminated
with the following error message:
Period out of valid range in Forecastosc() function"
|