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?
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