Attachments forums

List of attachments posted on this forum.

All files on forums: 80279

Re: MT4 Indicator requests and ideas

MayaxatL, Wed Jul 22, 2020 8:29 pm

mrtools wrote:
Wed Jul 22, 2020 4:59 pm
chris006 wrote:
Tue Jul 21, 2020 10:48 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)?
Me personally prefer the iMaOnArray, just easier for me.

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:
All files in topic