成交量、主力大单、五日资金、十日资金(源码)
成交量:
VOL,VOLSTICK;
MA5:MA(VOL,5);
MA10:MA(VOL,10);
MA20:MA(VOL,20),LINETHICK0;
MA35:=MA(VOL,35),LINETHICK0;
AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAA*(HIGH-LOW),0-VOL/2)),LINETHICK0;
进出量:=(主买-主卖),LINETHICK0;
STICKLINE(主买>=主卖,VOL,0,7.5,0),Color0E96A9;
STICKLINE(主买>=主卖,VOL,0,7,0),Color10A7BC;
STICKLINE(主买>=主卖,VOL,0,6,0),Color11B5CC;
STICKLINE(主买>=主卖,VOL,0,5,0),Color13C6DF;
STICKLINE(主买>=主卖,VOL,0,4,0),Color1CD2EC;
STICKLINE(主买>=主卖,VOL,0,2,0),Color39D8EE;
STICKLINE(主买>=主卖,VOL,0,0.5,0),ColorFFFFFF;
STICKLINE(主买<主卖,VOL,0,7.5,0),ColorCA6500;
STICKLINE(主买<主卖,VOL,0,7,0),ColorE17100;
STICKLINE(主买<主卖,VOL,0,6,0),ColorF27900;
STICKLINE(主买<主卖,VOL,0,5,0),ColorFF850B;
STICKLINE(主买<主卖,VOL,0,4,0),ColorFF9326;
STICKLINE(主买<主卖,VOL,0,2,0),ColorFFA042;
STICKLINE(主买<主卖,VOL,0,0.5,0),colorFFFF00;
STICKLINE(1>0,0,主买,7.5,0),ColorA200A2;
STICKLINE(1>0,0,主买,7,0),ColorB700B7;
STICKLINE(1>0,0,主买,6,0),ColorCE00CE;
STICKLINE(1>0,0,主买,5,0),ColorE800E8;
STICKLINE(1>0,0,主买,4,0),ColorFF00FF;
STICKLINE(1>0,0,主买,2,0),ColorFF60FF;
STICKLINE(1>0,0,主买,0.5,0),ColorFFD2FF;
{DL:=信号过滤(成交量>=最底值(成交量,10),5) or 信号过滤(成交量>=最底值(成交量,5),5);
画柱线(DL,0,成交量,7.5,0),Color006400;
画柱线(DL,0,成交量,7,0),Color007500;
画柱线(DL,0,成交量,6,0),Color008400;
画柱线(DL,0,成交量,5,0),Color009900;
画柱线(DL,0,成交量,4,0),Color00AE00;
画柱线(DL,0,成交量,2,0),Color00BD00;
画柱线(DL,0,成交量,0.5,0),Color8EFF8E;}
主力分析源码:
引用:="资金流变.资金净流",colorwhite,LINETHICK2;
一天合计:sum(引用,1)*10000,linethick0,colorwhite,pointdot;
净额:=一天合计;
stickline(净额>0,0,净额,6,0),color0000A3,linethick2;
stickline(净额>0,0,净额,5,0),color0000B7,linethick2;
stickline(净额>0,0,净额,4,0),color0000A3,linethick2;
stickline(净额>0,0,净额,3,0),color0000CD,linethick2;
stickline(净额>0,0,净额,1,0),color0000E9,linethick2;
stickline(净额>0,0,净额,0.5,0),Color68B8FF,linethick2;
stickline(净额<=0,净额,0,6,0),Color007500,linethick2;
stickline(净额<=0,净额,0,5,0),Color008400,linethick2;
stickline(净额<=0,净额,0,4,0),Color009900,linethick2;
stickline(净额<=0,净额,0,3,0),Color00AE00,linethick2;
stickline(净额<=0,净额,0,2,0),Color00BD00,linethick2;
stickline(净额<=0,净额,0,1,0),Color8EFF8E,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,6,0),Color0E96A9,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,5,0),Color10A7BC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,4,0),Color11B5CC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,3,0),Color13C6DF,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,2,0),Color1CD2EC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,1,0),Color39D8EE,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,0.5,0),ColorFFFFFF,linethick2;
五日资金源码:
引用:="资金流变.资金净流",colorwhite,LINETHICK2;
五天合计:sum(引用,5)*10000,linethick0,colorwhite,pointdot;
净额:=五天合计;
stickline(净额>0,0,净额,6,0),color0000A3,linethick2;
stickline(净额>0,0,净额,5,0),color0000B7,linethick2;
stickline(净额>0,0,净额,4,0),color0000A3,linethick2;
stickline(净额>0,0,净额,3,0),color0000CD,linethick2;
stickline(净额>0,0,净额,1,0),color0000E9,linethick2;
stickline(净额>0,0,净额,0.5,0),Color68B8FF,linethick2;
stickline(净额<=0,净额,0,6,0),Color007500,linethick2;
stickline(净额<=0,净额,0,5,0),Color008400,linethick2;
stickline(净额<=0,净额,0,4,0),Color009900,linethick2;
stickline(净额<=0,净额,0,3,0),Color00AE00,linethick2;
stickline(净额<=0,净额,0,2,0),Color00BD00,linethick2;
stickline(净额<=0,净额,0,1,0),Color8EFF8E,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,6,0),Color0E96A9,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,5,0),Color10A7BC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,4,0),Color11B5CC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,3,0),Color13C6DF,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,2,0),Color1CD2EC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,1,0),Color39D8EE,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,0.5,0),ColorFFFFFF,linethick2;
十日资金(源码):
引用:="资金流变.资金净流",colorwhite,LINETHICK2;
十天合计:sum(引用,10)*10000,linethick0,colorwhite,pointdot;
净额:=十天合计;
stickline(净额>0,0,净额,6,0),color0000A3,linethick2;
stickline(净额>0,0,净额,5,0),color0000B7,linethick2;
stickline(净额>0,0,净额,4,0),color0000A3,linethick2;
stickline(净额>0,0,净额,3,0),color0000CD,linethick2;
stickline(净额>0,0,净额,1,0),color0000E9,linethick2;
stickline(净额>0,0,净额,0.5,0),Color68B8FF,linethick2;
stickline(净额<=0,净额,0,6,0),Color007500,linethick2;
stickline(净额<=0,净额,0,5,0),Color008400,linethick2;
stickline(净额<=0,净额,0,4,0),Color009900,linethick2;
stickline(净额<=0,净额,0,3,0),Color00AE00,linethick2;
stickline(净额<=0,净额,0,2,0),Color00BD00,linethick2;
stickline(净额<=0,净额,0,1,0),Color8EFF8E,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,6,0),Color0E96A9,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,5,0),Color10A7BC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,4,0),Color11B5CC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,3,0),Color13C6DF,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,2,0),Color1CD2EC,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,1,0),Color39D8EE,linethick2;
stickline(净额<0 and 净额>ref(净额,1),净额,0,0.5,0),ColorFFFFFF,linethick2;
本文仅提供源码
|