同花顺赢在龙头主图指标
源码
赢:=MA(C,1);
在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);
龙:=MA(在,3);
DRAWBAND(EMA(EMA(C,2),2),RGB(220,10,0),MA(C,5),RGB(0,150,80));
DRAWBAND(MA(C,5),RGB(255,255,10),EMA(MA(C,5),4),RGB(0,220,90));
赢在龙头:=(L+H+C*4)/6;
工作:EMA(赢在龙头,12),COLOR00FF00;
度假:EMA(赢在龙头,19);
赢在:=(工作-REF(工作,1))/REF(工作,1)*100;
龙头:=(度假-REF(度假,1))/REF(度假,1)*100;
G:=BARSLAST(CROSS(赢在,0));
赢在龙:REF(赢在龙头,G),colorwhite,LINETHICK1;
AA2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
AA4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
AA5:=EMA(CLOSE,12)-EMA(CLOSE,26);
AA6:=EMA(AA5,9);
AA7:=(AA5-AA6);
STICKLINE(C>REF(C,1),C,O,3,0),COLOR00EEEE;
STICKLINE(C>REF(C,1),C,O,2.5,0),COLOR0088CC;
STICKLINE(C>REF(C,1),C,O,2,0),COLOR0066DD,LINETHICK2;
STICKLINE(C>REF(C,1),C,O,1.5,0),COLOR0044EE;
STICKLINE(C>REF(C,1),C,O,1,0),COLOR0022FF;
STICKLINE(C
IF(龙头>=0,度假,DRAWNULL),colormagenta,LINETHICK2;
IF(赢在>=0,工作,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(赢在>=0,赢在龙,DRAWNULL),LINETHICK1,colorred;
STICKLINE(CROSS(在,龙),L*0.98,L*0.97,8,0),coloryellow;