I have written EA code to cycle through all pending orders and compare the price for each pending order to a "new" order price to avoid placing duplicate orders, but it does not always detect all of the duplicate prices. It works sometimes on some prices, on some buy stop or sell stop types, and on some symbols, but not consistently. Can anyone give me code that avoids placing duplicate (same price) pending orders?
- Duplicate pending orders
- Check Pending Order
- EA that automatically place a buy stop and sell stop order
AssistPlease wrote >>
I have written EA code to cycle through all pending orders and compare the price for each pending order to a "new" order price to avoid placing duplicate orders, but it does not always detect all of the duplicate prices. It works sometimes on some prices, on some buy stop or sell stop types, and on some symbols, but not consistently. Can anyone give me code that avoids placing duplicate (same price) pending orders?
I have written EA code to cycle through all pending orders and compare the price for each pending order to a "new" order price to avoid placing duplicate orders, but it does not always detect all of the duplicate prices. It works sometimes on some prices, on some buy stop or sell stop types, and on some symbols, but not consistently. Can anyone give me code that avoids placing duplicate (same price) pending orders?
try using normalizedouble since u are likely to be comparing two double variables
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