H1-H4mrtools wrote: ↑Wed Jul 22, 2020 4:59 pmMe personally prefer the iMaOnArray, just easier for me.chris006 wrote: ↑Tue Jul 21, 2020 10:48 pmHi mrtools,
I have taken the standard MACD (attached) from MT4 and managed (by copy-paste) to add 2 EMAs to it with view in trading the intersection of the 2 EMAs.
I would like to do a version by using two LWMAs but I do not have a clue how to proceed:
In MovingAverages.mqh, LinearWeightedMAOnBuffer has an additional switch at the end, "int &weightsum".
Could you demonstrate how to use LinearWeightedMAOnBuffer instead of ExponentialMAOnBuffer in the "MACD with 2 EMAs" below (line 104)?
2. 25 EMA (Apply to high)
3. 25 EMA (Apply to low)
Such a strategy is based on EMA and MACD
Example of Buy & Sell Setup: