Download MetaTrader 5
To add comments, please log in or register
Have you installed MetaTrader 5? Find out more about it!
Keith Watford
Moderator
8796
Keith Watford 2014.03.18 22:29  
01005379:
Possible. But why my code does not work as I want? Any idea?


You need some error reporting in case the trade fails, you only print when the order succeeds.

I have heard of brokers placing limitations on accounts that send too many order requests. Your while loops can send requests 100's or maybe 1000's of times in 1 second. If it fails the first time it is likely to fail the next time and so on. The only change that you make is with RefreshRates and this will not change until there is a new tick.

/ /123
To add comments, please log in or register