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

IncSAROnArray - library for MetaTrader 5 - MT4/MT5 resources

author EAcpu | 5 reads | 0 comments |

IncSAROnArray - library for MetaTrader 5

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.

IncSAROnArray - library for MetaTrader 5

Test_SAROnArray - Usage example of CSAROnArray class


Attachment download

📎 incsaronarray.mqh (4.67 KB)

📎 test_saronarray.mq5 (2.66 KB)

Source: MQL5 #668

Verification code Refresh