资金量能通达信副图指标 源码 测试图
AAA:EMA(C,5)-EMA(C,30),NODRAW;DDD:EMA(AAA,5),NODRAW;买方意向:(AAA-DDD)*2,COLORSTICK,LINETHICK3;STICKLINE(买方意向 > 0,买方意向,0,3.0,0),COLOR0000AA;STICKLINE(买方意向 > 0,买方意向,0,2.5,0),COLOR0000BB;STICKLINE(买方意向 > 0,买方意向,0,1.2,0),COLOR0000CC;STICKLINE(买方意向 > 0,买方意向,0,0.5,0),COLOR0000DD;STICKLINE(买方意向 > 0,买方意向,0,0.15,0),COLOR0000EE;STICKLINE(买方意向 > 0,买方意向,0,0.05,0),COLOR0000FF;STICKLINE(买方意向<0,0,买方意向,3,0),COLOR118811;STICKLINE(买方意向<0,0,买方意向,2.5,0),COLOR11AA11;STICKLINE(买方意向<0,0,买方意向,1.5,0),COLOR11BB11;STICKLINE(买方意向<0,0,买方意向,1.0,0),COLOR11DD11;超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;超大单:=(超B)-(超S),NODRAW;大单:=(大B)-(大S),NODRAW;中单:=(中B)-(中S),NODRAW;小单:=(小B)-(小S),NODRAW;DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;DRAWRECTREL(0,CONST(830-(ABS(超大单)*500/DAZHI)),30,935,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(35,CONST(830-(ABS(大单)*500/DAZHI)),65,935,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(70,CONST(830-(ABS(中单)*500/DAZHI)),100,935,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(105,CONST(830-(ABS(小单)*500/DAZHI)),135,935,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(140,CONST(830-(ABS(净流入)*500/DAZHI)),170,935,IF(CONST(净流入)>0,RGB(255,0,0{255,255,255}),RGB(23,125,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.25,0,'当天资金 (万元)'),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.55,0,INTPART(超大单)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.035,0.555,0,INTPART(大单)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.070,0.550,0,INTPART(中单)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.106,0.55,0,INTPART(小单)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.145,0.55,0,INTPART(净流入)),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,1,0,'超大'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.040,1,0,'大单'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.075,1,0,'中单'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.112,1,0,'小单'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,1,0,'净流'),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出AAA:C的5日指数移动平均-C的30日指数移动平均,NODRAW
输出DDD:AAA的5日指数移动平均,NODRAW
输出买方意向:(AAA-DDD)*2,COLORSTICK, 线宽为3
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向 > 0时,在买方意向和0之间画柱状线
当满足条件买方意向<0时,在0和买方意向之间画柱状线
当满足条件买方意向<0时,在0和买方意向之间画柱状线
当满足条件买方意向<0时,在0和买方意向之间画柱状线
当满足条件买方意向<0时,在0和买方意向之间画柱状线
超B赋值:L2_AMO(0,2)/10000.0
大B赋值:L2_AMO(1,2)/10000.0
中B赋值:L2_AMO(2,2)/10000.0
小B赋值:L2_AMO(3,2)/10000.0
超S赋值:L2_AMO(0,3)/10000.0
大S赋值:L2_AMO(1,3)/10000.0
中S赋值:L2_AMO(2,3)/10000.0
小S赋值:L2_AMO(3,3)/10000.0
净流入赋值:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW
超大单赋值:(超B)-(超S),NODRAW
大单赋值:(大B)-(大S),NODRAW
中单赋值:(中B)-(中S),NODRAW
小单赋值:(小B)-(小S),NODRAW
DAZHI赋值:CONST(MAX(净流入的绝对值,MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW
DRAWRECTREL(0,CONST(830-(超大单的绝对值*500/DAZHI)),30,935,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(35,CONST(830-(大单的绝对值*500/DAZHI)),65,935,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(70,CONST(830-(中单的绝对值*500/DAZHI)),100,935,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(105,CONST(830-(小单的绝对值*500/DAZHI)),135,935,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(140,CONST(830-(净流入的绝对值*500/DAZHI)),170,935,IF(CONST(净流入)>0,RGB(255,0,0{255,255,255}),RGB(23,125,255)))
DRAWTEXT_FIX( 到最后交易的周期=1,0.002,0.25,0,'当天资金 (万元)'),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.002,0.55,0,INTPART(超大单)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.035,0.555,0,INTPART(大单)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.070,0.550,0,INTPART(中单)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.106,0.55,0,INTPART(小单)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.145,0.55,0,INTPART(净流入)),画黄色
当满足条件 到最后交易的周期=1时,在横轴0.002纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.040纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.075纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.112纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.145纵轴1位置书写文字