My System - My trades.

extremist

Well-Known Member
Code:
_SECTION_BEGIN("VK MACD Combo");
r1 = Param( "Fast avg I", 36, 2, 200, 1 );
r2 = Param( "Slow avg I", 200, 2, 200, 1 );

r3 = Param( "Fast avg II", 4, 2, 200, 1 );
r4 = Param( "Slow avg II", 12, 2, 200, 1 );

m1 = MACD(r1, r2);
m2 = MACD(r3, r4);

Plot( m1,"\nMACD ("+r1+","+r2+")", ParamColor("MACD I color", colorRed ));
Plot( m2,"\nMACD ("+r3+","+r4+")", ParamColor("MACD II color", colorbrightgreen ));
Plot(0,"",colorLightGrey,styleDashed);

b1= Cross(m1,0);
s1= Cross(0,m1);

PlotShapes( b1*shapeUptriangle + s1*shapeDowntriangle, IIf( b1,colorbrightGreen,colorRed),0,IIf( b1,-2,2) );

b2 = m1>0 AND Cross(m2,0);
s2 = m1<0 AND Cross(0,m2);

PlotShapes( b2*shapeUparrow + s2*shapeDownarrow, IIf( b2,colorbrightGreen,colorRed),0,IIf( b2,-1,1) );

_SECTION_END();
 

Similar threads