源码
STICKLINE(close>=open,open,close,7,1),colorred;
STICKLINE(open>close,close,open,7,0),colorgreen;
STICKLINE(close>=open,close,HIGH,0,1 ),colorred;
STICKLINE(close>=open,open,low,0,1),colorred;
STICKLINE(open>close,close,low,0,0),colorgreen;
STICKLINE(open>close,open,HIGH,0,0),colorgreen;
O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLORyellow,linethick1;
O2:EMA(O1,3),COLORwhite,linethick1;
O3:EMA(O2,3),COLORmagenta,linethick1;
CP1:HHV(O1,20),coloryellow;
CP2:=HHV(O1,1);
A:=CROSS(CP2,CP1);
DRAWTEXT(FILTER(A,1),(CP2* 1),'▲'),coloryellow;
mmm:=MA(CLOSE,20);
底部支撑:LLV(EMA((LOW),1),60),colorred;
MA3:MA(CLOSE,110),colorred,linethick2;
MA5:MA(CLOSE,110),coloryellow,linethick1;
MA2:MA(CLOSE,250),coloryellow,linethick3;
MA4:MA(CLOSE,250),colorblue,linethick2;
DRAWTEXT((CLOSE<mmm),mmm,'*'),COLOR00FF00,linethick1;
DRAWTEXT((CLOSE>mmm),mmm,'*'),colorred,linethick1;
DRAWTEXTABS(0,10,'《残剑智能决策系统》\n新编横盘突破升级版'),Colorred;
{横盘突破选股-大智慧L2版
O1:=(SUM(EMA((CLOSE+LOW)/2,1)/3,3));
O2:=EMA(O1,3);
O3:=EMA(O2,3);
CP1:=HHV(O1,20);
CP2:=HHV(O1,1);
A:=CROSS(CP2,CP1);
横盘突破:FILTER(A,1);
};