Todd Peter Gilbey: why do I keep getting the error 4200 - object already exists on the "MovingText" chart label when the chart label doesn't actually exist in the first place?
if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES)){ ObjectCreate("MovingText", OBJ_TEXT, 0,0,0);
You are creating those objects for every open order on every tick. Of course, they exist after the first tick first order.
You can check first with ObjectFind()

Documentation on MQL5: Object Functions / ObjectFind
- www.mql5.com
ObjectFind - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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
Right, really beginning to lose my patience here, why do I keep getting the error 4200 - object already exists on the "MovingText" chart label when the chart label doesn't actually exist in the first place?
The text object does not already exist, hence why I'm placing it on the chart.