精品【眉州资金量升K】成交量组合最终旗舰版 一直自用 整合很多指标为一体
{DRAWTEXT_FIX(1,0.45,0.10,0,'★【操作解盘注意】:巨量有绿色下部(负交易量)时,说明主力出逃 ★'),COLORYELLOW;
DRAWTEXT_FIX(1,0.45,0.80,0,'★ 粉色烛,红芯长,庄家高抛低吸操作 ★'),COLORFF00FF;
DRAWTEXT_FIX(1,0.45,0.90,0,'★ 白色烛,红芯长,庄家洗盘找底振荡,伺机建仓 ★'),COLORLIGRAY;
DRAWTEXT_FIX(1,0.65,0.80,0,'★ 巨量绿,蓝烛长,趋势破,急离场;等跌,莫手痒 ★'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.65,0.90,0,'★ 蓝色烛,红芯短,巨量绿尾长,庄家拉高退场,趁机减仓 ★'),COLORLIBLUE;}
Q1:=V/((H-L)*2-ABS((C-O)));
万手:VOL/10000,NODRAW;
买盘:=IF(C>O,Q1*(H-L),IF(C<O,Q1*((H-O)+(C-L)),V/2)),COLORRED,NODRAW;
主买量:买盘/10000,COLORRED,NODRAW;
卖盘:=IF(C>O,(0-Q1*((H-C)+(O-L))),IF(C<O,0-Q1*(H-L),0-V/2)),COLORGREEN,NODRAW;
主卖量:卖盘/10000,COLORLIBLUE,NODRAW;
主买净量:主买量+主卖量,COLORMAGENTA,NODRAW;
主买比:主买量/(主买量-主卖量)*100,COLORYELLOW,NODRAW;
主动量比:(主买量-主卖量)/万手*100,COLORLIBLUE,NODRAW;
净买量比:主买净量/万手*100,COLORLIBLUE,NODRAW;
净买量:=ACTINVOL-ACTOUTVOL;
主动卖盘:=IF(C>O,Q1*((H-C)+(O-L)),IF(C<O,Q1*(H-L),V/2)),NODRAW;
买卖差:=买盘+卖盘;
买卖比:买盘/主动卖盘,NODRAW;
量比1:=V/MA(V,5);
Q10:=买盘;
Q20:=卖盘;
JX1:=BARSSINCE(买盘);
JY1:=IF(121>JX1 AND JX1>0,JX1,120);
JY2:=IF(4>JX1 AND JX1>0,JX1,3);
Q30:=MA(V,JY2);
动神:=买盘;
鬼力:=Q20;
神比:=动神/Q30;
鬼比:=鬼力/Q30;
Q2:=H-L;
Q3:=ABS((O-C));
Q4:=H-IF(C>O,C,O);
Q5:=IF(C>O,O,C)-L;
Q6:=Q3/Q2*V;
Q7:=Q4/Q2*V;
Q8:=Q5/Q2*V;
Q9:=IF((V/CAPITAL>0.001),1,EXP(ABS(LOG(((V/CAPITAL)*100)))));
QA:=(((C-MA(C,5))/MA(C,5))*100);
QB:=(((MA(C,5)>MA(C,10)) AND (MA(C,10)>MA(C,30))) AND (MA(C,30)>MA(C,60)));
QC:=((MA(C,5)<MA(C,10)) AND (MA(C,10)<MA(C,30)));
QD:=REF(C,1);
QE:=((SMA(MAX((C-QD),0),6,1)/SMA(ABS((C-QD)),6,1))*100);
Q40:=((IF((Q6>=Q7 AND Q6>=Q8) AND C>O,Q6,动神)+动神)/2);
Q41:=((IF((Q7>Q6 AND Q7>Q8),Q7,动神)+动神)/2);
Q42:=((IF((Q8>Q6 AND Q8>Q7),Q8,动神)+动神)/2);
Q50:=((IF(((Q6>=Q7 AND Q6>=Q8) AND (C<O)),Q6,鬼力)+鬼力)/2);
三日上攻:=MA((Q40+Q41+Q42)/3,JY2),NODRAW;
三日下攻:=MA(Q50,JY2),NODRAW;
{多头:STICKLINE(C>MA(C,30),0,V,2.4,-1),COLORRED;
空头:STICKLINE(C<MA(C,30),0,V,2.4,-1),COLORGREEN;}
STICKLINE(鬼力>0,鬼力,0,3,0),COLORFF3399;
加仓:STICKLINE(Q6>=Q7 AND Q6>=Q8 AND C>O,0,Q6,2.2,0),COLORYELLOW;
减仓:STICKLINE(Q6>=Q7 AND Q6>=Q8 AND C<O,0,Q6,2.2,0),COLORBLUE;
洗盘:STICKLINE(Q8>Q6 AND Q8>Q7,0,Q8,2.2,0),COLORWHITE;
高卖:STICKLINE(Q7>Q6 AND Q7>Q8,0,Q7,2.2,0),COLORMAGENTA;
相对地量:=STICKLINE(Q9>2 AND V<MA(V,5)/2,0,V,3,0);
STICKLINE(买卖差>0,0,买卖差,1.0,0),COLORRED;
STICKLINE(买卖差<0,0,买卖差,2.2,0),COLORLIGREEN;
STICKLINE(REFDATE(V,DATE),REFDATE(V,DATE),REFDATE(V,DATE),1.6,1),COLORGRAY;
上涨家数:=STRCAT('▇沪深上涨家数:',CON2STR(DYNAINFO(60),0));
下跌家数:=STRCAT('▇沪深下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(1,0.42,0,0,上涨家数),COLORRED;
DRAWTEXT_FIX(1,0.55,0,0,下跌家数),COLORGREEN;
操盘线:MA(V,5),DOTLINE,LINETHICK1,COLORWHITE;
DRAWTEXT(ISLASTBAR,操盘线,'......操盘线'),COLORWHITE;
{量能提示 WX MS2266}
基准量:=(MA(VOL,5)+MA(VOL,10))/2;
危险量:=基准量*1.5;
破坏量:=基准量*1.15;
弱压量:=基准量*0.8;
超大量:=基准量*1.5;
攻击量:=基准量*1.15;
防守量:=基准量*0.8;
YL:=C>O OR (C=O AND C>=REF(C,1));
DL:=C<O OR (C=O AND C<REF(C,1));
TJ1:=DL AND VOL>=弱压量 AND VOL<破坏量;
TJ2:=DL AND VOL>=破坏量 AND VOL<危险量;
TJ3:=DL AND VOL>=危险量;
TJA:=YL AND VOL>=防守量 AND VOL<攻击量;
TJB:=YL AND VOL>=攻击量 AND VOL<超大量;
TJC:=YL AND VOL>超大量;
DRAWTEXT_FIX(ISLASTBAR AND TJ1,0.790,0.990,1.0,'[ 弱压量 ]'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND TJ2,0.790,0.990,1.0,'[ 破坏量 ]'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND TJ3,0.790,0.990,1.0,'[ 危险量 ]'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND TJA,0.790,0.990,1.0,'[ 防守量 ]'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND TJB,0.790,0.990,1.0,'[ 攻击量 ]'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR AND TJC,0.790,0.990,1.0,'[ 超大量 ]'),COLORRED;
换手率:VOL/CAPITAL*100*IF(CURRBARSCOUNT<35,1,DRAWNULL),NODRAW,COLORWHITE;
{DRAWTEXT_FIX(ISLASTBAR,0.86,0.01,0,STRCAT('今日换手率: ', CON2STR(DYNAINFO(37)*100,2))),COLORLIGRAY;}
DRAWTEXT_FIX(ISLASTBAR,0.65,0.990,0,STRCAT('5换手: ', CON2STR(SUM(DYNAINFO(37)*100,5),2))),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.56,0.990,0,STRCAT('10换手: ', CON2STR(SUM(DYNAINFO(37)*100,10),2))),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.47,0.990,0,STRCAT('20换手: ', CON2STR(SUM(DYNAINFO(37)*100,20),2))),COLORLIGRAY;
DRAWNUMBER(换手率>3,H,INTPART(换手率)),COLORWHITE;
{----------------------------- 以 下 资 金 博 弈 -----------------------------}
{资金博弈今日持仓}
DRAWRECTREL(0,0,350,400,IF(120,RGB(36,36,36),0))NOFRAME;
超B:=L2_AMO(0,0)/10000.0;
大B:=L2_AMO(1,0)/10000.0;
中B:=L2_AMO(2,0)/10000.0;
小B:=L2_AMO(3,0)/10000.0;
超S:=L2_AMO(0,1)/10000.0;
大S:=L2_AMO(1,1)/10000.0;
中S:=L2_AMO(2,1)/10000.0;
小S:=L2_AMO(3,1)/10000.0;
{ TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);}
{总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW,COLORWHITE;}
大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW,COLORWHITE;
大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);
成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW,COLORWHITE;
机构参与度:=(超B+超S+大B+大S)/成交总量*100,NODRAW,COLORWHITE;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买C:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;
净流入:=(超B+大B)-(超S+大S),NODRAW;
超额:=(超B)-(超S),COLORMAGENTA;
超单流入比:=超额*10000/AMO*100;
净额流入比:=净流入*10000/AMO*100;
流入比:=净流入*1000000/AMOUNT,NODRAW;
ZJD:=HHV(净流入,30);
ZJX:=LLV(净流入,30);
CJ:=HHV(V,30);
BEIS:=CJ/(ZJD-ZJX);
值:=CONST(CJ+ABS(ZJX)*BEIS);
STICKLINE(净流入>0 ,值,值+净流入*BEIS,2,0),COLORRED;
STICKLINE(净流入<=0 ,值,值+净流入*BEIS,2,0),COLOR40FF00;
STICKLINE(超额>0 ,值,值+超额*BEIS,0.5,0),COLORYELLOW;
STICKLINE(超额<=0 ,值,值+超额*BEIS,0.5,0),COLORGRAY;
{L2资金博弈}
DRAWRECTREL(0,400,188,999,IF(120,RGB(50,50,50),0))NOFRAME;
超大单:=(超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(5,CONST(950-(ABS(净流入)*500/DAZHI)),33,950,IF(CONST(净流入)>0,RGB(236,48,129),RGB(51,153,204)))NOFRAME;
DRAWRECTREL(41,CONST(950-(ABS(超大单)*500/DAZHI)),69,950,IF(CONST(超大单)>0,RGB(243,83,81),RGB(50,185,84)))NOFRAME;
DRAWRECTREL(77,CONST(950-(ABS(大单)*500/DAZHI)),105,950,IF(CONST(大单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME;
DRAWRECTREL(113,CONST(950-(ABS(中单)*500/DAZHI)),141,950,IF(CONST(中单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME;
DRAWRECTREL(149,CONST(950-(ABS(小单)*500/DAZHI)),177,950,IF(CONST(小单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.041,0.40,0,'今日资金 单位:万元'),COLORCYAN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.006,0.51,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.043,0.58,0,INTPART(超大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.078,0.65,0,INTPART(大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.115,0.72,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.152,0.79,0,INTPART(小单)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.006,0.98,0,'净流入'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.040,0.98,0,'超大单'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.080,0.98,0,'大单'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.116,0.98,0,'中单'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.153,0.98,0,'小单'),COLORWHITE;
{L2资金N天统计}
N:=5;{默认5天}
DRAWRECTREL(350,400,188,999,IF(120,RGB(50,50,0),0))NOFRAME;
净流入N天和:=SUM(净流入,N);
超大单N天和:=SUM(超大单,N);
大单N天和:=SUM(大单,N);
中单N天和:=SUM(中单,N);
小单N天和:=SUM(小单,N);
DAZHIX:=CONST(MAX(ABS(净流入N天和),MAX(ABS(超大单N天和),MAX(ABS(大单N天和),MAX(ABS(中单N天和),ABS(小单N天和)))))),NODRAW;
DRAWRECTREL(230,CONST(950-(ABS(净流入N天和)*500/DAZHIX)),245,950,IF(CONST(净流入N天和)>0,RGB(192,0,64),RGB(0,128,128)))NOFRAME;
DRAWRECTREL(255,CONST(950-(ABS(超大单N天和)*500/DAZHIX)),270,950,IF(CONST(超大单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME;
DRAWRECTREL(280,CONST(950-(ABS(大单N天和)*500/DAZHIX)),295,950,IF(CONST(大单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME;
DRAWRECTREL(305,CONST(950-(ABS(中单N天和)*500/DAZHIX)),320,950,IF(CONST(中单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME;
DRAWRECTREL(330,CONST(950-(ABS(小单N天和)*500/DAZHIX)),345,950,IF(CONST(小单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.225,0.48,0,INTPART(净流入N天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.250,0.56,0,INTPART(超大单N天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.275,0.64,0,INTPART(大单N天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.300,0.72,0,INTPART(中单N天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.325,0.80,0,INTPART(小单N天和)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.233,0.98,0,'净'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.257,0.98,0,'超'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.283,0.98,0,'大'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.307,0.98,0,'中'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.333,0.98,0,'小'),COLORWHITE;
DRAWTEXT_FIX(C>0,0.196,0.42,0,'近'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.54,0,'5'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.66,0,'天'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.78,0,'资'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.90,0,'金'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.212,0.60,0,'万'),COLORLIBLUE;
{DRAWTEXT_FIX(C>0,0.212,0.75,0,'元'),COLORLIBLUE;}
{最近10天和20天的资金流量}
N1:=10;{默认10天}
N2:=20;{默认20天}
DRAWRECTREL(420,0,350,999,IF(120,RGB(0,64,64),0))NOFRAME;
净流入N1天和:=SUM(净流入,N1);
净流入N2天和:=SUM(净流入,N2);
DAZHIXZ:=CONST(MAX(ABS(净流入N1天和),ABS(净流入N2天和))),NODRAW;
DRAWRECTREL(360,CONST(950-(ABS(净流入N1天和)*680/DAZHIXZ)),380,950,IF(CONST(净流入N1天和)>0,RGB(192,0,64),RGB(0,128,128)))NOFRAME;
DRAWRECTREL(390,CONST(950-(ABS(净流入N2天和)*680/DAZHIXZ)),410,950,IF(CONST(净流入N2天和)>0,RGB(190,0,64),RGB(0,128,128)))NOFRAME;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.355,0.35,0,INTPART(净流入N1天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.390,0.50,0,INTPART(净流入N2天和)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.350,0.05,0,'10天净流 (万元)'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.385,0.20,0,'20天净流'),COLORWHITE;
DRAWRECTREL(0,0,350,400,IF(120,RGB(36,36,36),0))NOFRAME;
{资金流入比}
DRAWRECTREL(100,55,340,0,RGB(51,185,84))NOFRAME;{绿色}
DRAWRECTREL(100,55,100+240*CONST(净额流入比/100),0,RGB(243,83,81))NOFRAME;{红色}
DRAWRECTREL(100,125,340,75,RGB(51,185,84))NOFRAME;{绿色}
{DRAWRECTREL(100,125,220,75,RGB(51,153,204))NOFRAME;{青色}
DRAWRECTREL(100,125,100+240*CONST(超单流入比/100),75,RGB(243,83,81))NOFRAME;{红色}
{大单流入比}
DRAWRECTREL(100,200,340,150,RGB(50,185,84))NOFRAME;{绿色}
{DRAWRECTREL(100,200,220,150,RGB(51,153,204))NOFRAME;{青色}
DRAWRECTREL(100,200,100+240*CONST(大单流入限制/100),150,RGB(243,83,81))NOFRAME;{红色}
{机构参与度}
DRAWRECTREL(100,275,340,225,RGB(50,185,84))NOFRAME;{绿色}
{DRAWRECTREL(100,275,220,225,RGB(51,153,204))NOFRAME;{青色}
DRAWRECTREL(100,275,100+240*CONST(机构参与度/100),225,RGB(243,83,81))NOFRAME;{红色}
{主动买卖比}
DRAWRECTREL(100,350,340,300,RGB(50,185,84))NOFRAME;{绿色}
{DRAWRECTREL(100,350,220,300,RGB(51,153,204))NOFRAME;{青色}
DRAWRECTREL(100,350,100+240*CONST(主买C/100),300,RGB(243,83,81))NOFRAME;{红色}
{文字}
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'资金博弈今日持仓'),COLORLIBLUE;}
DRAWTEXT_FIX(1,0.00,0.000,0,STRCAT(STRCAT('资金介入度: ',CON2STR(净额流入比,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.070,0,STRCAT(STRCAT('超单流入比: ',CON2STR(超单流入比,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.142,0,STRCAT(STRCAT('大单流入比: ',CON2STR(大单流入限制,2)),' %买')),COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.215,0,STRCAT(STRCAT('机构参与度: ',CON2STR(机构参与度,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.290,0,STRCAT(STRCAT('主动买卖比: ',CON2STR(主买C,2)),' %')),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{DRAWTEXT_FIX(1,0.45,0.10,0,'★【操作解盘注意】:巨量有绿色下部(负交易量)时,说明主力出逃 ★'),画黄色
当满足条件1时,在横轴0.45纵轴0.80位置书写文字
当满足条件1时,在横轴0.45纵轴0.90位置书写文字
当满足条件1时,在横轴0.65纵轴0.80位置书写文字
当满足条件1时,在横轴0.65纵轴0.90位置书写文字
}Q1赋输出值:V/((H-L)*2-(C-O的绝对值))
输出万手:成交量/10000,NODRAW
买盘赋输出值:IF(C>O,Q1*(H-L),IF(C输出主买量:买盘/10000,画红色,NODRAW
卖盘赋输出值:IF(C>O,(0-Q1*((H-C)+(O-L))),IF(C输出主卖量:卖盘/10000,COLORLIBLUE,NODRAW
输出主买净量:主买量+主卖量,画洋红色,NODRAW
输出主买比:主买量/(主买量-主卖量)*100,画黄色,NODRAW
输出主动量比:(主买量-主卖量)/万手*100,COLORLIBLUE,NODRAW
输出净买量比:主买净量/万手*100,COLORLIBLUE,NODRAW
净买量赋输出值:ACTIN成交量-ACTOUT成交量
主动卖盘赋输出值:IF(C>O,Q1*((H-C)+(O-L)),IF(C买卖差赋输出值:买盘+卖盘
输出买卖比:买盘/主动卖盘,NODRAW
量比1赋输出值:V/V的5日简单移动平均
Q10赋输出值:买盘
Q20赋输出值:卖盘
JX1赋输出值:BARSSINCE(买盘)
如果121>JX1 AND JX1>0返回JX1否则返回120
如果4>JX1 AND JX1>0返回JX1否则返回3
Q30赋输出值:V的JY2日简单移动平均
动神赋输出值:买盘
鬼力赋输出值:Q20
神比赋输出值:动神/Q30
鬼比赋输出值:鬼力/Q30
Q2赋输出值:H-L
Q3赋输出值:(O-C的绝对值)
如果C>O返回C否则返回O
如果C>O返回O否则返回C
Q6赋输出值:Q3/Q2*V
Q7赋输出值:Q4/Q2*V
Q8赋输出值:Q5/Q2*V
Q9赋输出值:IF((V/当前流通股本>0.001),1,EXP(LOG(((V/当前流通股本的绝对值*100)))))
QA赋输出值:(((C-C的5日简单移动平均)/C的5日简单移动平均)*100)
QB赋输出值:(((C的5日简单移动平均>C的10日简单移动平均) AND (C的10日简单移动平均>C的30日简单移动平均)) AND (C的30日简单移动平均>C的60日简单移动平均))
QC赋输出值:((C的5日简单移动平均QD赋输出值:1日前的C
QE赋输出值:((SMA(MAX((C-QD),0),6,1)/SMA((C-QD的绝对值),6,1))*100)
Q40:=((IF((Q6>=Q7 AND Q6>=Q8) AND C>O,Q6,动神)+动神)/2)
Q41:=((IF((Q7>Q6 AND Q7>Q8),Q7,动神)+动神)/2)
Q42:=((IF((Q8>Q6 AND Q8>Q7),Q8,动神)+动神)/2)
Q50:=((IF(((Q6>=Q7 AND Q6>=Q8) AND (C三日上攻赋输出值:MA((Q40+Q41+Q42)/3,JY2),NODRAW
三日下攻赋输出值:Q50的JY2日简单移动平均,NODRAW
输出{多头:STICKLINE(C>C的30日简单移动平均,0,V,2.4,-1),画红色
输出空头:STICKLINE(C当满足条件鬼力>0时,在鬼力和0之间画柱状线
当满足条件Q6>=Q7 AND Q6>=Q8 AND C>O时,在0和Q6之间画柱状线
当满足条件Q6>=Q7 AND Q6>=Q8 AND C当满足条件Q8>Q6 AND Q8>Q7时,在0和Q8之间画柱状线
当满足条件Q7>Q6 AND Q7>Q8时,在0和Q7之间画柱状线
相对地量赋输出值:STICKLINE(Q9>2 AND V当满足条件买卖差>0时,在0和买卖差之间画柱状线
当满足条件买卖差<0时,在0和买卖差之间画柱状线
STICKLINE(REFDATE(V,DATE),REFDATE(V,DATE),REFDATE(V,DATE),1.6,1),COLORGRAY
上涨家数:=STRCAT('▇沪深上涨家数:',CON2STR(DYNAINFO(60),0))
下跌家数:=STRCAT('▇沪深下跌家数:',CON2STR(DYNAINFO(61),0))
当满足条件1时,在横轴0.42纵轴0位置书写文字
当满足条件1时,在横轴0.55纵轴0位置书写文字
输出操盘线:V的5日简单移动平均,DOTLINE,LINETHICK1,画白色
当满足条件ISLASTBAR时,在操盘线和'......操盘线'位置书写文字
{量能提示 WX MS2266}基准量赋输出值:(成交量的5日简单移动平均+成交量的10日简单移动平均)/2
危险量赋输出值:基准量*1.5
破坏量赋输出值:基准量*1.15
弱压量赋输出值:基准量*0.8
超大量赋输出值:基准量*1.5
攻击量赋输出值:基准量*1.15
防守量赋输出值:基准量*0.8
YL赋输出值:C>O OR (C=O AND C>=1日前的C)
DL赋输出值:C TJ1赋输出值:DL AND 成交量>=弱压量 AND 成交量<破坏量
TJ2赋输出值:DL AND 成交量>=破坏量 AND 成交量<危险量
TJ3赋输出值:DL AND 成交量>=危险量
TJA赋输出值:YL AND 成交量>=防守量 AND 成交量<攻击量
TJB赋输出值:YL AND 成交量>=攻击量 AND 成交量<超大量
TJC赋输出值:YL AND 成交量>超大量
当满足条件ISLASTBAR AND TJ1时,在横轴0.790纵轴0.990位置书写文字
当满足条件ISLASTBAR AND TJ2时,在横轴0.790纵轴0.990位置书写文字
当满足条件ISLASTBAR AND TJ3时,在横轴0.790纵轴0.990位置书写文字
当满足条件ISLASTBAR AND TJA时,在横轴0.790纵轴0.990位置书写文字
当满足条件ISLASTBAR AND TJB时,在横轴0.790纵轴0.990位置书写文字
当满足条件ISLASTBAR AND TJC时,在横轴0.790纵轴0.990位置书写文字
如果 到最后交易的周期<35返回1否则返回DRAWNULL
{DRAWTEXT_FIX(ISLASTBAR,0.86,0.01,0,STRCAT('今日输出换手率: ', CON2STR(DYNAINFO(37)*100,2))),COLORLIGRAY
输出} DRAWTEXT_FIX(ISLASTBAR,0.65,0.990,0,STRCAT('5换手: ', CON2STR(SUM(DYNAINFO(37)*100,5),2))),COLORLIGRAY
输出DRAWTEXT_FIX(ISLASTBAR,0.56,0.990,0,STRCAT('10换手: ', CON2STR(SUM(DYNAINFO(37)*100,10),2))),COLORLIGRAY
输出DRAWTEXT_FIX(ISLASTBAR,0.47,0.990,0,STRCAT('20换手: ', CON2STR(SUM(DYNAINFO(37)*100,20),2))),COLORLIGRAY
DRAWNUMBER(换手率>3,H,INTPART(换手率)),画白色
{----------------------------- 以 下 资 金 博 弈 -----------------------------} {资金博弈今日持仓}DRAWRECTREL(0,0,350,400,IF(120,RGB(36,36,36),0))NOFRAME
超B赋输出值:L2_AMO(0,0)/10000.0
大B赋输出值:L2_AMO(1,0)/10000.0
中B赋输出值:L2_AMO(2,0)/10000.0
小B赋输出值:L2_AMO(3,0)/10000.0
超S赋输出值:L2_AMO(0,1)/10000.0
大S赋输出值:L2_AMO(1,1)/10000.0
中S赋输出值:L2_AMO(2,1)/10000.0
小S赋输出值:L2_AMO(3,1)/10000.0
{ TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0)
}{总流入比赋输出值:(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW,画白色
}大单流入赋输出值:(超B+大B)/(超B+大B+超S+大S)*100,NODRAW,画白色
大单流入限制赋输出值:IF((超B+大B+超S+大S)=0,0,大单流入)
成交总量赋输出值:(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW,画白色
机构参与度赋输出值:(超B+超S+大B+大S)/成交总量*100,NODRAW,画白色
主买A赋输出值:ACTIN成交量,画红色,NODRAW
主卖A赋输出值:ACTOUT成交量,画绿色,NODRAW
主买C赋输出值:主买A*100/(主买A+主卖A),NODRAW,画红色
净流入赋输出值:(超B+大B)-(超S+大S),NODRAW
超额赋输出值:(超B)-(超S),画洋红色
超单流入比赋输出值:超额*10000/AMO*100
净额流入比赋输出值:净流入*10000/AMO*100
流入比赋输出值:净流入*1000000/成交额,NODRAW
ZJD赋输出值:30日内净流入最高值
ZJX赋输出值:30日内净流入最低值
CJ赋输出值:30日内V最高值
BEIS赋输出值:CJ/(ZJD-ZJX)
值赋输出值:CONST(CJ+ZJX的绝对值*BEIS)
当满足条件净流入>0 时,在值和值+净流入*BEIS之间画柱状线
当满足条件净流入<=0 时,在值和值+净流入*BEIS之间画柱状线
当满足条件超额>0 时,在值和值+超额*BEIS之间画柱状线
当满足条件超额<=0 时,在值和值+超额*BEIS之间画柱状线
{L2资金博弈}DRAWRECTREL(0,400,188,999,IF(120,RGB(50,50,50),0))NOFRAME
超大单赋值:(超B)-(超S),NODRAW
大单赋值:(大B)-(大S),NODRAW
中单赋值:(中B)-(中S),NODRAW
小单赋值:(小B)-(小S),NODRAW
DAZHI赋值:CONST(MAX(净流入的绝对值,MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW
DRAWRECTREL(5,CONST(950-(净流入的绝对值*500/DAZHI)),33,950,IF(CONST(净流入)>0,RGB(236,48,129),RGB(51,153,204)))NOFRAME
DRAWRECTREL(41,CONST(950-(超大单的绝对值*500/DAZHI)),69,950,IF(CONST(超大单)>0,RGB(243,83,81),RGB(50,185,84)))NOFRAME
DRAWRECTREL(77,CONST(950-(大单的绝对值*500/DAZHI)),105,950,IF(CONST(大单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME
DRAWRECTREL(113,CONST(950-(中单的绝对值*500/DAZHI)),141,950,IF(CONST(中单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME
DRAWRECTREL(149,CONST(950-(小单的绝对值*500/DAZHI)),177,950,IF(CONST(小单)>0,RGB(243,83,81),RGB(50,185,87)))NOFRAME
当满足条件 到最后交易的周期=1时,在横轴0.041纵轴0.40位置书写文字
DRAWNUMBER_FIX( 到最后交易的周期=1,0.006,0.51,0,INTPART(净流入)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.043,0.58,0,INTPART(超大单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.078,0.65,0,INTPART(大单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.115,0.72,0,INTPART(中单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.152,0.79,0,INTPART(小单)),画白色
当满足条件 到最后交易的周期=1时,在横轴0.006纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.040纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.080纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.116纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.153纵轴0.98位置书写文字
{L2资金N天统计}N赋值:5
{默认5天}DRAWRECTREL(350,400,188,999,IF(120,RGB(50,50,0),0))NOFRAME
净流入N天和:=N的净流入日累和
超大单N天和:=N的超大单日累和
大单N天和:=N的大单日累和
中单N天和:=N的中单日累和
小单N天和:=N的小单日累和
DAZHIX:=CONST(MAX(净流入N天和的绝对值,MAX(ABS(超大单N天和),MAX(ABS(大单N天和),MAX(ABS(中单N天和),ABS(小单N天和)))))),NODRAW
DRAWRECTREL(230,CONST(950-(净流入N天和的绝对值*500/DAZHIX)),245,950,IF(CONST(净流入N天和)>0,RGB(192,0,64),RGB(0,128,128)))NOFRAME
DRAWRECTREL(255,CONST(950-(超大单N天和的绝对值*500/DAZHIX)),270,950,IF(CONST(超大单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME
DRAWRECTREL(280,CONST(950-(大单N天和的绝对值*500/DAZHIX)),295,950,IF(CONST(大单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME
DRAWRECTREL(305,CONST(950-(中单N天和的绝对值*500/DAZHIX)),320,950,IF(CONST(中单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME
DRAWRECTREL(330,CONST(950-(小单N天和的绝对值*500/DAZHIX)),345,950,IF(CONST(小单N天和)>0,RGB(180,0,0),RGB(32,128,32)))NOFRAME
DRAWNUMBER_FIX( 到最后交易的周期=1,0.225,0.48,0,INTPART(净流入N天和)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.250,0.56,0,INTPART(超大单N天和)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.275,0.64,0,INTPART(大单N天和)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.300,0.72,0,INTPART(中单N天和)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.325,0.80,0,INTPART(小单N天和)),画白色
当满足条件 到最后交易的周期=1时,在横轴0.233纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.257纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.283纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.307纵轴0.98位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.333纵轴0.98位置书写文字
当满足条件C>0时,在横轴0.196纵轴0.42位置书写文字
当满足条件C>0时,在横轴0.196纵轴0.54位置书写文字
当满足条件C>0时,在横轴0.196纵轴0.66位置书写文字
当满足条件C>0时,在横轴0.196纵轴0.78位置书写文字
当满足条件C>0时,在横轴0.196纵轴0.90位置书写文字
当满足条件C>0时,在横轴0.212纵轴0.60位置书写文字
当满足条件C>0时,在横轴0.212纵轴0.75位置书写文字
} {最近10天和20天的资金流量}N1赋值:10
{默认10天}N2赋值:20
{默认20天}DRAWRECTREL(420,0,350,999,IF(120,RGB(0,64,64),0))NOFRAME
净流入N1天和:=N1的净流入日累和
净流入N2天和:=N2的净流入日累和
DAZHIXZ:=CONST(MAX(净流入N1天和的绝对值,ABS(净流入N2天和))),NODRAW
DRAWRECTREL(360,CONST(950-(净流入N1天和的绝对值*680/DAZHIXZ)),380,950,IF(CONST(净流入N1天和)>0,RGB(192,0,64),RGB(0,128,128)))NOFRAME
DRAWRECTREL(390,CONST(950-(净流入N2天和的绝对值*680/DAZHIXZ)),410,950,IF(CONST(净流入N2天和)>0,RGB(190,0,64),RGB(0,128,128)))NOFRAME
DRAWNUMBER_FIX( 到最后交易的周期=1,0.355,0.35,0,INTPART(净流入N1天和)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.390,0.50,0,INTPART(净流入N2天和)),画白色
DRAWTEXT_FIX( 到最后交易的周期=1,0.350,0.05,0,'10天净流 (万元)'),画白色
当满足条件 到最后交易的周期=1时,在横轴0.385纵轴0.20位置书写文字
DRAWRECTREL(0,0,350,400,IF(120,RGB(36,36,36),0))NOFRAME
{资金流入比}DRAWRECTREL(100,55,340,0,RGB(51,185,84))NOFRAME
{绿色}DRAWRECTREL(100,55,100+240*CONST(净额流入比/100),0,RGB(243,83,81))NOFRAME
{红色}DRAWRECTREL(100,125,340,75,RGB(51,185,84))NOFRAME
{绿色}{DRAWRECTREL(100,125,220,75,RGB(51,153,204))NOFRAME
{青色}DRAWRECTREL(100,125,100+240*CONST(超单流入比/100),75,RGB(243,83,81))NOFRAME
{红色} {大单流入比}DRAWRECTREL(100,200,340,150,RGB(50,185,84))NOFRAME
{绿色}{DRAWRECTREL(100,200,220,150,RGB(51,153,204))NOFRAME
{青色}DRAWRECTREL(100,200,100+240*CONST(大单流入限制/100),150,RGB(243,83,81))NOFRAME
{红色} {机构参与度}DRAWRECTREL(100,275,340,225,RGB(50,185,84))NOFRAME
{绿色}{DRAWRECTREL(100,275,220,225,RGB(51,153,204))NOFRAME
{青色}DRAWRECTREL(100,275,100+240*CONST(机构参与度/100),225,RGB(243,83,81))NOFRAME
{红色} {主动买卖比}DRAWRECTREL(100,350,340,300,RGB(50,185,84))NOFRAME
{绿色}{DRAWRECTREL(100,350,220,300,RGB(51,153,204))NOFRAME
{青色}DRAWRECTREL(100,350,100+240*CONST(主买C/100),300,RGB(243,83,81))NOFRAME
当满足条件 到最后交易的周期=1时,在横轴0纵轴0位置书写文字
输出}DRAWTEXT_FIX(1,0.00,0.000,0,STRCAT(STRCAT('资金介入度: ',CON2STR(净额流入比,2)),' %')),画白色
DRAWTEXT_FIX(1,0.00,0.070,0,STRCAT(STRCAT('输出超单流入比: ',CON2STR(超单流入比,2)),' %')),画白色
DRAWTEXT_FIX(1,0.00,0.142,0,STRCAT(STRCAT('大单输出流入比: ',CON2STR(大单流入限制,2)),' %买')),画白色
DRAWTEXT_FIX(1,0.00,0.215,0,STRCAT(STRCAT('输出机构参与度: ',CON2STR(机构参与度,2)),' %')),画白色
DRAWTEXT_FIX(1,0.00,0.290,0,STRCAT(STRCAT('主动输出买卖比: ',CON2STR(主买C,2)),' %')),画白色