LLV(L,20);
阻力线:SMA(HHV(H,20),20,1);
支撑线:SMA(LLV(L,20),20,1);
aa1:=WMA(C,2);
bb1:=EMA(aa1,2);
a:=MA(bb1,3);
aa2:=WMA((H+C+O)/3,18);
dd3:=a>=aa2 AND C>aa2;
dd4:=add5:=a>aa2 ;
STICKLINE((dd4 OR dd5) AND O<=C ,H,L,0.5,0),colorcyan;
STICKLINE((dd4 OR dd5) AND O<=C ,C,O,7,0),colorcyan;
STICKLINE((dd3 OR C>aa2) AND O<=C,C,O,7,0),colorred;
STICKLINE((dd3 OR C>aa2) AND O<=C,H,L,0.5,0),colorred;
STICKLINE((dd3 OR C>aa2) AND O>=C,C,O,7,0),coloryellow;
STICKLINE((dd3 OR C>aa2) AND O>=C,H,L,0.5,0),coloryellow;
STICKLINE((dd4 OR dd5) AND O>=C ,H,L,0.5,0),colorgreen;
STICKLINE((dd4 OR dd5) AND O>=C ,C,O,7,0),colorgreen;
MA5:MA(C,5),colorblue;
MA55:MA(C,55),BLACK;
MA55:MA(C,55),colorblue;