通达信好牛指标公式

[复制链接]
查看67 | 回复0 | 2021-8-20 00:39:52 | 显示全部楼层 |阅读模式

以下是通达信好牛指标公式(无源码的请下载附件导入)

WC:=C#WEEK,LINETHICK0;
 WO1:=IF(WEEKDAY<REF(WEEKDAY,1),O,DRAWNULL);
 WO:=HHV(WO1,WEEKDAY),LINETHICK0;
 WH:=HHV(H,WEEKDAY),LINETHICK0;
 WL:=LLV(L,WEEKDAY),LINETHICK0;
 MC:=C#MONTH,LINETHICK0;
 MO1:=IF(DAY<REF(DAY,1),O,DRAWNULL);
 MO:=HHV(MO1,DAY),LINETHICK0;

 AG:=DAY<REF(DAY,1);
 BG:=BARSLAST(AG)+1;
 MH:=HHV(H,BG),LINETHICK0;
 ML:=LLV(L,BG),LINETHICK0;
 STICKLINE(MC>=MO,MO,MC,4,0),COLOR5CA8FD;
 STICKLINE(MC<MO,MO,MC,4,0),COLOR008B00;
 STICKLINE(WC>=WO,WO,WC,4,0),COLOR003399;
 STICKLINE(WC<WO,WO,WC,4,0),COLOR993300;
 DRAWKLINE(H,O,L,C);

 A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
 A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:EMA(A2,200)*1.118 ,LINETHICK2,COLORWHITE;
 IF((金线王>=REF(金线王,1)),金线王,DRAWNULL),LINETHICK2,COLORMAGENTA;
 IF((金线王<=REF(金线王,1)),金线王,DRAWNULL),LINETHICK2,COLORGREEN;
底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
顶部:=100-底部;
均值:=(底部+顶部)/2;
顶部成本价:COST(顶部),COLORYELLOW,DOTLINE,LINETHICK2;
 WW:=CROSS(顶部成本价,金线王) AND REF(金线王,1)<金线王;
DRAWTEXT(WW,L*0.98,'★黄金启动')COLORCYAN;

 


多头线:EMA(C,1.5),COLOR0000CC,LINETHICK0;
空头线:EMA(C,5),COLORMAGENTA,LINETHICK0;
均衡线:EMA(空头线,5),COLORGREEN,LINETHICK0;
     VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
     VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
     ZAI:=FILTER(VARF1 AND VARF2,2);
 DRAWTEXT(ZAI,均衡线*0.98,'↖主力拉升'),COLOR00FF00;

 VLL:=CROSS(MA(C,13),MA(C,21));
 DRAWTEXT(VLL,MA(C,13)-0.09,'圆弧底'),COLORWHITE;
 A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
 A4:=SMA(A3,3,1);
 A5:=SMA(A4,3,1);
 A6:=3*A4-2*A5;
 A7:=C-REF(C,1);
 A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
 DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟庄买进'),COLORYELLOW;
 STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
 VAR35:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);{大资金活动有未来}
大资金活动A选:DRAWTEXT(VAR35 AND COUNT(VAR35,30)=1,LOW*0.98,'⊙大资金活动'),LINETHICK1,COLORFF00FF;
 VAR36:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
 VAR37:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
 AABB:=IF(CROSS(VAR36,MA(VAR37,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;
大资金活动B选:{无未来+有未来}DRAWTEXT((CROSS(VAR36,MA(VAR37,5)) AND (VAR35 AND COUNT(VAR35,30)=1)),L*0.96,'⊙大资金活动');

623311287.jpg

623311287.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则