对倒分析
EXPLAIN(1,'短线教练清风斜阳搜集编制 '),colorFF;
EXPLAIN(1,'本指标首发于创幻论坛!!! '),colorFFFF00;
EXPLAIN(1,'把握趋势线,轻松来赚钱!!'),colorFFFFFF;
EXPLAIN(1,'短线突击队,随时欢迎你!! '),colorFFFFFF;
EXPLAIN(1,'短线训练基D:群号8430806'),colorFFF00;
EXPLAIN(1,'短线实盘指导:群号8431841'),colorFFF00;
EXPLAIN(1,'从对倒盘看透主力炒作意图! '),colorFF;
KXS:=SYSPARAM(1);
DRAWTEXT(KXS+2=BARSCOUNT(CLOSE),1,USERNAME+' 欢迎使用清风斜阳编制的指标\n本指标首发于创幻论坛(www.fxjgsw.com)\n属于非卖品,不得用于商业用途\n非经许可,不得转载,违者必究'),ALIGN4,colorFFFF;
CHECK:=STRCMP(USERNAME,'userid')>0;
当前分笔量:=VOL;
主动买入单:BUYVOL,STICK,colorFFFFFF;
主动卖出单:SELLVOL,STICK,colorFFFF;
成交单总和:=SUM(当前分笔量,0);
主买单总和:=SUM(主动买入单,0);
主卖单总和:=SUM(主动卖出单,0);
买卖单差值:主买单总和-主卖单总和,LINETHICK0;
VAR1:=IF(CLOSE<REF(ASKPRICE(1),1) AND REF(BIDVOL(1),1)>0 AND REF(ASKVOL(1),1)>0,BUYVOL,0);
VAR2:=IF(BUYVOL>REF(ASKVOL(1),1) AND CLOSE>REF(ASKPRICE(1),1) AND CLOSE<REF(ASKPRICE(2),1),BUYVOL,0);
VAR3:=IF(BUYVOL>REF(ASKVOL(1),1)+REF(ASKVOL(2),1) AND CLOSE>REF(ASKPRICE(2),1) AND CLOSE<REF(ASKPRICE(3),1),BUYVOL,0);
对倒买单:VAR1+VAR2+VAR3,STICK,colorFF;
对倒买单总和:=SUM(对倒买单,0);
VARA:=IF(CLOSE>REF(BIDPRICE(1),1) AND REF(ASKVOL(1),1)>0 AND REF(BIDVOL(1),1)>0,SELLVOL,0);
VARB:=IF(SELLVOL>REF(BIDVOL(1),1) AND CLOSE<REF(BIDPRICE(1),1) AND CLOSE>REF(BIDPRICE(2),1),SELLVOL,0);
VARC:=IF(SELLVOL>REF(BIDVOL(1),1)+REF(BIDVOL(2),1) AND CLOSE<REF(BIDPRICE(2),1) AND CLOSE>REF(BIDPRICE(3),1),SELLVOL,0);
对倒卖单:VARA+VARB+VARC,STICK,colorFFFF00;
对倒卖单总和:=SUM(对倒卖单,0);
对倒买卖单之差:=对倒买单总和-对倒卖单总和;
对倒大买单:IF(BUYVOL>=500,BUYVOL,0),STICK,colorFF00FF;
对倒大卖单:IF(SELLVOL>=500,SELLVOL,0),STICK,colorFF00;
对倒大买单总和:=SUM(对倒大买单,0);
对倒大卖单总和:=SUM(对倒大卖单,0);
对倒大买卖单之差:=对倒大买单总和-对倒大卖单总和;
大买单:=IF(BUYVOL>=100 AND BUYVOL<500,BUYVOL,0);
大卖单:=IF(SELLVOL>=100 AND BUYVOL<500,SELLVOL,0);
大卖单总和:=SUM(大卖单,0);
大买单总和:=SUM(大买单,0);
大买卖单之差:=大买单总和-大卖单总和;
小买单:=IF(BUYVOL<=50,BUYVOL,0);
小卖单:=IF(SELLVOL<=50,SELLVOL,0);
小卖单总和:=SUM(小卖单,0);
小买单总和:=SUM(小买单,0);
小买卖单之差:=小买单总和-小卖单总和;
EXPLAINEX(1=1,'【当前分笔量(手)】=',当前分笔量,2,0),colorFFFF00;
EXPLAINEX(1=1,'【分笔量(手)总和】=',成交单总和,2,0),colorFFFF00;
EXPLAINEX(1=1,'【主动买入单】=',主动买入单,2,0),colorFFFFFF;
EXPLAINEX(1=1,'【主买单总和】=',主买单总和,2,0),colorFFFFFF;
EXPLAINEX(1=1,'【主动卖出单】=',主动卖出单,2,0),colorFFFF;
EXPLAINEX(1=1,'【主卖单总和】=',主卖单总和,2,0),colorFFFF;
EXPLAINEX(1=1,'【买卖单之差】=',买卖单差值,2,0),colorFFFF;
EXPLAINEX(1=1,'【对倒买单】=',对倒买单,2,0),colorFF;
EXPLAINEX(1=1,'【对倒买单总和】=',对倒买单总和,2,0),colorFF;
EXPLAINEX(1=1,'【对倒卖单】=',对倒卖单,2,0),colorFFFF00;
EXPLAINEX(1=1,'【对倒卖单总和】=',对倒卖单总和,2,0),colorFFFF00;
EXPLAINEX(1=1,'【对倒买卖单之差】=',对倒买卖单之差,2,0),colorFFFF;
EXPLAINEX(1=1,'【对倒大买单】=',对倒大买单,2,0),colorFF00FF;
EXPLAINEX(1=1,'【对倒大买单总和】=',对倒大买单总和,2,0),colorFF00FF;
EXPLAINEX(1=1,'【对倒大卖单】=',对倒大卖单,2,0),colorFF00;
EXPLAINEX(1=1,'【对倒大卖单总和】=',对倒大卖单总和,2,0),colorFF00;
EXPLAINEX(1=1,'【对倒大买卖单之差】=',对倒大买卖单之差,2,0),colorFFFF;
EXPLAINEX(1=1,'【大买单】=',大买单,2,0),colorFF00FF;
EXPLAINEX(1=1,'【大买单总和】=',大买单总和,2,0),colorFF00FF;
EXPLAINEX(1=1,'【大卖单】=',大卖单,2,0),colorFFFF00;
EXPLAINEX(1=1,'【大卖单总和】=',大卖单总和,2,0),colorFFFF00;
EXPLAINEX(1=1,'【大买卖单之差】=',大买卖单之差,2,0),colorFFFF;
EXPLAINEX(1=1,'【小买单】=',小买单,2,0),colorFF00FF;
EXPLAINEX(1=1,'【小买单总和】=',小买单总和,2,0),colorFF00FF;
EXPLAINEX(1=1,'【小卖单】=',小卖单,2,0),colorFFFF00;
EXPLAINEX(1=1,'【小卖单总和】=',小卖单总和,2,0),colorFFFF00;
EXPLAINEX(1=1,'【小买卖单之差】=',小买卖单之差,2,0),colorFFFF;
|