by Rocco_Rod » Wed Nov 18, 2020 11:13 pm
Thanks for your feedback. I will clarify the 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- A sell limit order should not be executed if market is above a certain price level P, i.e. all the price zone above P becomes the no execution zone applied to this sell limit order.
To avoid confusion, note that price level P is completely independent from the limit set by the limit order ; they are 2 separate levels.
The following is what the input setup panel should look like for the EA we are building. No additional inputs/option required :
* reverse limit order : buy or sell
* no execution zone -minmax level : _____
* Quantity in lots : __
* stoploss in pips: __
* trailing: true / false
* take profit in pips : __
Detailed entry rules :
* "Buy" or "sell" to be selected by user on the setup panel for the direction of the reverse limit order to be placed by EA.
* Reverse limit order to be placed at price level L - that is the core of the entry rule. The price level L is set by EA as the opening price of the current M1 candle.
* The no execution zone is defined by EA as the non-execution of the reverse limit order until current market price
- is lower than the "minmax level" filled in by user on the setup panel (in case of a buy - reverse limit order) ; or
- is higher than the "minmax level" filled in by user on the setup panel (in case of a sell - 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.