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

Easy to use indicators - MetaTrader 5 library | Forex indicator downloads - MT4/MT5 resources - MetaTrader 5 resources

author EAcpu | 6 reads | 0 comments |

Originally written for myself when I had to juggle many indicators simultaneously.

Each class consists of multiple fields. They can be the same for all indicators (e.g. indicator handle, timeframe, period, price) and the indicators required for a specific indicator. This class also contains functions for setting and getting these fields.

Download archive . Files with the extension .mqh (with "cind" at the beginning of the file name) should be placed in the folder where your Expert Advisor is located.

Files with indicator names (*.mq5) should be placed in the \MQL5\Indicators\ folder.

Indicator parameters can be set and modified using class functions. For example:

Macd — Object of class CIndMacd.

Indicator values ​​can be obtained by calling the corresponding function. For the "macd_histogram" indicator it will look like this:

Parameter 1 means that the value is obtained for the last completed bar.

In a nutshell, that's it. If you have questions about usage - please write in the comments.


Attachment download

📎 cindmacd.mqh (13.98 KB)

📎 cindparabolicsar.mqh (11.33 KB)

📎 cindsdl.mqh (23.03 KB)

📎 cindstochasticwithflat.mqh (10.82 KB)

📎 cindzigzag.mqh (15.2 KB)

📎 cindzigzagideal.mqh (17.2 KB)

📎 idealzz.mq5 (7.33 KB)

📎 idealzzp.mq5 (7.33 KB)

📎 macd_histogram.mq5 (5.46 KB)

📎 slopedirectionline.mq5 (20.44 KB)

📎 stohasticwithflat.mq5 (8.86 KB)

📎 zigzagcolor.mq5 (8.89 KB)

Source: MQL5 #16519

Verification code Refresh