博弈量能副图通达信公式 副图 源码附图
MA18:=EMA(CLOSE,18);
加码价:=((C-REF(MA18,1))/18+MA18)*1;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(VOL>0 AND 加码条件,VOL,0,2.9,0),COLORYELLOW;
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
S1:=今小昨;
今小前:IF(C<REF(O,2) AND F<0,1,0),LINETHICK0;
S2:=今小前;
今量:VOL/10000,LINETHICK0;
STICKLINE(VOL>0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),VOL,0,2.9,1),COLORMAGENTA;
STICKLINE(VOL>0 AND TROUGHBARS(3,3,1)=0 AND HIGH>LOW+0.01,VOL,0,2.9,1),COLORBLUE;
{通达信公式大全 股票指标网}
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
YE6:=SUM((YE1*YE5),1);{散户卖出}
YE7:=SUM((YE2*YE5),1);{主力卖出}
YE8:=SUM((YE3*YE5),1);{散户买入}
YE9:=SUM((YE4*YE5),1);{主力买入}
买:(YE9+YE8)/10000,LINETHICK0,COLORWHITE;
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,2.9,0),COLOR0000AA;
STICKLINE((YE6+YE7)>0,(YE6+YE7),0,0.2,0),COLORCYAN;
STICKLINE((YE6+YE7)>0 AND TROUGHBARS(3,3,1)=0 AND HIGH>LOW+0.01,(YE6+YE7),0,0.2,0),COLORBLUE;
STICKLINE((YE6+YE7)>0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.2,0),COLORMAGENTA;
卖:(YE6+YE7)/10000,LINETHICK0,COLORGREEN;
STICKLINE((YE6+YE7)>0 AND TROUGHBARS(3,3,1)=0 AND HIGH>LOW+0.01,(YE6+YE7),0,0.1,0),COLORBLUE;
STICKLINE((YE6+YE7)>0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.1,0),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
MA18赋值:收盘价的18日指数移动平均
加码价赋值:((C-1日前的MA18)/18+MA18)*1
加码条件赋值:C上穿加码价 AND 加码价>1日前的加码价
当满足条件成交量>0 AND 加码条件时,在成交量和0之间画柱状线
F赋值:100*(C-1日前的C)/1日前的C
今小昨赋值:IF(C<1日前的O AND F<0,1,0)
S1赋值:今小昨
输出今小前:IF(C<2日前的O AND F<0,1,0),LINETHICK0
S2赋值:今小前
输出今量:成交量/10000,LINETHICK0
STICKLINE(成交量>0 AND S1=0 AND 1日前的S1=1 AND S2=0 AND 1日前的S2=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),成交量,0,2.9,1),画洋红色
STICKLINE(成交量>0 AND TROUGHBARS(3,3,1)=0 AND 最高价>最低价+0.01,成交量,0,2.9,1), 画蓝色
{通达信公式大全 股票指标网}
YE赋值:(最高价+最低价+收盘价)/3
YE1赋值:IF(最高价=最低价,1,最高价-开盘价和收盘价较大值)
YE2赋值:IF(最高价=最低价,1,收盘价和开盘价较大值-YE)
YE3赋值:IF(最高价=最低价,1,开盘价和收盘价的较小值-最低价)
YE4赋值:IF(最高价=最低价,1,YE-收盘价和开盘价的较小值)
如果最高价=最低价返回4否则返回最高价-最低价
YE6赋值:SUM((YE1*YE5),1)
{散户卖出}
YE7赋值:SUM((YE2*YE5),1)
{主力卖出}
YE8赋值:SUM((YE3*YE5),1)
{散户买入}
YE9赋值:SUM((YE4*YE5),1)
输出{主力买入}
买:(YE9+YE8)/10000,LINETHICK0,画白色
STICKLINE((YE9+YE8)>0,(YE9+YE8),0,2.9,0),COLOR0000AA
STICKLINE((YE6+YE7)>0,(YE6+YE7),0,0.2,0),画青色
STICKLINE((YE6+YE7)>0 AND TROUGHBARS(3,3,1)=0 AND 最高价>最低价+0.01,(YE6+YE7),0,0.2,0), 画蓝色
STICKLINE((YE6+YE7)>0 AND S1=0 AND 1日前的S1=1 AND S2=0 AND 1日前的S2=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.2,0),画洋红色
输出卖:(YE6+YE7)/10000,LINETHICK0,画绿色
STICKLINE((YE6+YE7)>0 AND TROUGHBARS(3,3,1)=0 AND 最高价>最低价+0.01,(YE6+YE7),0,0.1,0), 画蓝色
STICKLINE((YE6+YE7)>0 AND S1=0 AND 1日前的S1=1 AND S2=0 AND 1日前的S2=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.1,0),画绿色