Idea Creator: Andrey, MQ5 Code Developer: barabashkakvn.
GreenTrade is an innovative Expert Advisor (EA) designed for trading on MetaTrader 5, leveraging the signals from the iMA and iRSI indicators. This EA compares iMA values across four bars, allowing you to optimize the indices of these bars. The bar index you set is based on a shift from the previous one:

GreenTrade utilizes two key levels for the iRSI indicator:
- Buy Level: If the RSI is equal to or greater than this level, it generates a Buy signal.
- Sell Level: If the RSI is equal to or lower than this level, it provides a Sell signal.
Input Parameters
- MA: Averaging Period - This sets the averaging period for the iMA.
- Index of Bar #0
- Index of Bar #1 (Shift from Bar #0)
- Index of Bar #2 (Shift from Bar #1)
- Index of Bar #3 (Shift from Bar #2)
- RSI: Averaging Period
- RSI Buy Level
- RSI Sell Level
- Lots - Specifies the position volume.
- Stop Loss
- Take Profit
- Trailing Stop
- Trailing Step
- Max Position - This limits the number of open positions.
- Magic Number - This serves as the EA's unique identifier.
Example for EURUSD on M5:

Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Leveraging MQL5 Wizard: Crafting Trade Signals with Meeting Lines and Stochastic
- Harnessing MQL5 Wizard for Bullish and Bearish Harami Signals with CCI Confirmation