主图源码:
D:EXPMA(C,17),COLOR00FFFF,LINETHICK2;
CC:EXPMA(EXPMA(CLOSE,50),1),LINETHICK3,COLOR00FF00 ;
IF(CC>=REF(CC,1),CC,DRAWNULL),COLORRED ,LINETHICK3;
STICKLINE(C>=D && C>=O,C,O,3,0),COLORRED;
STICKLINE(C>=D&& C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=D && C<O,C,O,3,1),COLORRED;
STICKLINE(C>=D && C<O,O,H,0,0),COLORRED;
STICKLINE(C>=D && C<O,C,L,0,0),COLORRED;
STICKLINE(C<D && C>O,C,O,3,1),COLORBLUE;
STICKLINE(C<D && C<=O,C,O,3,1),COLORBLUE;
STICKLINE(C<D && C<=O,H,L,0,1),COLORBLUE;
STICKLINE(C<D && C>O,C,H,0,1),COLORBLUE;
STICKLINE(C<D && C>O,O,L,0,1),COLORBLUE;
VAR1:=EMA(CLOSE,4)-EMA(CLOSE,13);
AA:=VAR1>=REF(VAR1,1);
BB:=VAR1<REF(VAR1,1);
买入:DRAWICON(CROSS(AA,BB),L,1);
卖出:DRAWICON(CROSS(BB,AA),H,2);
STICKLINE(买入,O,(C-O)/2+O,3,0),COLOR335555;
STICKLINE(买入,O,(C-O)/2+O,2.2,0),COLOR338888;
STICKLINE(买入,O,(C-O)/2+O,1.5,0),COLOR33AAAA;
STICKLINE(买入,O,(C-O)/2+O,1,0),COLOR33CCCC;
STICKLINE(买入,O,(C-O)/2+O,0,0),COLOR33EEEE;
STICKLINE(卖出,O,(C-O)/2+O,3,0),COLOR550055;
STICKLINE(卖出,O,(C-O)/2+O,2.2,0),COLOR880088;
STICKLINE(卖出,O,(C-O)/2+O,1.5,0),COLORAA00AA;
STICKLINE(卖出,O,(C-O)/2+O,1,0),COLORCC00CC;
STICKLINE(卖出,O,(C-O)/2+O,0.5,0),COLOREE00EE;
副图源码:
846422345.jpg
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1),COLORFFFFFF,LINETHICK2;
AA:MA(MA(VOLUME,M2),1),LINETHICK3,COLOR00FF00;
IF(AA>=REF(AA,1),AA,DRAWNULL),COLORRED,LINETHICK3;
84733439.png
选股公式:
D:=EXPMA(C,17),COLOR00FFFF,LINETHICK2;
CC:=EXPMA(EXPMA(CLOSE,50),1),LINETHICK3,COLOR00FF00 ;
B:=CROSS(D,CC);
M1:=5;M2:=10;
VOLUME:=VOL;
MAVOL1:=MA(VOLUME,M1),COLORFFFFFF,LINETHICK2;
AA1:=MA(MA(VOLUME,M2),1),LINETHICK3,COLOR00FF00;
M:=CROSS(MAVOL1,AA1);
XG:B AND M;
848166939.jpg
|