通达信金牛精确抄底公式
VAR1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=IF(CLOSE>LLV(CLOSE,VAR2),1,0-1)*IF(VAR2,1,0-1);
VAR4:=IF(VAR3=0-1,1,0);
VAR5:=COUNT(VAR4=1,8)>3;
VAR6:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
VAR7:=DMA((OPEN+HIGH+LOW+CLOSE)/4,VOL/VAR6);
VAR8:=(CLOSE-VAR7)/VAR7*100<0-17;
{股票指标网}
VAR9:=(CLOSE-MIN(REF(CLOSE,5)*0.83,REF(CLOSE,21)*0.72))/CLOSE<0.05;
金牛:=VAR8 AND VAR9 AND VAR5;
金牛精确:=金牛>0 AND REF(金牛,1)=0;
金牛抄底:=COUNT(金牛精确,5) AND CLOSE>OPEN;
精确抄底:COUNT(金牛抄底,5)=1 AND 金牛抄底;
TDXSTEP304:STICKLINE(IF(精确抄底,(-120),0),12,0,4,0),COLOR000088;
TDXSTEP305:STICKLINE(IF(精确抄底,(-120),0),12,0,3,0),COLOR0000AA;
TDXSTEP306:STICKLINE(IF(精确抄底,(-120),0),12,0,2,0),COLOR0000CC;
TDXSTEP307:STICKLINE(IF(精确抄底,(-120),0),12,0,1.4,0),COLOR0000EE;
TDXSTEP308:STICKLINE(IF(精确抄底,(-120),0),12,0,0.9,0),COLOR0000EE;
TDXSTEP309:STICKLINE(IF(精确抄底,(-120),0),12,0,0.3,0),COLORLIMAGENTA;
TDXSTEP310:STICKLINE(IF(精确抄底,(-120),0),9,0,7,0),COLOR770077;
TDXSTEP311:STICKLINE(IF(精确抄底,(-120),0),9,0,6,0),COLOR990099;
TDXSTEP312:STICKLINE(IF(精确抄底,(-120),0),9,0,5,0),COLORBB00BB;
TDXSTEP313:STICKLINE(IF(精确抄底,(-120),0),9,0,4,0),COLORDD00DD;
TDXSTEP314:STICKLINE(IF(精确抄底,(-120),0),9,0,3,0),COLORMAGENTA;
TDXSTEP315:STICKLINE(IF(精确抄底,(-120),0),9,0,2,0),COLORDD00DD;
TDXSTEP316:STICKLINE(IF(精确抄底,(-120),0),6,0,7,0),COLOR003300;
TDXSTEP317:STICKLINE(IF(精确抄底,(-120),0),6,0,6,0),COLOR005500;
TDXSTEP318:STICKLINE(IF(精确抄底,(-120),0),6,0,5,0),COLOR007700;
TDXSTEP319:STICKLINE(IF(精确抄底,(-120),0),6,0,3.5,0),COLOR009900;
TDXSTEP320:STICKLINE(IF(精确抄底,(-120),0),6,0,2,0),COLOR00CC00;
TDXSTEP321:STICKLINE(IF(精确抄底,(-120),0),3,0,7,0),COLOR666666;
TDXSTEP322:STICKLINE(IF(精确抄底,(-120),0),3,0,6,0),COLOR777777;
TDXSTEP323:STICKLINE(IF(精确抄底,(-120),0),3,0,5,0),COLOR888888;
TDXSTEP324:STICKLINE(IF(精确抄底,(-120),0),3,0,4,0),COLOR999999;
TDXSTEP325:STICKLINE(IF(精确抄底,(-120),0),3,0,3,0),COLORDDDDDD;
TDXSTEP326:STICKLINE(IF(精确抄底,(-120),0),3,0,2,0),COLORWHITE;
TDXSTEP327:STICKLINE(IF(精确抄底,(-120),0),(-3),0,7,0),COLOR000044;
TDXSTEP328:STICKLINE(IF(精确抄底,(-120),0),(-3),0,6,0),COLOR000033;
TDXSTEP329:STICKLINE(IF(精确抄底,(-120),0),(-3),0,5,0),COLOR000055;
TDXSTEP330:STICKLINE(IF(精确抄底,(-120),0),(-3),0,4,0),COLOR000077;
TDXSTEP331:STICKLINE(IF(精确抄底,(-120),0),(-3),0,3,0),COLOR000099;
TDXSTEP332:STICKLINE(IF(精确抄底,(-120),0),(-3),0,2,0),COLORLIMAGENTA;
TDXSTEP333:DRAWTEXT(精确抄底,10.5,76),COLORYELLOW;
TDXSTEP334:DRAWTEXT(精确抄底,7.5,77),COLORYELLOW;
TDXSTEP335:DRAWTEXT(精确抄底,4.5,78),COLORRED;
TDXSTEP336:DRAWTEXT(精确抄底,1.5,79),COLORRED;
TDXSTEP337:DRAWTEXT(精确抄底,(-1.5),80),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:SUM(IF(收盘价>1日前的收盘价,成交量,IF(收盘价<1日前的收盘价,0-成交量,0)),0)
VAR2赋值:成交量累加至当前流通股本的天数
VAR3赋值:IF(收盘价>VAR2日内收盘价最低值,1,0-1)*IF(VAR2,1,0-1)
如果VAR3=0-1返回1否则返回0
VAR5赋值:统计8日满足VAR4=1的天数>3
VAR6赋值:13的成交额日累和/(成交额/成交量/100)/100
VAR7赋值:DMA((开盘价+最高价+最低价+收盘价)/4,成交量/VAR6)
VAR8赋值:(收盘价-VAR7)/VAR7*100<0-17
{股票指标网}
VAR9赋值:(收盘价-5日前的收盘价*0.83和21日前的收盘价*0.72的较小值)/收盘价<0.05
金牛赋值:VAR8 AND VAR9 AND VAR5
金牛精确:=金牛>0 AND 1日前的金牛=0
金牛抄底:=统计5日满足金牛精确的天数 AND 收盘价>开盘价
输出
精确抄底:统计5日满足金牛抄底的天数=1 AND 金牛抄底
输出
TDXSTEP304:STICKLINE(IF(精确抄底,(-120),0),12,0,4,0),COLOR000088
输出
TDXSTEP305:STICKLINE(IF(精确抄底,(-120),0),12,0,3,0),COLOR0000AA
输出
TDXSTEP306:STICKLINE(IF(精确抄底,(-120),0),12,0,2,0),COLOR0000CC
输出
TDXSTEP307:STICKLINE(IF(精确抄底,(-120),0),12,0,1.4,0),COLOR0000EE
输出
TDXSTEP308:STICKLINE(IF(精确抄底,(-120),0),12,0,0.9,0),COLOR0000EE
输出
TDXSTEP309:STICKLINE(IF(精确抄底,(-120),0),12,0,0.3,0),COLORLIMAGENTA
输出
TDXSTEP310:STICKLINE(IF(精确抄底,(-120),0),9,0,7,0),COLOR770077
输出
TDXSTEP311:STICKLINE(IF(精确抄底,(-120),0),9,0,6,0),COLOR990099
输出
TDXSTEP312:STICKLINE(IF(精确抄底,(-120),0),9,0,5,0),COLORBB00BB
输出
TDXSTEP313:STICKLINE(IF(精确抄底,(-120),0),9,0,4,0),COLORDD00DD
输出
TDXSTEP314:STICKLINE(IF(精确抄底,(-120),0),9,0,3,0),画洋红色
输出
TDXSTEP315:STICKLINE(IF(精确抄底,(-120),0),9,0,2,0),COLORDD00DD
输出
TDXSTEP316:STICKLINE(IF(精确抄底,(-120),0),6,0,7,0),COLOR003300
输出
TDXSTEP317:STICKLINE(IF(精确抄底,(-120),0),6,0,6,0),COLOR005500
输出
TDXSTEP318:STICKLINE(IF(精确抄底,(-120),0),6,0,5,0),COLOR007700
输出
TDXSTEP319:STICKLINE(IF(精确抄底,(-120),0),6,0,3.5,0),COLOR009900
输出
TDXSTEP320:STICKLINE(IF(精确抄底,(-120),0),6,0,2,0),COLOR00CC00
输出
TDXSTEP321:STICKLINE(IF(精确抄底,(-120),0),3,0,7,0),COLOR666666
输出
TDXSTEP322:STICKLINE(IF(精确抄底,(-120),0),3,0,6,0),COLOR777777
输出
TDXSTEP323:STICKLINE(IF(精确抄底,(-120),0),3,0,5,0),COLOR888888
输出
TDXSTEP324:STICKLINE(IF(精确抄底,(-120),0),3,0,4,0),COLOR999999
输出
TDXSTEP325:STICKLINE(IF(精确抄底,(-120),0),3,0,3,0),COLORDDDDDD
输出
TDXSTEP326:STICKLINE(IF(精确抄底,(-120),0),3,0,2,0),画白色
输出
TDXSTEP327:STICKLINE(IF(精确抄底,(-120),0),(-3),0,7,0),COLOR000044
输出
TDXSTEP328:STICKLINE(IF(精确抄底,(-120),0),(-3),0,6,0),COLOR000033
输出
TDXSTEP329:STICKLINE(IF(精确抄底,(-120),0),(-3),0,5,0),COLOR000055
输出
TDXSTEP330:STICKLINE(IF(精确抄底,(-120),0),(-3),0,4,0),COLOR000077
输出
TDXSTEP331:STICKLINE(IF(精确抄底,(-120),0),(-3),0,3,0),COLOR000099
输出
TDXSTEP332:STICKLINE(IF(精确抄底,(-120),0),(-3),0,2,0),COLORLIMAGENTA
当满足条件精确抄底时,在10.5和76位置书写文字
当满足条件精确抄底时,在7.5和77位置书写文字
当满足条件精确抄底时,在4.5和78位置书写文字
当满足条件精确抄底时,在1.5和79位置书写文字
输出
TDXSTEP337:DRAWTEXT(精确抄底,(-1.5),80),画黄色