Hi, I have a couple of questions relating to backtesting of an EA with a Multi Time Frame indicator that I would appreciate anyone with programming experience helping out with some comments.
1. I have had an ea developed that uses a MTF indicator. I believe this when trying to use a different time frame to the current tf this stops the ea working as it can't access the alternative timeframe to perform calculations - is this correct?
2. My understnding that is when using the current timeframe with the mtf indicator in the EA it should be able to work in the back tester as it can access the appropriate data. Is this correct?
3. Is it possible to code an EA to use a mtf indicator and still work in the backtester?
Any comments appreciated
tks
Peter
simple question for coders
- NeoTrader
- Trader
- Posts: 436
- Joined: Wed Apr 04, 2012 2:52 pm
- Location: small Village at Lake Chiemsee, Bavaria, Germany
Re: simple question for coders
Hi Peter,
I'm not a great friend and/or expert of the strategy tester...but i will give it a shot.
As far as I know it is possible with a little twist on the 0 bar (current) which is according to an article at mql.com
happy weekend,
NeoTrader
I'm not a great friend and/or expert of the strategy tester...but i will give it a shot.
Make sure that your history data of the TFs you will use in the EA/Indicator are in order...use one of the forcehistory scripts/EA to make sure you have enough data on the TFs.peterke wrote:1. I have had an ea developed that uses a MTF indicator. I believe this when trying to use a different time frame to the current tf this stops the ea working as it can't access the alternative timeframe to perform calculations - is this correct?
As far as I know it is possible with a little twist on the 0 bar (current) which is according to an article at mql.com
Zero bar of another timeframe for the same symbol under test is modeled approximately
Open = correct Open, Close = correct Close, Low = min (Open,Close), High = max (Open,Close), Volume = final Volume (false)
Yep... it should work...peterke wrote:2. My understnding that is when using the current timeframe with the mtf indicator in the EA it should be able to work in the back tester as it can access the appropriate data. Is this correct?
I think it should be possible...but I'm not that much into EA'speterke wrote:3. Is it possible to code an EA to use a mtf indicator and still work in the backtester?
happy weekend,
NeoTrader
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: simple question for coders
I confirm that.NeoTrader wrote:I think it should be possible...but I'm not that much into EA'speterke wrote:3. Is it possible to code an EA to use a mtf indicator and still work in the backtester?
happy weekend,
NeoTrader
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
peterke
- Trader
- Posts: 56
- Joined: Wed Nov 16, 2011 9:17 am
Re: simple question for coders
Hi, tks for responses, they have helped me resolve a couple of testing issues.
rgds
Peter
rgds
Peter