if i changed the spread in the backtest i get a lot of error 138 why?
Hello
at first i back tested my ea with spread of 3 as it the average of my broker for usdjpy without any error
but if i tried 0 or 6 or 7 almost half of the trade won't be triggered because of error 138, is there any solution to that, will that affect live or demo trading?
- Getting Error Code 138 in Backtesting
- I'm learning to write an advisor...
- Error Code 138 in Backtesting
Perhaps you might use RefreshRates() and MarketInfo() to get latest quotes value of Ask and Bid.
Lars Rompe:
Perhaps you might use RefreshRates() and MarketInfo() to get latest quotes value of Ask and Bid.
how can i use them correctly ? before the order is triggered or after the error?
AhmedMorra:
Think about it a bit and you will certainly find the answer.
how can i use them correctly ? before the order is triggered or after the error?