Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
Create an EA in MQL5 from Custom Indicators on TradingView. This is a multicurrency EA that trades multiple symbols on a chart (and uses the current chart's timeframe for all symbols it trades).
Indicators on TradingView :
- (50) Exponential Moving Average
- (200) Exponential Moving Average
- Trend Meter (by lil MC) - uncheck wave trend in settings - Important! The Trend Meter on TradingView uses the function "correlation" that seems to be difficult to recode in MQL5
- Volatility Oscillator (by veryfid) - uncheck label in settings
Entry Signal :
1) 200 ema must be below 50 ema
2) Trend Meter must have 4 green dots & 2 green lines
3) Volatility Oscillator must be heading upwards, crossing above the upper band
Stoploss:
Set stoploss at the recent swing low :
lowest price of the current and last X candlesticks - Y% * (current price - lowest price of the current and last X candlesticks)
X: Number of previous candlesticks
Y: Percentage to define in the settings
Immediately stop the trade for any price below the stoploss (in case of a gap)!
Take profit:
Exit once the top dot on the trend meter turns RED or set a risk/reward ratio on settings
- Magic Number
- Pair (separated by a comma)
- Auto lot? (yes/no)
- Risk (percentage of risk per trade)
- Fixed lot
- Min lot
- Max lot
- Max spread in point
- Allow only one order per pair (yes/no)
- Number of previous candlesticks to consider for stoploss (letter X)
- Percentage to define the stoploss (letter Y)
- Pips to start trailing stoploss (20-200)
- Take profit: choose between a RR or once the top dot on the trend meter turns RED
- If RR was selected, choose the RR (1 to 3