-
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
Before you open an order, see if there is already one within x PIPs. Counting does nothing for you.
-
There is no need to create pending orders in code.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
Don't worry about it unless you're scalping M1 or trading news.
-
Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
-
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
Before you open an order, see if there is already one within x PIPs. Counting does nothing for you.
-
There is no need to create pending orders in code.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
Don't worry about it unless you're scalping M1 or trading news.
-
Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
William Roeder, thank you for replying.
1. To edit my post, I am having difficulty locating the "edit" option at the bottom right. What reads is "pocket" "complain" "reply" only.
2. The nature of this strategy involves pending orders, so I want to limit the amount of orders based on external int. or "MaxDuplicateOrders"
for example, the EA triggers 1000 pending orders with the same symbol and price, which is desired, I need to enable limiting these to 1-1000. Thank you for reading this.
- Fareed Alston #: 1. To edit my post, I am having difficulty locating the "edit" option at the bottom right. What reads is "pocket" "complain" "reply" only.
You lost the option; only available for the first several days.-
- Fareed Alston #: 2. The nature of this strategy involves pending orders,
No strategy depends on pending orders. If you can do Buy Stop at pending price, then you can do if market >= price then open.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I developed an EA, it creates duplicate orders based on price and symbol. I am looking for advice on the best way to introduce a function "MaxDuplicateOrders" that will limit the amount of duplicate orders initiated. I ordered freelance work but the code is not successfully enabling me to input a value. I am sharing the code for this function, with hopes you can tell me how to get it working, thank you for reading this.