MACD changing

PeterB

Member
Messages
82
Likes
1
I want to lay an MACD on my charts but not the standard one but a 9-16-6 MACD when I go to the indictator box and pull up MACD and place it on the chart a little box comes up the MACD properties box but only gives me one signal time period.when I place this on the chart and then try to change things around by placing the crosshairs on each line and right clicking I get 2 signal periods ie one per line.How do I put in a 9-16-6
On a brighter note my first 3 explorations worked like clockwork.
 
variable MACD/MACDH

PeteB, try using this MS indicator:

Code:
===============
MACD - Standard
===============
---8<--------------------------

{ MACD & Histogram
  [url]http://www.metastocktools.com[/url] }

{ User inputs }
shortPds:=Input("shorter MACD periods",1,260,9);
longPds:=Input("longer MACD periods",2,2600,16);
triggerPds:=Input("MACD signal periods",1,260,6);
plot:=Input("plot:  [1]MACD,  [2]Histogram",1,2,1);

{ MACD }
Mac:=Mov(C,shortPds,E)-Mov(C,longPds,E);

{ Signal }
Signal:=Mov(Mac,triggerPds,E);

{ Histogram }
Hist:=Mac-Signal;

{ Plot in own window }
0;If(plot=1,Signal,Hist);
If(plot=1,Mac,Hist)

---8<--------------------------


jose '-)
 
Top