同花顺GBS黑马线公式
源码
V1:EMA(CLOSE,330),colorred,LINETHICK5;
V2:EMA(EMA(CLOSE,540)*1.00035,5),LINETHICK5,colorblue;
DRAWICON(CROSS(V1,V2),V2,1);
X:=(CROSS(V1,V2));
BBI:(MA(CLOSE,300)+MA(CLOSE,330)+MA(CLOSE,360)+MA(CLOSE,390))/4,colorgreen,LINETHICK5;
DRAWTEXT(CROSS(V1,V2) AND V1>BBI,V1-4,'黑马<85>'),colorred;
QY1:=100-3*SMA((CLOSE-LLV(LOW,150))/(HHV(HIGH,180)-LLV(LOW,150))*100,60,1)+2*SMA(SMA((CLOSE-LLV(LOW,150))/(HHV(HIGH,180)-LLV(LOW,150))*100,42,1),60,1);
QY2:=100-3*SMA((OPEN-LLV(LOW,150))/(HHV(HIGH,180)-LLV(LOW,150))*100,60,1)+2*SMA(SMA
((OPEN-LLV(LOW,150))/(HHV(HIGH,180)-LLV(LOW,180))*100,42,1),60,1);
QY3:=QY1<REF(QY2,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VARC=1) AND V1>BBI,V1,V2,6,0),coloryellow;
DRAWTEXT((VARC=1) AND V1>BBI,BBI,'必买'),colorred;
STICKLINE((VARD=1) AND V1<BBI,V2,V1,6,0),colorwhite;
DRAWTEXT((VARD=1) AND V1<BBI,V1,'必卖'),colorgreen;
V高宝生:=MA(CLOSE,120);
底: V高宝生-2*STD(CLOSE,155),colorcyan,LINETHICK2;
平: MA(CLOSE,153),coloryellow,LINETHICK2;
天: V高宝生+2*STD(CLOSE,390),colorwhite,LINETHICK2;
DRAWTEXT(CROSS(平,V1) AND V2<V1 AND V1>BBI,底,'牛牛牛'),colorred;
DRAWTEXT(CROSS(平,V1) AND V2>V1 AND V1>BBI AND 天>V2,底,'涨涨涨'),colorred;
DRAWTEXT(CROSS(平,V1) AND V1<BBI AND BBI<V1 AND 底>V2,底,'建仓'),colorred;
DRAWTEXT(CROSS(V1,平) AND V2<BBI AND V1<V2,天,'跑跑跑'),colorgreen;
DRAWTEXT(CROSS(BBI,底) AND V1>BBI AND 平<V1,天,'逃命'),colorgreen;
DRAWTEXT(CROSS(天,V2) AND V2>BBI AND V1>BBI,V2,'正反转'),colorred;
DRAWTEXT(CROSS(V2,天) AND V2>BBI AND 平<V1 AND V1<BBI,V2,'付反转'),colorgreen;
DRAWTEXT(CROSS(V2,天) AND 平>V1,V2,'小心小心'),colorgreen;
DRAWTEXT(CROSS(平,V2) AND 天>V2 AND V1>BBI AND V1<V2,天,'左不蓝绿牛'),colorred;
DRAWTEXT(CROSS(V2,天) AND V2<BBI,V2,'小心小心'),colorcyan;
DRAWTEXT(CROSS(V1,BBI),V1-1,'金叉低买'),colorwhite;
DRAWTEXT(CROSS(BBI,V1),V1+1,'死叉不买'),colorgreen;
DRAWTEXT(CROSS(BBI,V2) AND V1>V2 AND 平>V1,V2,'放心持有'),colorred;
DRAWTEXT(CROSS(V2,V1) AND BBI<V2+2,V2,'黑马跑了'),colorwhite;
DRAWTEXT(CROSS(V2,底) AND V1>V2 AND 天<BBI,V2-1,'别抱幻想跑'),colorgreen;
DRAWTEXT(CROSS(V1,BBI) AND BBI>V2 AND 平>V1,V1-2,'绝对放心'),colorred;
DRAWTEXT(CROSS(天,V1) AND BBI>V1 AND V2>BBI,天+2,'建仓建仓'),colormagenta;
DRAWTEXT(CROSS(BBI,天) AND BBI>V1 AND V2>BBI,天-2,'警惕警惕'),colorblue;
DRAWTEXT(CROSS(底,BBI) AND BBI<V1,底-2,'有大涨.www.guhai.com.cn‘),colorred;