Problems back-testing my bot
My bot works with visual testing.
Just not with optimization.
Anyway, for buying this is my calculation:
Bid = SymbolInfoDouble(_Symbol, SYMBOL_BID); // Current Bid price.
Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK); // Current Ask price.
TP = Ask + (TakeProfit_inPips * _Point);
SL = Bid - (StopLoss_inPips * _Point);
For selling:
TP = Bid - (TakeProfit_inPips * _Point);
SL = Ask + (StopLoss_inPips * _Point);
Spend some time to learn about Pip, Point and Digits. Then check the Digits value of the symbol you want to trade and use it to calculate the right SL/TP value.
- 2015.01.14
- www.mql5.com
Hello,
I wrote a simple bot with MQL5.
It only has 2 input parameters (SL and TP distance)
When I run strategy tester I get no results. It just shows as if it's working forever.
Any other bot I'm testing has no problems.
Do I need to do something special for my bot to work with strategy testing?