工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
A buy signal occurs when an up arrow appears and the macd histogram is above zero.
A sell signal occurs when a down arrow appears and the macd histogram is below zero.
So when macd histogram is above zero, only buy trades are allowed.
When macd histogram is below zero, only sell trades are allowed.
Trades are taken at the close of the signal candle
A buy signal occurs when an up arrow appears and the signal candle closes above Y simple moving average.
A sell signal occurs when a down appears and the signal candle closes below the Y moving average.
So when prices are above the Y moving average, only buy trades are considered and when Prices are below the moving average, only sell trades are considered.
I want the stop loss and take profit to be stealth (As in, I don’t want it to appear on the platform but I want to input it in the ea setting and the ea will trigger it when it gets to that point)
I want the ea to have an option to either use the MA filter or the MACD filter or both filters to enter a trade.
Ea should have an option for maximum spread. When spread exceeds this vale the ea should not trade.
Ea should have stop-loss, take-profit, trading time, % risk, partial close, number of trades in a day, trailing stop,
This ea should have an opportunity to adjust indicator settings.
Let the ea have a true or false option for multiple trades at a time or just one trade at a time.
The ea should close and reverse when an opposite order occurs, that is, close a buy and open a sell or close a sell and open a buy.
When the trend is up and a buy trade or pending order is open, and a down arrow appears, the ea should ignore the arrow and keep trading. Vice versa
If a buy pending order is not triggered and a valid sell signal occurs, the buy pending order should be deleted.
To open a buy trade, a buy stop should be placed x pips from the high of the signal candle.
To open a sell trade, a sell stop should be placed x pips from the low of the signal candle.
if X= 0, open a market order
Stop loss should be x pips from high or low of the signal candle.
This ea is intended to scalp renko and range bar charts.