通达信公式新极品量
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLOR00C0C0;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;
主卖:IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL /2)),COLORCYAN,POINTDOT;
{股票指标网}
STICKLINE(C>=REF(C,1) ,0,VOL,2.2,1),COLORRED;
STICKLINE(C<REF(C,1),0,VOL,2.2,1),COLORCYAN;
STICKLINE(主买>0,0,主买,2.2,0),COLORRED;
资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(主卖>0,0,主卖,0.8,0),COLORCYAN;
STICKLINE(资金异动>100 ,0,VOL,0.1,0),COLORYELLOW;
成交量比%:主买/VOL*100,COLORWHITE,NODRAW;
换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;
总手:VOL,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'说明: 红色柱为吸货量,绿色为出货量,蓝色为地量'),COLORGRAY;
ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);
V5:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
STICKLINE(CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,1,0),COLORRED;
STICKLINE(CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,0,VOL,1,0),COLORGREEN;
STICKLINE(VOL<MA(VOL,13)/2 AND V<V12/2,0,VOL,1,0),COLORBLUE;
STICKLINE(VOL>MA(VOL,13)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,1,0),COLORRED;
STICKLINE(VOL>MA(VOL,13)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,1,0),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TOTAL赋值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))))
MTIME赋值:MOD(FROM开盘价,TOTAL)
如果MTIME<0.5返回TOTAL否则返回MTIME
如果 到最后交易的周期=1返回成交量*TOTAL/CTIME否则返回DRAWNULL
当满足条件 到最后交易的周期=1时,在V成交量和0之间画柱状线
AA赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出
主买:IF(收盘价>开盘价,AA*(最高价-最低价),IF(收盘价<开盘价,AA*((最高价-开盘价)+(收盘价-最低价)),成交量 /2)),POINTDOT,画红色
输出
主卖:IF(收盘价>开盘价,AA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,AA*(最高价-最低价),成交量 /2)),画青色,POINTDOT
{股票指标网}
STICKLINE(C>=1日前的C ,0,成交量,2.2,1),画红色
STICKLINE(C<1日前的C,0,成交量,2.2,1),画青色
当满足条件主买>0时,在0和主买之间画柱状线
输出
资金异动:成交量/成交量的55日简单移动平均*100,画黄色
当满足条件主卖>0时,在0和主卖之间画柱状线
当满足条件资金异动>100 时,在0和成交量之间画柱状线
输出
成交量比%:主买/成交量*100,画白色,NODRAW
输出
换手率%:成交量/当前流通股本*100,POINTDOT,画白色
输出
总手:成交量,NODRAW
当满足条件ISLASTBAR时,在横轴0纵轴0位置书写文字
ZZ赋值:IF(1日前的C>1日前的O AND O>1日前的C*1.014 AND C
V5赋值:V的5日简单移动平均
V12赋值:V的12日简单移动平均
V34赋值:V的34日简单移动平均
C6赋值:C的6日简单移动平均
STICKLINE(C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,成交量,1,0),画红色
STICKLINE(C6上穿C AND V>V5*1.2 AND V>V12*1.2,0,成交量,1,0),画绿色
STICKLINE(成交量<成交量的13日简单移动平均/2 AND V
STICKLINE(成交量>成交量的13日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05 AND C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,成交量*0.5,0,1,0),画红色
STICKLINE(成交量>成交量的13日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05 AND C6上穿C AND V>V5*1.2 AND V>V12*1.2,成交量*0.5,0,1,0),画红色