买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3.2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,3.2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,3.2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,3.2,0),COLORBLUE;
主力:EMA(CLOSE,10),COLORRED;散户:EMA(CLOSE,5),COLORYELLOW;绿降46.18*EMA
(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,9),COLORFF9C65,LINETHICK2;界点:MA(CLOSE,20);
AH:HHV(H,100);
ALLV(L,100);AHL:=AH-AL;A23:AL+AHL*0.236,COLORAAAAAA;
A38:AL+AHL*0.382,COLOR00AAAA;
A61:AL+AHL*0.618,COLOR00AAAA;
A76:AL+AHL*0.764,COLORAAAAAA;
A77:AL+AHL*0.500,COLORRED;
DRAWTEXT(ISLASTBAR,AH,'100% '),COLORAAAAAA;
DRAWTEXT(ISLASTBAR,A76,'0.764% '),COLORAAAAAA,LINETHICK2;
DRAWTEXT(ISLASTBAR,A61,'0.618% '),COLOR00AAAA,LINETHICK2;
DRAWTEXT(ISLASTBAR,A38,'0.382% '),COLOR00AAAA,LINETHICK2;
DRAWTEXT(ISLASTBAR,A23,'0.236% '),COLORAAAAAA,LINETHICK2;
DRAWTEXT(ISLASTBAR,AL,'最低
'),COLORAAAAAA,LINETHICK2;
DRAWICON(BU,L*0.99,5);
DRAWICON(SEL,H*1.01,4); |