|
楼主 |
发表于 2015-8-29 08: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;{虚拟量};
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL/2,0,-1,-1),COLOR00C0C0;{虚拟量};
{量能饱和度}
T13:=C/REF(C,1)>=1.097 AND H=C;
CQ:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,34)/HHV(C,34));
量能饱和度:IF(SAT>1,1,SAT)*100;
STICKLINE(量能饱和度<=15,0,-V,3,0),COLORRED;
STICKLINE(量能饱和度>15 AND 量能饱和度< 80,0,-V,3,0),COLORYELLOW;
STICKLINE(量能饱和度>=80 AND 量能饱和度< 97,0,-V,3,0),COLORBLUE;
STICKLINE(量能饱和度>=97,0,-V,3,0),COLORGREEN;
量:VOL,VOLSTICK;
MA1:=MA(V,5);
MA3:=MA(V,135);
{低量柱}
低量柱:=IF(V=LLV(V,10),9,8);
XG低:=低量柱>8 AND NOT(O=C AND C=H);
DRAWTEXT(XG低,VOL*1.8,'低'),COLORYELLOW;
低倍柱:=VOL>REF(V,1)*1.9 AND REF(XG低,1) AND C> REF(C,1);
DRAWTEXT(低倍柱,VOL*1.7,'低倍'),COLORYELLOW;
{倍量柱}
倍量柱:=VOL>=REF(V,1)*1.5 AND C>O ;
DRAWTEXT(倍量柱,VOL*1.3,'倍'),COLORRED;
{小倍量}
倍量5:=1.6<V/REF(V,1) AND V/REF(V,1)<2.5;
小倍量:=REF(MA1,1)<REF(MA2,1) AND 倍量5 AND REF(C,1)<C AND MA1<MA2
AND O<C ;
DRAWTEXT(小倍量,VOL*1.6,'小倍'),COLORRED;
{T4变异}
T4变异:=V<REF(V,1) AND REF(V,1)>REF(V,2) AND
REF(V,2)>REF(V,3) AND REF(V,4)>REF(V,3) AND UPNDAY(C,3) AND NOT(O=C AND H=O) ;
DRAWTEXT(T4变异,VOL*1.5,'T4变'),COLORLIRED;
{阴连缩}
阴连缩:=C<REF(C,1) AND REF(C,1)<REF(C,2) AND REF(C,2)<REF(C,3) AND V*1.05<REF(V,1)
AND REF(V,1)*1.05<REF(V,2) AND NOT((BARSCOUNT(C)+1)<60) ;
DRAWTEXT(阴连缩,VOL*1.8,'连缩'),COLORWHITE;
{阳连缩}
阳连缩:= UPNDAY(C,3) AND V*1.05<REF(V,1)
AND REF(V,1)*1.05<REF(V,2)
AND NOT(O=C AND H=C);
DRAWTEXT(阳连缩,VOL*1.8,'阳连缩'),COLORRED;
{周线大牛}
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周线大牛:=CROSS(周K,周D) AND C/REF(C,1)>1.097;
DRAWTEXT(周线大牛,VOL*1.8,'周线大牛'),COLORRED;
{平量}
低平量:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02 AND V*1.2<MA2 AND NOT(O=C AND C=H) ;
DRAWTEXT(低平量,VOL*1.5,'低平'),COLORGREEN;
平量:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02 ;
DRAWTEXT(平量,VOL*1.4,'平量'),COLORRED;
{阴梯量}
阴梯量:=V>REF(V,1)*1.05 AND
REF(V,1)>REF(V,2)*1.05 AND REF(C,1)>C
AND REF(C,2)>REF(C,1) AND REF(C,3)>REF(C,2) ;
DRAWTEXT(阴梯量,VOL*1.5,'阴梯'),COLORRED;
{倍缩}
缩倍:=REF(V,1)*0.48>V AND NOT(O=C AND H=O) ;
DRAWTEXT(缩倍,VOL*1.6,'2S'),COLORRED;
{缩三一}
缩三一:= V<=REF(V,1)*0.7 AND V>REF(V,1)*0.5;
DRAWTEXT(缩三一,VOL*1.5,'3S'),COLORLIMAGENTA;
{多空成交量}
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
{成交量除以振幅的一半减去K线实体价差,成交量影线系数}
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
{如果收阳,则用成交量影线系数乘以振幅,如果收阴则用成交量影线系数乘以上下影线价格和,否则成交量折半计算买盘}
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
{如果收阳,成交量影线系数乘以上下影线价格和取负数,如果收阴,成交量影线系数乘以振幅取负数,否则取成交量折半取负数计算买盘}
买卖差:=(买盘 + 卖盘); {买卖盘的差值}
{绿底,表示当日主力在出货,在0轴下画出绿柱}
多头:STICKLINE((CLOSE > MA(CLOSE,24)),0,VOL,3,1),COLOR0000FF;
{红框,表示处于多头行情,收盘价在三十日均价线上,画空心红框}
空头:STICKLINE((CLOSE < MA(CLOSE,24)),0,VOL,3,1),COLOR00FF00;
{绿框,表示处于空头行情,收盘价在三十日均价线下,画空心绿框}
HH:=HHV(VOL,10);
T:=BARSLAST(HH=VOL);
异常高量:STICKLINE(HH=VOL,0,VOL,2.5,0),COLORFF00FF;
{成交量大于五日均量线的2倍,用黄底实心表示高量}
进货:STICKLINE((买卖差 > 0),买盘,0,2,0),COLOR0000FF;
{买盘大于0,则安买盘画红带柱};
出货:STICKLINE((买卖差 < 0),0,-卖盘,2,0),COLOR33FF33;
LDM119:=IF(ISLASTBAR=1 AND 出货=0 ,进货,DRAWNULL);
DRAWTEXT_FIX(LDM119,0.8,0.1,0,'主力今日进货')COLORRED;
LDM120:=IF(ISLASTBAR=1 AND 进货=0,出货,DRAWNULL);
DRAWTEXT_FIX(LDM120,0.8,0.1,0,'主力今日出货')COLORGREEN;
LDM121:=IF(ISLASTBAR=1,多头,DRAWNULL);
DRAWTEXT_FIX(LDM121,0.85,0.1,0,'目前行情为多头趋势')COLORRED;
LDM122:=IF(ISLASTBAR=1,空头,DRAWNULL);
DRAWTEXT_FIX(LDM122,0.85,0.1,0,'目前行情为空头趋势')COLORGREEN;
LDM129:=IF(ISLASTBAR=1 AND C>REF(C,1),异常高量 ,DRAWNULL);
DRAWTEXT_FIX(LDM129,0.92,0.1,0,'今日为异常高量阳线')COLORFF00FF;
LDM130:=IF(ISLASTBAR=1 AND REF(C,1)>C,异常高量,DRAWNULL);
DRAWTEXT_FIX(LDM130,0.92,0.1,0,'今日为异常高量阴线')COLORFF00FF;
{量柱3121}
换手率:=VOL/CAPITAL*100,NODRAW,COLORYELLOW;
缩量31:换手率*2/3,NODRAW;
缩量21:VOL/2,NODRAW;
缩量32:换手率*1/3,NODRAW;
STICKLINE(VOL/2,VOL/2,VOL/2,5,0),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.07,0,' 1、 价跌缩量三一,为多方初步测市,后市看涨;'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.14,0,' 2、 价跌缩量二一,为多方强势测市,后市必涨;'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.21,0,' 3、 价涨缩量三一,为多方控盘良好,后市看涨;'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.28,0,' 4、 价涨缩量二一,为多方控盘很好,后市必涨。'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.35,0,' 善猎者,必善等待。'),COLORWHITE;
DRAWTEXT_FIX(1,0.25,0,0,'我们需要的是一种知行合一,立即反应的操作,而不是患得患失的犹豫,见到了买卖讯号
就反应而忘记交易价格,阳胜进,阴胜出,是股市高手的一种操盘风格。'),COLORRED; |
评分
-
1
查看全部评分
-
|