通达信主力追踪参考副图指标公式

[复制链接]
查看113 | 回复0 | 2021-8-20 23:24:50 | 显示全部楼层 |阅读模式

以下是通达信主力追踪参考副图指标公式(无源码的请下载附件导入)

VAR0:=DYNAINFO(5);
 VAR1:=BARSCOUNT(HIGH);
 VAR2:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);
低位金叉跟进:=IF((VAR1 > 20),VAR2,0);
 VAR11:=IF((HIGH < VAR0),0,IF((LOW > VAR0),1,(((VAR0 - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));
 AAA:=(DMA(VAR11,(VOL /SUM(VOL,90))) * 60);
 BBB:=(DMA(VAR11,(VOL / CAPITAL)) * 60);
 VAR12:=IF(C>1000,AAA,BBB);
 VAR3:=IF((((VAR12 > 0) AND (VAR12 > REF(VAR12,1))) AND (低位金叉跟进 >= 88)),VAR2,0);
 VAR4:=((3 * SMA((((CLOSE - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1),3,1)));
 VAR5:=EMA(VAR4,8);
 VAR6:=((3 * SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1),3,1)));
 VAR7:=(EMA(VAR6,3) - 10);
 A:=1.1*C;
 B:=0.9*C;
 B1:=100*(WINNER(A)-WINNER(B));
 C1:=MA(C,13)<REF(MA(C,13),1);
 D1:=IF(C>1000,CROSS(VAR3,22),CROSS(VAR3,24));
锁定筹码:=100-B1,COLOR0084FF;
锁定区:STICKLINE(锁定筹码>70 AND C1,0,锁定筹码-65,8,0),COLOR0000FF;


主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
即将爆发线: 65,COLOR00FF00;
爆发线:80,COLORWHITE,LINETHICK1;
 DRAWTEXT(CROSS(主力资金,爆发线),主力资金,'★爆发!') ,COLORYELLOW;
爆发警戒线: 50,COLOR00FF00;
抄底线:20,COLORWHITE,LINETHICK2;
 DRAWTEXT(CROSS(主力资金,抄底线),主力资金,'★抄底') ,COLORWHITE;
 DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,'★加仓') ,COLORWHITE;
 DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,'★加仓') ,COLORWHITE;
 DRAWTEXT(CROSS(爆发线,主力资金),爆发线,'★空仓') ,COLOR00FF00;
 LC:= REF(C,1);
 F1:=ZIG(3,15);
方向:IF((F1> REF(F1,1)),5,105),COLOR00FF00,LINETHICK2;
 DRAWTEXT(CROSS(抄底线,方向),抄底线,'★逢低进场!') ,COLORFFFF00;
 DRAWTEXT(CROSS(方向,抄底线),方向+20,'★逢高出场!') ,COLORRED;

658388019.jpg

658388019.jpg

回复

使用道具 举报

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

本版积分规则