以下是同花顺粘与发幅图指标
同花顺粘与发幅图指标
源码
主线:EMA(EMA(C,1),5);
本:EMA(HHV(主线,5),1),COLOR00FFFF,LINETHICK2;
急:EMA(HHV(本,21),1),COLOR0089FF,LINETHICK2;
稳:EMA(HHV(急,21),2),COLORDB89FF,LINETHICK2;
投:EMA(HHV(稳,21),3),COLOR8916FF,LINETHICK2;
散:EMA(HHV(投,21),4),COLORFFCC62,LINETHICK2;
集:EMA(HHV(散,21),5),COLORFF9D52,LINETHICK2;
马:EMA(HHV(集,21),6),COLORFF5B5E,LINETHICK2;
STICKLINE(O>=C,H,L,0,0),colorcyan;
STICKLINE(O>=C,C,O,3,0),colorcyan;
STICKLINE(C>=O,L,H,0,0),colorred;
STICKLINE(C>=O,C,O,3,1),colorred;
DRAWTEXT(CROSS(CLOSE,散),(LOW * 0.95),’牛’),coloryellow;
DRAWTEXT(CROSS(CLOSE,本),(LOW * 0.95),’入’),colorred;
界:MA(CLOSE,60),COLORFF66FF,LINETHICK2;
//K2:=BACKSET(界<REF(界,1),2);
//IF(K2,界,8),COLOR00A600,LINETHICK2;
Y1:=CROSS(本,界);
Y2:=CROSS(本,稳);
Y3:=(本=急 AND 本=稳 AND 本=投);
DRAWTEXT(Y1>=1,LOW-0.02,’转’),COLOR00FFFF,LINETHICK2;
DRAWTEXT(Y1>=1,LOW-0.5,’牛’),COLOR00FFFF,LINETHICK2;
DRAWTEXT(Y2>=1,LOW-0.02,’要’),COLORFFFFCC,LINETHICK2;
DRAWTEXT(Y2>=1,LOW-0.5,’飙’),COLORFFFFCC,LINETHICK2;
DRAWTEXT(Y2,LOW-0.08,’◆’),COLOR66FFFF,LINETHICK2;
DRAWTEXT(Y3,LOW-0.08,’◆’),COLOR66FFFF,LINETHICK2;
//{DRAWTEXT(线,LOW-0.5,’底’),COLOR66FFFF,LINETHICK2;};
评论(0)