同花顺逃顶大师指标公式
趋势:EMA(C,5);
短线:EMA(趋势,8);
中线:EMA(短线,13);
长线:EMA(中线,50);
M1:=(H+L+C*2)/4;
M2:=EMA((L+H+O)/3,5);
M3:=EMA(M1,8);
M4:=STD(M1,8);
M5:=(M1-M3)/M4*100;
M6:=EMA(EMA(M5,8),4);
M7:=EMA(M6,9);
M8:=((H+L+C)/3-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100-50;
M9:=SMA(M8,3,1);
M10:=SMA(M8,26,1);
M11:=SMA(M9,3,1);
M12:=SMA(M11,3,1);
M13:=CROSS(M11,M12)ANDM11<0ANDM11>REF(M11,1)AND趋势>REF(趋势,1)ANDH<长线;
M14:=趋势>REF(趋势,1)ANDCROSS(趋势,M2)ANDM11>REF(M11,1)ANDM11<0AND趋势<短线AND趋势<中线AND趋势<长线;
DRAWICON(CROSS(趋势,短线)AND(CROSS(M6,M7)ANDM7<-20ORM7<-85ANDC>O),短线*0.98,4);
DRAWTEXT(CROSS(趋势,短线)AND(CROSS(M6,M7)ANDM7<-20ORM7<-85ANDC>O),短线*0.96,'追涨'),COLORFF0000;
DRAWTEXT(FILTER(M6>REF(M6,3)ANDC<趋势,3),H*1.03,'逃顶'),COLOR00FF00;
DRAWICON(FILTER(M6>REF(M6,1)ANDM6<-10ANDCROSS(M6,M7)ANDM10>REF(M10,1)ANDM10<-10,5),L,1);
DRAWICON(FILTER(趋势>中线AND趋势>长线,5),H*1.03,2);
DRAWICON(FILTER(CROSS(C,趋势)ANDCROSS(C,短线)ANDCROSS(C,中线),3)ANDM11<0ANDM11>REF(M11,1)ANDCROSS(趋势,短线)AND(趋势<长线OR长线>REF(长线,1)),L*0.97,10);
DRAWTEXT(FILTER(CROSS(C,趋势)ANDCROSS(C,短线)ANDCROSS(C,中线),3)ANDM11<0ANDM11>REF(M11,1)ANDCROSS(趋势,短线)AND(趋势<长线OR长线>REF(长线,1)),L*0.96,'穿三线'),colorred;
同花顺逃顶至尊主图源码
本指标对趋势的把握非常不错。
指标借鉴了Boll指标,将趋势分为上趋势、次上趋势、下趋势、次下趋势。
将趋势分级,同时配以通道线,操作时一目了然。
注意:使用时配合其他分析手段效果更佳。
上趋势:MA(LOW,20)*1.2,colormagenta,CROSSDOT;
次上趋势:MA(LOW,20)*1.1,coloryellow;
次下趋势:MA(HIGH,20)*0.9,colorwhite;
下趋势:MA(HIGH,20)*0.8,colorgreen,CROSSDOT;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势ANDC<次上趋势,2,IF(C<下趋势,0,1)));
STICKLINE(趋势强度=0,H,L,2,1),colorblue;
STICKLINE(趋势强度=1,H,L,2,1),colorgreen;
STICKLINE(趋势强度=2,H,L,2,1),colorgray;
STICKLINE(趋势强度=3,H,L,2,1),coloryellow;
STICKLINE(趋势强度=4,H,L,2,1),colormagenta;
STICKLINE(趋势强度=0,C,O,2,0),colorblue;
STICKLINE(趋势强度=1,C,O,2,0),colorgreen;
STICKLINE(趋势强度=2,C,O,2,0),colorgray;
STICKLINE(趋势强度=3,C,O,2,0),coloryellow;
STICKLINE(趋势强度=4,C,O,2,0),colormagenta;