筹码买卖类型主图通达信公式 主图 源码 测试图
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
HAN:=DATE< 1141230;
当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);
DRAWKLINE(H,O,L,C);
九十成本集中:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
成本价:COST(九十成本集中),LINETHICK2,COLORMAGENTA;
入1:IF(成本价>REF(成本价,1),成本价,DRAWNULL),COLORRED,LINETHICK2;
出1:IF(成本价< REF(成本价,1),成本价,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(成本价>LOW AND 成本价< HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本价>LOW AND 成本价< HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本价>LOW AND 成本价< HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本价>LOW AND 成本价< HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本价>LOW AND 成本价< HIGH,成本价,MIN(MIN(OPEN,CLOSE),成本价),0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本价>MIN(C,O) AND 成本价< MAX(C,O),成本价,MIN(OPEN,CLOSE),3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本价>MIN(C,O) AND 成本价< MAX(C,O),成本价,MIN(OPEN,CLOSE),2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本价>MIN(C,O) AND 成本价< MAX(C,O),成本价,MIN(OPEN,CLOSE),1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本价>MIN(C,O) AND 成本价< MAX(C,O),成本价,MIN(OPEN,CLOSE),1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本价>MIN(C,O) AND 成本价< MAX(C,O),成本价,MIN(OPEN,CLOSE),0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本价>HIGH,CLOSE,OPEN,3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本价>HIGH,CLOSE,OPEN,2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本价>HIGH,CLOSE,OPEN,1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本价>HIGH,CLOSE,OPEN,1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本价>HIGH,CLOSE,OPEN,0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本价>HIGH,HIGH,LOW,0,0),COLORGREEN;
DF2:=(C-REF(C,1))/REF(C,1)*100>5;
DF3:=(C-O)/O*100>4;
当天涨幅:(C-O)/O*100,NODRAW;
V型反转:=L< 成本价 AND DF2;
V型反转2:=CROSS(C,成本价) AND DF2;
V型反转3:=L< 成本价 AND DF3;
DRAWTEXT(V型反转,L*0.98,'↖狙击1'),COLORCYAN;
DRAWTEXT(V型反转2,L*0.98,'↖狙击2'),COLORCYAN;
DRAWTEXT(V型反转3,L*0.98,'↖狙击3'),COLORCYAN;
STICKLINE(V型反转=1,C,O,3.2,0),COLORRED;
STICKLINE(V型反转2=1,C,O,3.2,0),COLORRED;
STICKLINE(V型反转3=1,C,O,3.2,0),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),画红色
HAN赋值:DATE< 1141230
当前获利筹码赋值:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,0)
DRAWKLINE(H,O,L,C)
九十成本集中赋值:(获利盘为95%的成本分布-COST(5))/(获利盘为95%的成本分布+COST(5))*100
输出成本价:获利盘为九十成本集中%的成本分布, 线宽为2,画洋红色
输出入1:IF(成本价>1日前的成本价,成本价,DRAWNULL),画红色, 线宽为2
输出出1:IF(成本价< 1日前的成本价,成本价,DRAWNULL),画绿色, 线宽为2
STICKLINE(成本价>最低价 AND 成本价< 最高价,成本价,开盘价和收盘价的较小值,成本价),3.2,0)*HAN,COLOR0077FF
STICKLINE(成本价>最低价 AND 成本价< 最高价,成本价,开盘价和收盘价的较小值,成本价),2.5,0)*HAN,COLOR0099FF
STICKLINE(成本价>最低价 AND 成本价< 最高价,成本价,开盘价和收盘价的较小值,成本价),1.9,0)*HAN,COLOR00BBFF
STICKLINE(成本价>最低价 AND 成本价< 最高价,成本价,开盘价和收盘价的较小值,成本价),1.2,0)*HAN,COLOR00DDFF
STICKLINE(成本价>最低价 AND 成本价< 最高价,成本价,开盘价和收盘价的较小值,成本价),0.3,0)*HAN,COLOR00FFFF
STICKLINE(成本价>C和O的较小值 AND 成本价< C和O较大值,成本价,开盘价和收盘价的较小值,3.2,0)*HAN,COLOR0077FF
STICKLINE(成本价>C和O的较小值 AND 成本价< C和O较大值,成本价,开盘价和收盘价的较小值,2.5,0)*HAN,COLOR0099FF
STICKLINE(成本价>C和O的较小值 AND 成本价< C和O较大值,成本价,开盘价和收盘价的较小值,1.9,0)*HAN,COLOR00BBFF
STICKLINE(成本价>C和O的较小值 AND 成本价< C和O较大值,成本价,开盘价和收盘价的较小值,1.2,0)*HAN,COLOR00DDFF
STICKLINE(成本价>C和O的较小值 AND 成本价< C和O较大值,成本价,开盘价和收盘价的较小值,0.3,0)*HAN,COLOR00FFFF
当满足条件成本价>最高价时,在收盘价和开盘价之间画柱状线
当满足条件成本价>最高价时,在收盘价和开盘价之间画柱状线
当满足条件成本价>最高价时,在收盘价和开盘价之间画柱状线
当满足条件成本价>最高价时,在收盘价和开盘价之间画柱状线
当满足条件成本价>最高价时,在收盘价和开盘价之间画柱状线
当满足条件成本价>最高价时,在最高价和最低价之间画柱状线
DF2赋值:(C-1日前的C)/1日前的C*100>5
DF3赋值:(C-O)/O*100>4
输出当天涨幅:(C-O)/O*100,NODRAW
V型反转赋值:L< 成本价 AND DF2
V型反转2:=C上穿成本价 AND DF2
V型反转3:=L< 成本价 AND DF3
当满足条件V型反转时,在L*0.98和'↖狙击1'位置书写文字
当满足条件V型反转2时,在L*0.98和'↖狙击2'位置书写文字
当满足条件V型反转3时,在L*0.98和'↖狙击3'位置书写文字
当满足条件V型反转=1时,在C和O之间画柱状线
当满足条件V型反转2=1时,在C和O之间画柱状线
当满足条件V型反转3=1时,在C和O之间画柱状线