11-06-2007, 05:01 AM
Senior Member
Join Date: Aug 2006
Posts: 217
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
11-06-2007, 05:25 AM
Member
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 83
Thanks! That did the trick! I guess it pays to read the documentation. I'll try to remember to RTFM next time ;-)
Next post will have v0.3 attached.
-MRE-
11-06-2007, 05:29 AM
Member
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 83
Enclosed is v0.3 ready for beta testing. Let me know what kind of errors or abnormalities you receive.
-MRE-
Edit: Attachment was removed because of an error. See two posts below for correct version.
Last edited by mrebersv; 11-06-2007 at 05:36 AM .
11-06-2007, 05:34 AM
Senior Member
Join Date: Jan 2006
Location: Ambarawa City
Posts: 153
Quote:
Originally Posted by
mrebersv
Enclosed is v0.3 ready for beta testing. Let me know what kind of errors or abnormalities you receive.
-MRE-
We can't test it, since this EA can't be compiled because of variable problem
.
Please check it. Thanks
__________________
Click! Free $100 monthly (Trade 10 lots needed).
Click! Free welcome bonus up to $5000
Click! Download premium forex indicators for free!
11-06-2007, 05:35 AM
Member
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 83
Thanks. I just noticed that i uploaded the thing without saving all changes. Try this one.
-MRE-
11-06-2007, 05:41 AM
Senior Member
Join Date: Jan 2006
Location: Ambarawa City
Posts: 153
Only 1 trade on October?
Definitely something wrong here...
__________________
Click! Free $100 monthly (Trade 10 lots needed).
Click! Free welcome bonus up to $5000
Click! Download premium forex indicators for free!
11-06-2007, 05:48 AM
Member
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 83
Quote:
Originally Posted by
demam_emas
Only 1 trade on October?
Definitely something wrong here...
I'm skeptical of backtesting a strategy that uses multiple timeframes, so I only plan on forward testing this one. If we find that forward testing causes the same issue, I'm guessing the problem has to do with the "NoOpen" variable which is used to keep the strategy from re-opening trades in the same direction after stoploss and now takeprofit (fingers crossed on that one). Specifically, I've been implementing too many changes without testing each one individually lately, so I can foresee an error or two in the logic controlling the "NoOpen" variable.
-MRE-
11-06-2007, 06:29 AM
Senior Member
Join Date: Aug 2006
Posts: 217
There is another statement that needs to be changed. Same issue as before.
void checkForNoOpenChange() {
if ( ((iCustom(NULL,shortTF,"QQE",SF,0,2) <= iCustom(NULL,shortTF,"QQE",SF,1,2)) && (iCustom(NULL,shortTF,"QQE",SF,0,1) > iCustom(NULL,shortTF,"QQE",SF,1,1))) ||
((iCustom(NULL,longTF,"QQE",SF,0,2) <= iCustom(NULL,longTF,"QQE",SF,1,2)) && (iCustom(NULL,longTF,"QQE",SF,0,1) > iCustom(NULL,longTF,"QQE",SF,1,1))) ){
NoOpen=false;
}
}
With this change more trades are opened. However, after a trade in one direction is closed, other trades in the same direction continue to be opened.
saintmo
11-06-2007, 06:51 AM
Senior Member
Join Date: Aug 2006
Posts: 217
More problems. Trades opened and closed immediately under some circumstances. Lots of trades.
11-06-2007, 01:45 PM
Member
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 83
Wow, Saint! You're proving to be quite helpful in testing this thing! I'll start fixing those issues after work today, but I won't be home until late, so it might be a while.
-MRE-
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT. The time now is 07:03 PM .