买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW*0.989,'B'),COLORRED,LINETHICK3;
DRAWTEXT(BU,LOW,''),COLOR208FFF,LINETHICK3;
DRAWTEXT(SEL,HIGH,''),COLORFFFF00,LINETHICK3;
DRAWTEXT(SEL,HIGH*1.0175,'S'),COLORFFFF00,LINETHICK3;
STICKLINE(买线 =卖线,LOW,HIGH,1,0),COLORRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,4.5,0),COLOR0000AA;
STICKLINE(买线 =卖线,CLOSE,OPEN,4,0),COLOR0000CC;
STICKLINE(买线 =卖线,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,0),COLOR0000EE;
STICKLINE(买线 卖线,CLOSE,OPEN,4.5,0),COLORAAAA00;
STICKLINE(买线 卖线,CLOSE,OPEN,4,0),COLORBBBB00;
STICKLINE(买线 卖线,CLOSE,OPEN,3,0),COLORCCCC00;
STICKLINE(买线 卖线,CLOSE,OPEN,2,0),COLOREEEE00;
STICKLINE(买线 卖线,LOW,HIGH,1,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF;
界: MA(CLOSE,27),LINETHICK1,COLOR00FFFF;
DRAWTEXT(CROSS(指导线,界),界,''),COLORFFFFFF;
DRAWTEXT(CROSS(界,指导线),界,''),COLOR00FFFF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
DRAWTEXT(CROSS(J,D),L*0.999,''),COLOR00FFFF,LINETHICK4;
DRAWTEXT(CROSS(J,D),L,''),COLOR00FFFF;
DRAWTEXT(CROSS(J,G),H*1.005,''),COLORFFFF00,LINETHICK4;
DRAWTEXT(CROSS(J,G),H,''),COLORFFFF00;
利多方舟操盘线
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'B '),coloryellow;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'S '),colorFFFF34;
年:MA(CLOSE,26),COLORGREEN;
STICKLINE(C =年 AND C =O,C,O,4,0),COLORRED;
STICKLINE(C =年 AND C =O,H,L,0,0),COLORRED;
STICKLINE(C =年 AND C O,C,O,4,1),COLORRED;
STICKLINE(C =年 AND C O,O,H,0,0),COLORRED;
STICKLINE(C =年 AND C O,C,L,0,0),COLORRED;
STICKLINE(C 年 AND C O,C,O,4,1),COLORffff00;
STICKLINE(C 年 AND C =O,C,O,4,1),COLORffff00;
STICKLINE(C 年 AND C =O,H,L,0,1),COLORffff00;
STICKLINE(C 年 AND C O,C,H,0,1),COLORffff00;
STICKLINE(C 年 AND C O,O,L,0,1),COLORffff00;