Ultimate_Oscillator - MetaTrader 5 script - MQL5 #792

The Ultimate Oscillator ( Ultimate Oscillator ), proposed by Larry Williams, is calculated as a three-weighted stochastic indicator, calculated according to fast, medium and short term. Cycle ratios are selected as follows: 1:2:4 (doubled) or 1:2:3. The cycle depends on the market. Recommended values are: 7-14-28 or 7-14-21.
Larry Williams recommends entering a position after a divergence has formed.
To close a long position:
To close a short position:
This indicator was first implemented in MQL4 and released in the code base on February 9, 2007.
The indicator uses classes from the SmoothAlgorithms.mqh library, as described in the article " Average price series for intermediate calculations without using additional buffers ".

final oscillator
Attachment download
📎 smoothalgorithms.mqh (133.8 KB)
📎ultimate_oscillator.mq5 (6.86 KB)
Source: MQL5 #792
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •