PDA

View Full Version : Changing macd input to avg HLC


IanBeveridge
11-27-2007, 06:36 PM
hey there guys can someone help me with this I tried to cut and paste in the wedit window but Im messing something up ?

PS the charts look so good I CANT look at my old stuff any longer !!!



Kindest regards, IanB

Rollins
11-27-2007, 07:47 PM
Hi Ian, if I haven't misunderstood you, you'd simply like to use (H+L+C)/3 as the input to the MACD instead of the Close.

The attached MACD Mod can do that, however it doesn't make much of a difference on the default settings.

Just added

PriceTypeSupported = true;
PriceType = PriceType.Typical;
in Initialize().

It's been coded on NT 6.5, should work on NT 6.0 though.

Cheers