IncSAROnArray - library for MetaTrader 5 - MT4/MT5 resources

The CSAROnArray class is designed to calculate SAR (Parabolic SAR) values on indicator buffers.
The method OnInit() function with the following parameters is called in Initialize() :
The method OnCalculate() is called with the following parameters in the resolve() function:
Additional methods:
Test_SAROnArray.mq5 is a sample indicator showing the application of CAROnArray class. The IncSAROnArray file must be placed in the terminal's data folder in MQL5\Include\IncOnArray (the IncOnArray folder must be created).
The Parabolic SAR technical indicator was developed for analyzing trending markets. This indicator is constructed on a price chart. This indicator is similar to a moving average. The only difference is that the Parabolic SAR moves with a higher acceleration and may change its position in terms of price.

Test_SAROnArray - Usage example of CSAROnArray class
Attachment download
📎 incsaronarray.mqh (4.67 KB)
📎 test_saronarray.mq5 (2.66 KB)
Source: MQL5 #668
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •