Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Bollinger Bands as Support and Resistance - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 4 reads | 0 comments |

Bollinger Bands as Support & Resistance - expert for MetaTrader 5

Bollinger Bands as Support & Resistance - expert for MetaTrader 5

Use pending orders to use Bollinger Bands as support and resistance:

It's not profitable, it's just an example of Forex robot coding.

It only trades on the 15-minute time frame, as shown in the code below:

 //+------------------------------------------------------------------+
//| Expert OnTick function |
//+------------------------------------------------------------------+
Blank check ()
  {
  BB_UPPER = iBand ( void , PERIOD_M15 , BB_PERIOD, BB_dev, 0 , PRICE_CLOSE , MODE_UP , 0 );
  BB_SMA = iBand ( void , PERIOD_M15 , BB_PERIOD, BB_dev, 0 , PRICE_CLOSE , MODE_SMA , 0 );
  BB_LOWER = iBand ( void , PERIOD_M15 , BB_PERIOD, BB_dev, 0 , PRICE_CLOSE , MODE_DOWN , 0 );
…………
.
.
.
  }

You can change the above period from PERIOD_M15 to PERIOD_CURRENT or use ENUM_TIMEFRAMES

Bollinger Bands as Support & Resistance - expert for MetaTrader 5

Bollinger Bands as Support & Resistance - expert for MetaTrader 5


Attachment download

📎bb -automated.mq4 (6.64 KB)

Source: MQL5 #14992

Verification code Refresh