三花聚顶指标
YDIF:EMA(CLOSE,240)-EMA(CLOSE,520),NODRAW;
YDEA:EMA(YDIF,180),NODRAW;
MACD2:YDIF*2-YDEA,COLORSTICK;
X_1:=SMA(MACD2,3,1);
X_2:=EMA(X_1,3);
X_3:=(X_2/REF(X_2,1)-1)*1000;
STICKLINE(X_3>0,X_1,MACD2,2.5,0),COLORRED;
X_4:=60;
X_5:=130;
X_6:=45;
DIF:EMA(CLOSE,X_4)-EMA(CLOSE,X_5),NODRAW;
DEA:EMA(DIF,X_6),NODRAW;
MACD:DIF*2-DEA,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,2.5,0),COLORMAGENTA;
STICKLINE(MACD<0,0,MACD,2.5,0),COLORBLUE;
X_7:=SMA(MACD,3,1);
ZDIF:EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
ZDEA:EMA(ZDIF,9),NODRAW;
X_8:=ZDIF*2-ZDEA;
X_9:=SMA(X_8,3,1);
DRAWBAND(X_8,RGB(225,97,0),0,RGB(0,255,0));
DRAWBAND(X_8,RGB(225,255,255),X_9,RGB(0,255,255));
DRAWBAND(MACD,RGB(225,25,55),X_7,RGB(25,225,55));
DRAWBAND(MACD2,RGB(225,255,0),X_1,RGB(61,89,171));
DRAWTEXT_FIX(C>O,0.01,0.9,0,' 公众号 股市客栈 '),COLOR99EEEE;
三花选股:IF(X_8>X_9 AND MACD>X_7 AND MACD2>X_1,1,0),NODRAW;
MCD走强选股:IF(CROSS(X_9,X_7) AND MACD>X_7,0.2,0),NODRAW,COLORYELLOW;
STICKLINE(CROSS(X_9,X_7) AND MACD>X_7,0,MACD2,1,0),COLORYELLOW;
STICKLINE(CROSS(X_7,X_1),0,X_1,1,0),COLORYELLOW;
STICKLINE(CROSS(X_1,X_7),0,X_1,1,0),COLORGREEN;
' h( \# W8 C1 o. U
- J" q! s1 Z" V# _2 S8 Y9 N
牛股框架
MB1:MA(C,1),COLOR111111;
MB2:=EMA(C,3);
MB3:=EMA(C,26);
MB4:=MB2-MB3;
牵牛线:EMA(EMA(EMA(C,3),3),3)+MB4,COLORGREEN,,DOTLINE;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR66EEEE;
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORFF00FF;
STICKLINE(涨停,OPEN,CLOSE,0,1),COLOR8B8BFF;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' 公众号 股市客栈 '),COLOR99EEEE;
寻牛线:MA(MA(L,3),3),COLORFF00FF;
上箱顶:HHV(寻牛线,60),COLOR77EEEE;
下箱底:LLV(寻牛线,20),COLORFFBB00;
IF(寻牛线>=REF(上箱顶,1),寻牛线,DRAWNULL),COLORRED,LINETHICK3;
8 z& W9 C$ ~) V& W" M5 w6 U7 }5 u3 X% U
/ i( @! M/ D1 A& S( ]
+ M! _; m. r* @8 o5 @( i5 X
% u4 v5 T: H% J4 z! |0 \" R" v3 `+ O! P4 V