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


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


Attachment download
📎bb -automated.mq4 (6.64 KB)
Source: MQL5 #14992
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •