|
I am no programming expert, however it looks to me like the custom calls are set up incorrecrly which would impact your buy/sell tests.
You have:
qqeSTF0 = iCustom(NULL,shortTF,"QQE",0,PRICE_CLOSE,1);
qqeSTF1 = iCustom(NULL,shortTF,"QQE",1,PRICE_CLOSE,1);
qqeLTF0 = iCustom(NULL,longTF,"QQE",0,PRICE_CLOSE,1);
qqeLTF1 = iCustom(NULL,longTF,"QQE",1,PRICE_CLOSE,1);
These need to be changed to:
qqeSTF0 = iCustom(NULL,shortTF,"QQE",SF,0,1);
qqeSTF1 = iCustom(NULL,shortTF,"QQE",SF,1,1);
qqeLTF0 = iCustom(NULL,longTF,"QQE",SF,0,1);
qqeLTF1 = iCustom(NULL,longTF,"QQE",SF,1,1);
then you need to add:
extern int SF=5;
Hopefully that will help.
saintmo
|