Skip to content

About

The BB RSI ADX PA MTFA MC Expert Advisor is a custom MetaTrader 5 (MT5) trading robot that uses Bollinger Bands, RSI, ADX, and Multi Time Frame Analysis (MTFA) to identify potential trading opportunities.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

BB RSI ADX PA MTFA MC Expert Advisor

The BB RSI ADX PA MTFA MC Expert Advisor is a custom MetaTrader 5 (MT5) trading robot that uses Bollinger Bands, RSI, ADX, and Multi Time Frame Analysis (MTFA) to identify potential trading opportunities. This EA also includes additional filters such as ATR and price action confirmations to enhance the accuracy of trade signals.

Features

  • Uses Bollinger Bands, RSI, and ADX for trade signals.
  • Includes ATR and Multi Time Frame Analysis (MTFA) filters.
  • Supports multiple currency pairs.
  • Customizable trading parameters.
  • Automatic lot size calculation based on account balance.
  • Price action confirmations for bullish and bearish patterns.

Installation

  1. Download the BB_RSI_ADX_PA_MTFA_MC.mq5 file.
  2. Open the MetaTrader 5 platform.
  3. Go to File -> Open Data Folder.
  4. Navigate to MQL5 -> Experts.
  5. Copy the BB_RSI_ADX_PA_MTFA_MC.mq5 file into the Experts folder.
  6. Restart the MetaTrader 5 platform.
  7. In the Navigator window, find the BB_RSI_ADX_PA_MTFA_MC expert advisor under Experts.
  8. Drag and drop the expert advisor onto a chart.

Inputs

EA Specific Parameters

  • EA_MagicNumber: Magic number for the EA.
  • TradingCurrencies: Comma-separated list of currency pairs to trade.
  • TimeFrame: Timeframe for the EA to operate on.

Trade Settings (Criteria For Taking Trades)

  • BBMAPeriod: Period for the Bollinger Bands.
  • BBStdEntry: Standard deviation for the Bollinger Bands entry.
  • RSIUpper: Upper threshold for the RSI.
  • RSILower: Lower threshold for the RSI.
  • RSIPeriod: Period for the RSI.

Trade Management

  • BBStdProfitExit: Standard deviation for the take profit Bollinger Bands.
  • BBStdLossExit: Standard deviation for the stop loss Bollinger Bands.
  • ApplyBarSince: Enable or disable the bar since condition.
  • BarSince: Minimum bars since the last trade.

Risk Management

  • Lot_Type: Type of lot size calculation (Risk Percentage or Fixed Lot Size).
  • MaxRiskPercentPerTrade: Maximum risk percentage per trade.
  • FixedLotSize: Fixed lot size.

Trail Management

  • EnableTrail: Enable or disable trailing stop.

Average True Range (ATR) Filter

  • ATR_FilterOn: Enable or disable the ATR filter.
  • ATR_MA_Period: Period for the ATR.

Average Directional Index (ADX) Filter

  • ADX_FilterOn: Enable or disable the ADX filter.
  • ADX_Period: Period for the ADX.
  • ADX_Level: Level for the ADX.

RSI Multi Time Frame Analysis (MTFA) Filter

  • RSI_MFTA_FilterOn: Enable or disable the RSI MTFA filter.
  • RSI_MFTA_TimeFrame: Timeframe for the RSI MTFA.
  • RSI_MFTA_Period: Period for the RSI MTFA.
  • RSI_MFTA_Upper: Upper threshold for the RSI MTFA.
  • RSI_MFTA_Lower: Lower threshold for the RSI MTFA.

Price Action Bullish Confirmation (Hammer Pattern)

  • Bullish_Confirmation: Enable or disable bullish confirmation.

Price Action Bearish Confirmation (Bearish Engulfing)

  • Bearish_Confirmation: Enable or disable bearish confirmation.

Functions

OnInit()

Initializes the expert advisor, sets up the currency pairs, and configures the chart.

OnDeinit()

Cleans up when the expert advisor is removed from the chart.

OnTick()

Main function that runs on every tick. Checks for new bars and processes trade signals.

ExecuteSymbol(string symbol)

Processes trade signals for a specific symbol.

IsNewBar()

Checks if a new bar has formed.

CalculatePositionSize(string symbol, double riskPercentage, double stopLossPips)

Calculates the position size based on risk percentage and stop loss in pips.

CalculateTakeProfit(bool isBuy, string symbol, double price, double takeProfitPoints)

Calculates the take profit price.

CalculateStopLoss(bool isBuy, string symbol, double price, double stopLossPoints)

Calculates the stop loss price.

CalculateStopLossPips(string symbol, double entryPrice, double stopLossPrice)

Calculates the stop loss in pips.

CheckIfOpenOrdersByMagicNB(string symbol)

Checks if there are open orders with the specified magic number.

TrailModule(string symbol)

Trailing stop loss function based on Bollinger Bands.

IsBullishHammer(string symbol, ENUM_TIMEFRAMES timeframe)

Checks for a bullish hammer pattern.

IsBearishEngulfing(string symbol, ENUM_TIMEFRAMES timeframe)

Checks for a bearish engulfing pattern.

SetBarsTraded(string symbol)

Records the number of bars since the last trade for a symbol.

GetBarsLastTraded(string symbol)

Retrieves the number of bars since the last trade for a symbol.

License

This expert advisor is provided under the MetaQuotes Software Corp. license. For more information, visit MetaQuotes Software Corp..

Disclaimer

Trading in the financial markets involves risk. This expert advisor is provided for informational purposes only and should not be considered as financial advice. Always do your own research before making any trading decisions.


For more information, visit the MetaQuotes Software Corp. website.

About

The BB RSI ADX PA MTFA MC Expert Advisor is a custom MetaTrader 5 (MT5) trading robot that uses Bollinger Bands, RSI, ADX, and Multi Time Frame Analysis (MTFA) to identify potential trading opportunities.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages