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
The Price is "Ask" on buy or "Bid" on short:
So it's getting the Ask directly from the server. I find it odd that I'd have to normalize it again. Alpari UK is a 5 digit broker, so i set my slip to 30 (3 pips), and no TP or SL is specified for the reasons you mentioned. This is handled after the order is placed.
Before this entry subroutine is triggered, a rather lengthy monte carlo calculation is performed that takes typically between 40-60 seconds, but like i said, the same EA is running on CMS-FX and orders are entered just fine without having to do a RefreshRates. Maybe there is some fundamental difference in how these two brokers refresh their variables, though. I think I'll call RefreshRates prior to the trade entry just to be safe.
Yeah. That seemed to be the case. Using RefreshRates() at the beginning of the trading decision subroutine resolved the problem I was having. The weird thing is that I didn't see this with CMS, and it sounds like I should have. Anyhow, that problem is fixed, but now I'm facing another issue:
https://www.mql5.com/en/forum/133568