日C:=C#DAY;时C:=C#MIN60;时O:=O#MIN60;
ZQXZ1:=PERIOD=0||PERIOD=1||PERIOD=2;
ZQXZ2:=PERIOD=2||PERIOD=3||PERIOD=4||PERIOD=8;
日:=DAY!=REF(DAY,1);日O:=REF(O,BArslAST(日=1));
STICKLINE(日C>日O&&ZQXZ2,日O,日C,3.6,0),COLOR0088FF;
STICKLINE(日C<=日O&&ZQXZ2,日O,日C,3.6,0),COLORFF9888;
STICKLINE(时C>时O&&ZQXZ1,时O,时C,5,0),COLORFF88FF;
STICKLINE(时C<=时O&&ZQXZ1,时O,时C,5,0),COLORFF8800;
DRAWBAND(MA(C,5),RGB(125,18,125),MA(C,20),RGB(0,118,118));
STICKLINE(MA(C,20)>MA(C,60),MA(C,20),MA(C,60),0,-1),COLOR0088AA;
STICKLINE(MA(C,20)<MA(C,60),MA(C,20),MA(C,60),0,-1),COLOR18A118;
攻击线:MA(C,5),COLORWHITE,LINETHICK2;
魔鬼线:MA(C,10),COLORYELLOW,LINETHICK1;
操盘线:MA(C,20),COLORRED,LINETHICK2;
决策线:MA(C,60),COLOR0000CC,CIRCLEDOT;
AAA:=操盘线+操盘线-REF(操盘线,1);
BBB:=IF(操盘线<AAA,AAA,操盘线);
趋势线:BBB-(EMA(C,2)-BBB),COLORLIBLUE;
涨停:=(C-REF(C,1))*100/REF(C,1)>=9.5&&C=H;
跌停:=((C-REF(C,1))*100/REF(C,1))<=-9.1&&C=L;
IF(趋势线<攻击线,趋势线,DRAWNULL),COLOR0088FF;
DRAWICON(跌停,L*0.98,4);DRAWICON(涨停,H*1.02,5);
IF(决策线<REF(决策线,1),决策线,DRAWNULL),COLOR18A118,CIRCLEDOT;
IF(操盘线<REF(操盘线,1),操盘线,DRAWNULL),COLORLIBLUE,LINETHICK2;
IF(攻击线<REF(攻击线,1),攻击线,DRAWNULL),COLOR18A118,LINETHICK2;
逃命跳:=H<REF(L,1);STICKLINE(逃命跳,H,REF(L,1),5,-1),COLORWHITE;
上攻蹦:=L>REF(H,1);STICKLINE(上攻蹦,L,REF(H,1),5,-1),COLORFF18FF;
{ _最新股票指标公式}
STICKLINE(C>O,C,O,3.00,1),COLOR000088;
STICKLINE(C>O,C,O,2.39,1),COLOR000099;
STICKLINE(C>O,C,O,1.51,1),COLOR0000CC;
STICKLINE(C>O,C,O,0.48,1),COLOR0000DD;
STICKLINE(C<=O,C,O,3.00,1),COLORAAAA00;
STICKLINE(C<=O,C,O,2.39,1),COLORBBBB00;
STICKLINE(C<=O,C,O,1.51,1),COLORCCCC00;
STICKLINE(C<=O,C,O,0.48,1),COLORDDDD00;