Init() method with the following parameters is called in the OnInit() function:
Solve() method with the following parameters is called in the OnCalculate() function:
Test_BullsBearsOnArray.mq5 is a sample indicator showing CBullsBearsOnArray class application. IncBullsBearsOnArray file must be placed to MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created). CMAOnArray class from the IncMAOnArray file is needed for the proper work. It can be found here.
It is very important to be able to estimate the Bulls and Bears Power balance since changes in this balance initially signalize about possible trend reversal. This task can be solved using the Bulls Power and Bears Power oscillators developed by Alexander Elder and described in his book titled Trading for a Living.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/646
The indicator creates fractals from another larger timeframe on a current chart based on Fine_Fractals indicator data.BrainTrend_HTF_Signal
BrainTrend_HTF_Signal displays trend directions from the last bars of the BrainTrend1 and BrainTrend2 as a sequence of graphical objects. The number of bars to be used is set in the input parameters.