VAR11:=EMA(CLOSE,8);
VAR22:=EMA(VAR11,20);
VAR33:=CROSS(VAR11,VAR22);
VAR44:=VAR11< EMA(CLOSE,120);
{引用CCI看多空}
攻击:"CCI.CCI#WEEK",DOTLINE;{周CCI}
力量:"CCI.CCI#MONTH",DOTLINE;{月CCI}
开始:IF(VAR33 AND VAR44 AND 攻击>0,50,0),COLORGREEN;{黑马起步信号}
{黑马阶梯线}
N3:=BARSLAST(CROSS(C,MA(C,20)));
N4:=BARSLAST(CROSS(MA(C,20),C));
黑马阶梯:=IF(N3<N4,N3+1,0)NODRAW;
{强势为收盘与预警价只差}
黄金价:=REF(CLOSE,1)*1.05 NODRAW;
骗我指数:=IF(((HIGH)/(CLOSE)<1.01) AND CLOSE>REF(CLOSE,1),0,1)NODRAW;
QS:=((CLOSE/黄金价)-1)*1000 NODRAW;
强势:=IF(QS>0,QS,0)NODRAW;
{风险价位}
Y:=(HIGH+LOW)/2;
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KD1:=IF(LOW=LLV(LOW,3),1,0);
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+(BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0))));
支撑:=IF(LOW<=R2,DL,REF(DL,BARSLAST(LOW<=R2))),LINETHICK0,COLOR0000FF;
支:=IF(BARSLAST(ABS(支撑-REF(支撑,1)))<(BARSLAST(CLOSE<支撑 AND REF(CLOSE,1)>REF(支撑,1))),支撑,DRAWNULL)NODRAW;
怪物:((L/支)-1)*100 NODRAW;{最低价到支撑价的幅度}
{连涨天数}
角色:(BARSLASTCOUNT(C>O)+1)*5 NODRAW;{连涨天数}
{超牛}
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6)*15*4*1.5;
牛吧:=DK>0 AND DK>REF(DK,1);
黑马:=强势>0 AND 骗我指数=0 AND 牛吧>0.1 AND 黑马阶梯>0;
N8:=BARSLAST(黑马=0);
队伍:IF(N8>0,N8,0);{连续搏击信号}
{智能计算饱和和买卖差}
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,NODRAW;
主卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,NODRAW;
买卖差:=主买+主卖,NODRAW,COLORFF0099;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
血量:IF(SAT>1,1,SAT)*100,NODRAW;{量饱和};