阻力线:SMA(HHV(H,20),20,1); 支撑线:SMA(LLV(L,20),20,1);
中心线:(阻力线+支撑线)/2;
UPPER: 中心线 + 2*STD(CLOSE,20);
LOWER: 中心线 - 2*STD(CLOSE,20);
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:=a<aa2 ;
dd5:=a>aa2 ;
STICKLINE((dd4 OR dd5) AND O<=C ,H,L,0,0),colorcyan;
STICKLINE((dd4 OR dd5) AND O<=C ,C,O,9,1),colorcyan;
STICKLINE((dd3 OR C>aa2) AND O<=C,H,L,0,0),colorred;
STICKLINE((dd3 OR C>aa2) AND O<=C,C,O,9,1),colorred;
STICKLINE((dd4 OR dd5) AND O>C ,H,L,0,0),colorgreen;
STICKLINE((dd4 OR dd5) AND O>C ,C,O,9,0),colorgreen;
STICKLINE((dd3 OR C>aa2) AND O>C,C,O,9,0),coloryellow;
STICKLINE((dd3 OR C>aa2) AND O>C,H,L,0,0),coloryellow;
|
