Am I doing something wrong? Is this a bug? Is the tester simply not reliable? Can't say without seeing the codes.
I have attached the code. It is very simple, just learning how to write EAs at this point so I based it on an existing EA.
Thanks!
So far my test does not duplicate the behavior you described. Does your broker have a FreezeLevel > or = to 5? Also, what are the spreads at the time of testing?
I am using OANDA which supposedly has a freezelevel of 0 and they typically have spreads around 2 pips at the time of that chart.
I was back testing a very simple EA on the "Every Tick" mode with the M1 time period and I noticed that the tester was randomly overlooking times when my take profit price hit.
It is completely random. Most times it closes out the order properly.
...
Am I doing something wrong? Is this a bug? Is the tester simply not reliable?
The strategy tester is very reliable and I suspect you are misinterpreting what you are seeing. You have shown a plot and seem to be suggesting that because the price line is below the TP line the strategy tester is wrong. Look again. The grid lines are 1.5 pips apart and you are saying the spread is 2 pips. Remember that when you go Short you first sell at the Bid price then you need to buy back at the Ask price to close the position. The strategy tester chart is displaying the Bid price only. So the Bid price has to be lower than the TP line by the spread before the order will close.
EDIT: As Raptor points out (below) this suggests the spread is higher than 2 pips.
So the Bid price has to be lower than the TP line by the spread before the order will close. As your plot shows it has not yet done that!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello All,
I was back testing a very simple EA on the "Every Tick" mode with the M1 time period and I noticed that the tester was randomly overlooking times when my take profit price hit.
It is completely random. Most times it closes out the order properly. I suspected that there was a data integrity issue so I checked the data in the history center, but the data is correct.
I even was able to see the problem in visual mode. As you will see in the attached chart the tester had 2 opportunities to take profit but ignored them both (I was short in this instance and the red line is my take profit).
I have attached the code. It is very simple, just learning how to write EAs at this point so I based it on an existing EA.
Am I doing something wrong? Is this a bug? Is the tester simply not reliable?
Thank you so much!
-nbalance