Improved MACDH divergence kit
Download Link:
http://www.4shared.com/file/10030008/d42b7009/MACDH_Divergence.html
Metastock coding for metastock 8 users:
Indicator 1: zz MACDH
Formula:
FMA:= Input("FastMA",1,500,12);
SMA:= Input("SlowMA",1,500,26);
Sig:= Input("Signal",1,500,9);
a:= Mov(C,FMA,E);
b:= Mov(C,SMA,E);
d:= a - b ;
f:= Mov(a-b,Sig,E);
d-f;
0
Indicator 2: zz MACDH Divergence
Formula:
If( H = HHV(H,60) AND Fml( "zz MACDH") = LLV(Fml("zz MACDH"),40),-1,
If(L = LLV(L,25) AND Fml("zz MACDH") = HHV(Fml("zz MACDH"),25),1,0));
Now go to expert advisor ---> new (name it MACDH Divergence kit) ---> symbols:
Symbol 1: Buy
Formula: Fml( "zz MACDH divergence") = 1 AND C > O AND C > Ref(C,-1)
Symbol 2: Sell
Formula: Fml( "zz MACDH divergence") = -1 AND C < O AND C < Ref(C,-1)
Go to highlights:
Highlight 1: Bullish divergence
Formula: Fml( "zz MACDH divergence") = 1
Highlight 2: Bearish Divergence
Formula: Fml( "zz MACDH divergence") = -1
A hectic process, I must say.
I have enclosed a couple of charts.
Note : Trend kills this system (generates too many false trades when in an established trend). The system does not kill the trend
Oxy
Download Link:
http://www.4shared.com/file/10030008/d42b7009/MACDH_Divergence.html
Metastock coding for metastock 8 users:
Indicator 1: zz MACDH
Formula:
FMA:= Input("FastMA",1,500,12);
SMA:= Input("SlowMA",1,500,26);
Sig:= Input("Signal",1,500,9);
a:= Mov(C,FMA,E);
b:= Mov(C,SMA,E);
d:= a - b ;
f:= Mov(a-b,Sig,E);
d-f;
0
Indicator 2: zz MACDH Divergence
Formula:
If( H = HHV(H,60) AND Fml( "zz MACDH") = LLV(Fml("zz MACDH"),40),-1,
If(L = LLV(L,25) AND Fml("zz MACDH") = HHV(Fml("zz MACDH"),25),1,0));
Now go to expert advisor ---> new (name it MACDH Divergence kit) ---> symbols:
Symbol 1: Buy
Formula: Fml( "zz MACDH divergence") = 1 AND C > O AND C > Ref(C,-1)
Symbol 2: Sell
Formula: Fml( "zz MACDH divergence") = -1 AND C < O AND C < Ref(C,-1)
Go to highlights:
Highlight 1: Bullish divergence
Formula: Fml( "zz MACDH divergence") = 1
Highlight 2: Bearish Divergence
Formula: Fml( "zz MACDH divergence") = -1
A hectic process, I must say.
I have enclosed a couple of charts.
Note : Trend kills this system (generates too many false trades when in an established trend). The system does not kill the trend
Oxy
Last edited: