Attachments forums

List of attachments posted on this forum.


All files on forums: 136905

Re: MT4 Indicator requests and ideas

chris006, Tue Jul 21, 2020 10:47 pm

Hi 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)?
All files in topic