赢:=MA(C,1);
在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);
龙:=MA(在,3);
DRAWBAND(龙,RGB(50,100,100),在,RGB(231,231,231));{6.05版本才能用彩色带}
赢在龙头:=(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;
A2:=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);
A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5-A6);
IF(A7,LLV(L,21),DRAWNULL),COLORFFFF00;
IF(A7,LLV(L,21),DRAWNULL),COLORRED,CIRCLEDOT;
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<REF(C,1),C,O,2,0),COLORGREEN,LINETHICK1;
IF(龙头>=0,度假,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(赢在>=0,工作,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(赢在>=0,赢在龙,DRAWNULL),LINETHICK1,COLORRED;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK1;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK2;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,1),COLOR00FF00,CIRCLEDOT,LINETHICK3;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK4;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK5;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK6;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK7;
STICKLINE(CROSS(在,龙),L-0.05,L*0.96,2,0),COLORYELLOW;
选股公式源码:
A:=MA(C,1);
B:=SMA(SMA(SMA(A,2,1),2,1),2,1);
C1:=MA(B,3);
买:CROSS(B,C1) |
本文来自:创幻论坛 http://www.chcj.net |