动态筹码通达信公式 和谐源码分享 K线图
VAR1:=COST(0.1);
VAR2:=COST(99.900002);
VAR3:=(VAR2-VAR1)/10;
STICKLINE((WINNER(VAR1+VAR3)-WINNER(VAR1))*100>1,VAR1,VAR1+VAR3,3,0),COLOR000066;
STICKLINE((WINNER(VAR1+VAR3*2)-WINNER(VAR1+VAR3))*100>1,VAR1+VAR3,VAR1+VAR3*2,3,0),COLOR5533FF;
STICKLINE((WINNER(VAR1+VAR3*3)-WINNER(VAR1+VAR3*2))*100>1,VAR1+VAR3*2,VAR1+VAR3*3,3,0),COLOR7777FF;
STICKLINE((WINNER(VAR1+VAR3*4)-WINNER(VAR1+VAR3*3))*100>1,VAR1+VAR3*3,VAR1+VAR3*4,3,0),COLORWHITE;
STICKLINE((WINNER(VAR1+VAR3*5)-WINNER(VAR1+VAR3*4))*100>1,VAR1+VAR3*4,VAR1+VAR3*5,3,0),COLORFFCC00;
STICKLINE((WINNER(VAR1+VAR3*6)-WINNER(VAR1+VAR3*5))*100>1,VAR1+VAR3*5,VAR1+VAR3*6,3,0),COLORCC6600;
STICKLINE((WINNER(VAR1+VAR3*7)-WINNER(VAR1+VAR3*6))*100>1,VAR1+VAR3*6,VAR1+VAR3*7,3,0),COLOR663300;
STICKLINE((WINNER(VAR1+VAR3*8)-WINNER(VAR1+VAR3*7))*100>1,VAR1+VAR3*7,VAR1+VAR3*8,3,0),COLOR006633;
STICKLINE((WINNER(VAR1+VAR3*9)-WINNER(VAR1+VAR3*8))*100>1,VAR1+VAR3*8,VAR1+VAR3*9,3,0),COLOR009933;
STICKLINE((WINNER(VAR2)-WINNER(VAR1+VAR3*9))*100>1,VAR1+VAR3*9,VAR2,3,0),COLOR00DD33;
筹一:(WINNER(VAR1+VAR3)-WINNER(VAR1))*100,NODRAW;
筹二:(WINNER(VAR1+VAR3*2)-WINNER(VAR1+VAR3))*100,NODRAW;
筹三:(WINNER(VAR1+VAR3*3)-WINNER(VAR1+VAR3*2))*100,NODRAW;
筹四:(WINNER(VAR1+VAR3*4)-WINNER(VAR1+VAR3*3))*100,NODRAW;
筹五:(WINNER(VAR1+VAR3*5)-WINNER(VAR1+VAR3*4))*100,NODRAW;
筹六:(WINNER(VAR1+VAR3*6)-WINNER(VAR1+VAR3*5))*100,NODRAW;
筹七:(WINNER(VAR1+VAR3*7)-WINNER(VAR1+VAR3*6))*100,NODRAW;
筹八:(WINNER(VAR1+VAR3*8)-WINNER(VAR1+VAR3*7))*100,NODRAW;
筹九:(WINNER(VAR1+VAR3*9)-WINNER(VAR1+VAR3*8))*100,NODRAW;
筹十:(WINNER(VAR2)-WINNER(VAR1+VAR3*9))*100,NODRAW;
DRAWNUMBER(筹一>1,VAR1+VAR3,INTPART(筹一)),COLOR7777FF;
DRAWNUMBER(筹二>1,VAR1+VAR3*2,INTPART(筹二)),COLOR7777FF;
DRAWNUMBER(筹三>1,VAR1+VAR3*3,INTPART(筹三)),COLORWHITE;
DRAWNUMBER(筹四>1,VAR1+VAR3*4,INTPART(筹四)),COLOR7777FF;
DRAWNUMBER(筹五>1,VAR1+VAR3*5,INTPART(筹五)),COLORWHITE;
DRAWNUMBER(筹六>1,VAR1+VAR3*6,INTPART(筹六)),COLORFFCC00;
DRAWNUMBER(筹七>1,VAR1+VAR3*7,INTPART(筹七)),COLORFFCC00;
DRAWNUMBER(筹八>1,VAR1+VAR3*8,INTPART(筹八)),COLOR00DD33;
DRAWNUMBER(筹九>1,VAR1+VAR3*9,INTPART(筹九)),COLOR00DD33;
DRAWNUMBER(筹十>1,VAR2,INTPART(筹十)),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
现价:CLOSE,COLOR99FFFF,LINETHICK4;
浮筹:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH,0))*100,NODRAW,COLOR99FFFF,LINETHICK3;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:获利盘为0.1%的成本分布
VAR2赋值:获利盘为99.900002%的成本分布
VAR3赋值:(VAR2-VAR1)/10
STICKLINE((VAR1+VAR3计算的获利盘比例-WINNER(VAR1))*100>1,VAR1,VAR1+VAR3,3,0),COLOR000066
STICKLINE((VAR1+VAR3*2计算的获利盘比例-WINNER(VAR1+VAR3))*100>1,VAR1+VAR3,VAR1+VAR3*2,3,0),COLOR5533FF
STICKLINE((VAR1+VAR3*3计算的获利盘比例-WINNER(VAR1+VAR3*2))*100>1,VAR1+VAR3*2,VAR1+VAR3*3,3,0),COLOR7777FF
STICKLINE((VAR1+VAR3*4计算的获利盘比例-WINNER(VAR1+VAR3*3))*100>1,VAR1+VAR3*3,VAR1+VAR3*4,3,0),画白色
STICKLINE((VAR1+VAR3*5计算的获利盘比例-WINNER(VAR1+VAR3*4))*100>1,VAR1+VAR3*4,VAR1+VAR3*5,3,0),COLORFFCC00
STICKLINE((VAR1+VAR3*6计算的获利盘比例-WINNER(VAR1+VAR3*5))*100>1,VAR1+VAR3*5,VAR1+VAR3*6,3,0),COLORCC6600
STICKLINE((VAR1+VAR3*7计算的获利盘比例-WINNER(VAR1+VAR3*6))*100>1,VAR1+VAR3*6,VAR1+VAR3*7,3,0),COLOR663300
STICKLINE((VAR1+VAR3*8计算的获利盘比例-WINNER(VAR1+VAR3*7))*100>1,VAR1+VAR3*7,VAR1+VAR3*8,3,0),COLOR006633
STICKLINE((VAR1+VAR3*9计算的获利盘比例-WINNER(VAR1+VAR3*8))*100>1,VAR1+VAR3*8,VAR1+VAR3*9,3,0),COLOR009933
STICKLINE((VAR2计算的获利盘比例-WINNER(VAR1+VAR3*9))*100>1,VAR1+VAR3*9,VAR2,3,0),COLOR00DD33
输出筹一:(VAR1+VAR3计算的获利盘比例-WINNER(VAR1))*100,NODRAW
输出筹二:(VAR1+VAR3*2计算的获利盘比例-WINNER(VAR1+VAR3))*100,NODRAW
输出筹三:(VAR1+VAR3*3计算的获利盘比例-WINNER(VAR1+VAR3*2))*100,NODRAW
输出筹四:(VAR1+VAR3*4计算的获利盘比例-WINNER(VAR1+VAR3*3))*100,NODRAW
输出筹五:(VAR1+VAR3*5计算的获利盘比例-WINNER(VAR1+VAR3*4))*100,NODRAW
输出筹六:(VAR1+VAR3*6计算的获利盘比例-WINNER(VAR1+VAR3*5))*100,NODRAW
输出筹七:(VAR1+VAR3*7计算的获利盘比例-WINNER(VAR1+VAR3*6))*100,NODRAW
输出筹八:(VAR1+VAR3*8计算的获利盘比例-WINNER(VAR1+VAR3*7))*100,NODRAW
输出筹九:(VAR1+VAR3*9计算的获利盘比例-WINNER(VAR1+VAR3*8))*100,NODRAW
输出筹十:(VAR2计算的获利盘比例-WINNER(VAR1+VAR3*9))*100,NODRAW
DRAWNUMBER(筹一>1,VAR1+VAR3,INTPART(筹一)),COLOR7777FF
DRAWNUMBER(筹二>1,VAR1+VAR3*2,INTPART(筹二)),COLOR7777FF
DRAWNUMBER(筹三>1,VAR1+VAR3*3,INTPART(筹三)),画白色
DRAWNUMBER(筹四>1,VAR1+VAR3*4,INTPART(筹四)),COLOR7777FF
DRAWNUMBER(筹五>1,VAR1+VAR3*5,INTPART(筹五)),画白色
DRAWNUMBER(筹六>1,VAR1+VAR3*6,INTPART(筹六)),COLORFFCC00
DRAWNUMBER(筹七>1,VAR1+VAR3*7,INTPART(筹七)),COLORFFCC00
DRAWNUMBER(筹八>1,VAR1+VAR3*8,INTPART(筹八)),COLOR00DD33
DRAWNUMBER(筹九>1,VAR1+VAR3*9,INTPART(筹九)),COLOR00DD33
DRAWNUMBER(筹十>1,VAR2,INTPART(筹十)),画白色
DRAWKLINE(最高价,开盘价,最低价,收盘价)
输出现价:收盘价,COLOR99FFFF,LINETHICK4
输出浮筹:(收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))/WINNER(0日内最高价最高值)*100,NODRAW,COLOR99FFFF, 线宽为3