【通达信指标源码免费送】交易日成交量相对应均量最高处画矩形

交易日成交量相对应均量最高处画矩形

黄色框表示5个交易日最高5日均量处画线
紫色框表示8个交易日最高8日均量处画线
绿色框表示13个交易日最高13日均量处画线

任何一个庄家启动总会在成交量上留下蜘丝马迹。公式将五个交易日  八个交易日  十三个交易日用矩形框起来,最高点是对应的5日均量  八日均量   十三日均量高点,为什么用5   8  13  因为根据斐波那契数列,慢慢仔细看看  你除了会发现堆量出现后的启动 还会发现三根水平线位置变化将影响股价  一切自己看吧  指标不是万能的

公式源码:

VM:=20;N:=20;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
V5:=MA(V,5);
V8:=MA(V,8);
V13:=MA(V,13);
T5:=ALIGNRIGHT(MOD(CURRBARSCOUNT,5));
T8:=ALIGNRIGHT(MOD(CURRBARSCOUNT,8));
T13:=ALIGNRIGHT(MOD(CURRBARSCOUNT,13));
TA5:=BARSLAST(CROSS(T5=0,0.5));
TA8:=BARSLAST(CROSS(T8=0,0.5));
TA13:=BARSLAST(CROSS(T13=0,0.5));
VH5:=REFX(HHV(V5,TA5+1),BARSNEXT(T5=1));
VH8:=REFX(HHV(V8,TA8+1),BARSNEXT(T8=1));
VH13:=REFX(HHV(V13,TA13+1),BARSNEXT(T13=1));
STICKLINE(T5=1,0,VH5,0,0),COLORYELLOW;
STICKLINE(T5=0,0,VH5,0,0),COLORYELLOW;
STICKLINE(TA5>0 AND TA5<4,VH5,VH5,8,0),COLORYELLOW;
STICKLINE(T8=1,0,VH8,0,0),COLORLIMAGENTA;
STICKLINE(T8=0,0,VH8,0,0),COLORLIMAGENTA;
STICKLINE(TA8>0 AND TA8<7,VH8,VH8,8,0),COLORLIMAGENTA;
STICKLINE(T13=1,0,VH13,0,0),COLORGREEN;
STICKLINE(T13=0,0,VH13,0,0),COLORGREEN;
STICKLINE(TA13>0 AND TA13<12,VH13,VH13,8,0),COLORGREEN;

(0)

相关推荐