jaguar1637 liked this 4676 days ago
This is a mod of spinal implant that I was recluctant to post. Not because it is a money machine but because I did not find any impro vement.
However the logic may be interesting and may be used into another EA model. So that is why I will post it.
double rsquared=iCustom(NULL,TimeFrame,"r-squared",RSQPeriod,0,1);double iVAR_1=iCustom(NULL,TimeFrame,"iVAR",5,1000,0,1);double iVAR_2=iCustom(NULL,TimeFrame,"iVAR",5,1000,0,2);if(iVAR_2<a3 && iVAR_1<a4 && rsquared>rsquared_CriticalValue)
Comments
You idea, john is really interesting and intriguing?
I notice you took those values :
extern int RSQPeriod=10;
extern double rsquared_CriticalValue=0.40;
So, the calculation is made upon 10 bars.
may be the RSQPeriod could be given by the Cycle Period ? something like Cycle Period divided by 4 ? what do you think about ?
I am not sure about it. In fact I do not know.