工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
AN EA BASE ON STOCHASTIC OSCILLATOR AND SMA CROSSING NEEDED
I need a trading robot that uses the SMA and the Stochastic Oscillator Indicators. The buy and sell conditions should follow as indicated below:-
Open a buy Trade When the red line of the stochastic Oscillator crosses the SMA in the Bullish (up) direction, and closes this position when the red line of the stochastic Oscillator indicator crosses back the SMA in the bearish direction. Note, immediately the BUY position closes, a SELL position
Options for closing a position: 1. Close on opposite signal (True/false) 2. Close when Stochastic Oscillator crosses itself (True/false)
In the figure above, the red and the blue line is the stochastic indicator, while the yellow line is the SMA
It should have also have the following features-
1 Trailing stop loss, zero (0) to disable
2. Stop loss, zero (0) to disable
3. Take Profit, zero (0) to disable
4. Can work on any timeframe
5. It should be able to Trade forex, synthetics, stocks & indices, cryptocurrencies, basket indices, and commodities
Note: the MACD and STOCHASTIC settings should be default, but should be adjustable