Thank-you Steve.
On a 4 year time frame, even 1 phantom trade a day will create a significant skew in the results!
Does this mean that the backtesting is basically not usable ?
Best regards,
Hugh
On a 4 year time frame, even 1 phantom trade a day will create a significant skew in the results!
Does this mean that the backtesting is basically not usable ?
Best regards,
Hugh
Freebird!
Rename the file to Freebird.mq4 and it should work.
- Vooch
Ref. http://online.wsj.com/public/article/0,,SB111102511477881964-ZkAKwALO87RaHLbFJrSJSA_i9xg_20050415,00.html?mod=blogs
;-)
If that doesn't work, try something like this:
Rename the file to Freebird.mq4 and it should work.
- Vooch
Ref. http://online.wsj.com/public/article/0,,SB111102511477881964-ZkAKwALO87RaHLbFJrSJSA_i9xg_20050415,00.html?mod=blogs
;-)
If that doesn't work, try something like this:
///////////////////////////////////////////////////////////////////////////////////////// // BACKTESTER FIX: DO NOT PLACE AN ORDER IF WE JUST CLOSED // AN ORDER WITHIN Period() MINUTES AGO ///////////////////////////////////////////////////////////////////////////////////////// datetime orderclosetime; int TheHistoryTotal=HistoryTotal(); int difference; for(cnt=0;cnt<TheHistoryTotal;cnt++) { if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY)==true) { if ( (OrderSymbol()==Symbol()) && (OrderMagicNumber()==MagicNumber) ) { orderclosetime=OrderCloseTime(); rightnow=Year()+"-"+Month()+"-"+Day()+" "+Hour()+":"+Minute()+":"+Seconds(); rightnow2=StrToTime(rightnow); difference=rightnow2-orderclosetime; if(Period()*60*2>difference) { // At least 2 periods away! openunprofitablelongorders=100; // Throw a flag openunprofitableshortorders=100; // Throw a flag break; } } } } /////////////////////////////////////////////////////////////////////////////////////////
"Freebird!"
Thank-you Vooch,
I tried freebird and even FREEBIRD! but none went away... good try!
The code u gave attenuates the problem - is this the 'official workaround'?
Thanks and regards,
Hugh
I tried freebird and even FREEBIRD! but none went away... good try!
The code u gave attenuates the problem - is this the 'official workaround'?
Thanks and regards,
Hugh
hardwood,
I emailed you with my changes integrated into your script. If you didn't get it, let me know.
Freebird,
Vooch
I emailed you with my changes integrated into your script. If you didn't get it, let me know.
Freebird,
Vooch
First up guys you may wanna use the current script version.
This is v.57 and is being made available in the Yahoo groups by the author TraderSeven (Tony) - the author is not hardwood.
I know the author well and I'd suggest he be the one made aware of any changes or suggestions to the script. I know I've chatted online with him about the flakey backtest so I'm sure he'd appreciate some respect when his script is concerned.
My $0.02c worth.
Martin
This is v.57 and is being made available in the Yahoo groups by the author TraderSeven (Tony) - the author is not hardwood.
I know the author well and I'd suggest he be the one made aware of any changes or suggestions to the script. I know I've chatted online with him about the flakey backtest so I'm sure he'd appreciate some respect when his script is concerned.
My $0.02c worth.
Martin
Martin,
I'm a member of that group, but I rarely visit. Do you have a link to v.57?
You can email me at vooch a t vooch d o t com.
- Vooch
I'm a member of that group, but I rarely visit. Do you have a link to v.57?
You can email me at vooch a t vooch d o t com.
- Vooch
Done
Martin,
Ooops! I can't receive attachments there. Could you please resend?
This time, send it to salvucci a t Lawrenceburg d o t com .
Thanks,
Vooch
Ooops! I can't receive attachments there. Could you please resend?
This time, send it to salvucci a t Lawrenceburg d o t com .
Thanks,
Vooch
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Looking at the Strategy Tester Report, I see hundreds of phantom trades which certainly could not have been generated by the EA.
The report is very big so I wont post it here, but I have 2 questions:
1) Has anyone else had similar problems or is it my 'majic fingers' ?
2) How do I send the report to MetaQuotes Software for analysis?
Best regards,
Hugh
here is a small extract of the report - it is done on daily time frame with the 'every tick' model.
here is the EA: