Simple EA trading based on WPR, Bollinger Bands and ATR indicators - Expert Advisor for MetaTrader 5





ExpWPRBB Expert Advisor implements a simple trading strategy based on the signals of two indicators: Williams Percent Range (WPR) and Bollinger Bands (BB). Open a position only if the signals of both indicators coincide:
The width of the Bollinger Bands and the ATR value are used to calculate stop loss and take profit levels. The Expert Advisor only supports working with hedging accounts. Additionally, it has a non-trading mode where you can only place signal tags - Control signals in the visual mode of the strategy tester.
Input parameters:
WPR (Williams Percent Range)
BB (Bollinger Bands)
ATR (average true range)
The default values of the input parameters of the Expert Advisor are optimized for testing on the H4 chart period.
Test result in "All ticks" mode for the last year on H4 with default parameters:





It signals the end of a period of low market volatility and heralds large price swings.
Function to convert server time from one broker's time zone to another.
Expert Advisor based on iPinBar Pin Bar Finder + several different tracking indicators
The goal is to show a code that shows the calculation of ATR using Wilder smoothing
Attachment download
📎ExpWPRBB.mq5 (78.38 KB)
Source: MQL5 #63916
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •