by Rocco_Rod » Wed Nov 18, 2020 8:50 pm
Thanks for your feedback. I will clarify the definition of entry rules by starting to define a couple of key thoughts:
I call "reverse limit order" the opposite of a standard limit order. When a "sell - reverse limit order" is placed at price level L, a sell position is opened at current market price if current market price is below price level L. When a "buy - reverse limit order" is placed at price level L, a buy position is opened at current market price if current market price is below price level L.
I hope the above makes sense to you. If not please let me know.
EA can't stop you from opening a position. But EA can prevent an order (stop order, limit order or even reverse limit order) from being executed within a certain price zone defined by a price (the maximum or the minimum of that zone). Let's call such a filter a "no execution zone". Example 1- ; example 2- .
The following is what the input setup panel should look like for the EA we are building. No additional inputs/option required :
* price level L for reverse limit order : _____
* reverse limit order : buy or sell
* no execution zone -minmax : automatic (by default) or _____
* Quantity in lots : __
* stoploss in pips: __
* trailing: true / false
* take profit in pips : __
Detailed entry rules :
* reverse limit order to be placed at price level L. "Buy" or "sell" also to be selected by user on the setup panel for that reverse limit order.
* The automatic "no execution zone -minmax" is defined by EA as the non-execution of the reverse limit order until current market price
- is lower than the opening price of the current M1 candle (in case of a sell - reverse limit order) ; or
- is higher than the opening price of the current M1 candle (in case of a buy - reverse limit order).
Final comment: both a sell order and a buy order can be placed at the same time on a given instrument if the instrument is opened on 2 separate charts at the same time.