View Single Post
  #51 (permalink)  
Old 11-06-2007, 05:01 AM
saintmo saintmo is offline
Senior Member
 
Join Date: Aug 2006
Posts: 217
saintmo is on a distinguished road
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
Reply With Quote