Unlock Trading Potential with LoongMAx96: A Must-Have Indicator for MetaTrader 5

Mike 2010.02.15 22:28 78 0 0
Attachments

Author:

Loong

Introducing LoongMAx96—an innovative indicator designed for MetaTrader 5 that efficiently draws 96 moving average lines using just 100 lines of code, thanks to the MyBuffer class.

The concept originated from discussions on Rosh's topic, and you can explore those threads here:

In Chinese, the term is known as "jun xian liu," which translates to "Moving Average Line Flow." The goal was to streamline the multi-indicator template into a single multi-line indicator. However, this approach often leads to a lot of repetitive code.

Initially, I considered using a two-dimensional array—one dimension for the time index and another for the MAs index. Unfortunately, MQL4 limits us to just 8 lines for indicators. Thankfully, with MetaTrader 5 and MQL5, we gained support for classes, allowing for a more efficient one-dimensional approach. This led to the first version of LoongMAx96, which you can check out in this forum thread: Version Discussion (Note: the old class named CIndicatorBuffer had a naming conflict with Indicator.mqh).

Subsequent improvements and discussions were held in this thread: New Version Discussion. A special thanks to 'Rosh' and 'investeo' for their contributions!

And now, I’m excited to share the latest version with you.

Input Parameters:

Worried about parameters? Don’t be! LoongMAx96 operates beautifully right out of the box without any need for adjustments.


LoongMAx96 Indicator


List
Comments 0