通达信攻击筹码斜率副图 锁定筹码 浮动筹码 筹码交换 源码附图
VAR0:=EMA(V/CAPITAL,3);
VARZ:=HHV(VAR0,240);
VARK:=LLV(VAR0,240);
VARKZ:=MA(C,33);
VAR11:=WINNER(C/1.1)*100,STICK,COLORRED;
STICKLINE(((C/1.1)*100),VAR11,0,2.7,0),COLOR000055;
STICKLINE(((C/1.1)*100),VAR11,0,1.7,0),COLOR000077;
STICKLINE(((C/1.1)*100),VAR11,0,0.7,0),COLOR0000BB;
STICKLINE(((C/1.1)*100),VAR11,0,0.2,0),COLOR0000FF;
VAR12:=WINNER(C/1.2)*100,STICK,COLORYELLOW;
STICKLINE(((C/1.2)*100),VAR12,0,2.7,0)COLOR009999;
STICKLINE(((C/1.2)*100),VAR12,0,1.7,0)COLOR00BBBB;
STICKLINE(((C/1.2)*100),VAR12,0,0.7,0)COLOR00DDDD;
STICKLINE(((C/1.2)*100),VAR12,0,0.2,0)COLOR00FFFF;
VAR13:=WINNER(C/1.3)*100,STICK,COLORFF00FF;
STICKLINE(((C/1.3)*100),VAR13,0,2.7,0),COLORFF1100;
STICKLINE(((C/1.3)*100),VAR13,0,1.7,0),COLORFF5500;
STICKLINE(((C/1.3)*100),VAR13,0,0.7,0),COLORFF9900;
STICKLINE(((C/1.3)*100),VAR13,0,0.2,0),COLORFFDD00;
VAR16:=100,POINTDOT,LINETHICK2,COLORRED;
VAR17:=15,COLORYELLOW;
VAR18:=70,COLORYELLOW;
VAR19:=300,POINTDOT,LINETHICK2,COLORGREEN;
VAR15:=EMA(C,20);
二十日斜率:(VAR15-REF(VAR15,1))/REF(VAR15,1)*100,LINETHICK0;
十日换手率:SUM(VOL,10)/CAPITAL*100,LINETHICK1;
锁定筹码:EMA((VAR0-VARK)/VARK*VARKZ,13),LINETHICK2;
浮动筹码:EMA((VARZ-VAR0)/VAR0*VARKZ,13),LINETHICK2;
力量对比:锁定筹码-浮动筹码,COLORSTICK;
筹码交换:CROSS(锁定筹码,浮动筹码);
DRAWICON(筹码交换,L,9);
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR0赋值:V/当前流通股本的3日指数移动平均
VARZ赋值:240日内VAR0最高值
VARK赋值:240日内VAR0最低值
VARKZ:=C的33日简单移动平均
VAR11赋值:C/1.1计算的获利盘比例*100,STICK,画红色
STICKLINE(((C/1.1)*100),VAR11,0,2.7,0),COLOR000055
STICKLINE(((C/1.1)*100),VAR11,0,1.7,0),COLOR000077
STICKLINE(((C/1.1)*100),VAR11,0,0.7,0),COLOR0000BB
STICKLINE(((C/1.1)*100),VAR11,0,0.2,0),COLOR0000FF
VAR12赋值:C/1.2计算的获利盘比例*100,STICK,画黄色
STICKLINE(((C/1.2)*100),VAR12,0,2.7,0)COLOR009999
STICKLINE(((C/1.2)*100),VAR12,0,1.7,0)COLOR00BBBB
STICKLINE(((C/1.2)*100),VAR12,0,0.7,0)COLOR00DDDD
STICKLINE(((C/1.2)*100),VAR12,0,0.2,0)COLOR00FFFF
VAR13赋值:C/1.3计算的获利盘比例*100,STICK,COLORFF00FF
STICKLINE(((C/1.3)*100),VAR13,0,2.7,0),COLORFF1100
STICKLINE(((C/1.3)*100),VAR13,0,1.7,0),COLORFF5500
STICKLINE(((C/1.3)*100),VAR13,0,0.7,0),COLORFF9900
STICKLINE(((C/1.3)*100),VAR13,0,0.2,0),COLORFFDD00
VAR16赋值:100,POINTDOT, 线宽为2,画红色
VAR17赋值:15,画黄色
VAR18赋值:70,画黄色
VAR19赋值:300,POINTDOT, 线宽为2,画绿色
VAR15赋值:C的20日指数移动平均
输出二十日斜率:(VAR15-1日前的VAR15)/1日前的VAR15*100,LINETHICK0
输出十日换手率:10的成交量日累和/当前流通股本*100,LINETHICK1
输出锁定筹码:EMA((VAR0-VARK)/VARK*VARKZ,13), 线宽为2
输出浮动筹码:EMA((VARZ-VAR0)/VAR0*VARKZ,13), 线宽为2
输出力量对比:锁定筹码-浮动筹码,COLORSTICK
输出筹码交换:锁定筹码上穿浮动筹码
当满足条件筹码交换时,在L和9之间画图标