趋势线:MA(C,20),LINETHICK2,COLORGREEN;
短线操作线:MA(C,3),COLORWHITE;
IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势线<=REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
STICKLINE(C/REF(C,1)>=1.095 AND C=H,O,C,2.8,0),COLORMAGENTA;
强势线:MA(LOW,20)*1.1,,COLORMAGENTA,CROSSDOT;
弱势线:MA(HIGH,20)*0.9,COLORBLUE,CROSSDOT;
DRAWTEXT(主升浪副图.能量饱和度>=95,L,'●'),COLORYELLOW,LINETHICK2;
DRAWTEXT(主升浪副图.做空能量<=3,L*0.98,'●'),COLORRED,LINETHICK2;
DRAWTEXT(主升浪副图.主力拉升>50,L*0.96,'●'),COLORGREEN,LINETHICK2;
多头:=趋势线>REF(趋势线,1);
走好:=多头=1 AND REF(多头,1)<>1;
A:=主升浪副图.能量饱和度>=95 AND COUNT(主升浪副图.能量饱和度>=95,BARSLAST(走好)+1)=1;
B:=主升浪副图.做空能量<=3 AND COUNT(主升浪副图.做空能量<=3,BARSLAST(走好)+1)=1;
多头主升:=A OR B;
DRAWTEXT(多头主升,L*0.95,'主升浪'),COLORYELLOW;
AA:=主升浪副图.能量饱和度>=95 OR 主升浪副图.做空能量<=3;
主升浪突破:=AA AND CROSS(C,强势线);
DRAWTEXT(主升浪突破,L*0.95,'主升浪[突破]'),COLORYELLOW;
主升浪强势:=AA AND COUNT(AA,BARSLAST(CROSS(主升浪副图.做多能量,100))+1)=1;
DRAWTEXT(主升浪强势,L*0.9,'主升浪[强势]'),COLORYELLOW;