Of course, didn't even think of that. I always assumed the EA needed to exit as soon as possible in fear of eating up too many cpu cycles and thus preventing the charts from updating again. Thanks for the tip!
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
My EA trades 10 pairs simultaneously, I have all 10 charts open and run the expert on the first chart. It checks the values of all 10 pairs during every pass through start(), but i noticed that it frequently misses entry and exit points when the price only barely touches a value (only for the other 9 charts).
My question is, is only the primary chart updated at every tick (accounting for lag)? It seems like it misses some ticks of the other charts (recording the data i see for example that it never reaches the low which is displayed on the MetaTrader chart).
I was thinking of using iLow / iHigh vs. iClose or the best bet would be to add pending orders / SL & TP instead of waiting for an entry / exit to be hit. Anyone dealt with this issue before?
thanks.