Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Want an EA to follow a few rules for entry and one rule for exit.
Requirements for a Buy order:
When the Hull Moving Average line is green, RSI is above 50, and then Stochastic line turns green, open a buy order.
Requirements for a Sell order:
When the Hull Moving Average line is red, RSI is below 50, and then Stochastic line turns red, open a sell order.
Exit Options for Buy Order:
For Buy entry option 1: On the first close of a red candle of the heiken ashi.
For buy entry option 2: When RSI goes below 50.
Exit Options for Sell Order:
For Sell entry option 1: On the first close of a blue candle of the heiken ashi.
For Sell entry option 2: When RSI goes above 50.
Stop loss:
Stop loss is 5 pips above open candle on sell order.
Stop loss is 5 pips below open candle on buy order.
Exception to opening an order when requirements are met:
If the body of the heiken ashi candle that closed and made the stochastic line turn green/red is larger than "x" pips, order does not open. (For example, if that candle body is set to 50 for the exception and the candle body closed moving 60 pips due to NFP or a interest rate decision. I do not want it opening an order.
The picture attached shows a scenario where the requirements for a buy order are met circled in green. The circles in red are an order that did not meet the requirements due to the RSI being below 50 for that buy order scenario.