一主图三副图组合
1 主图 黄买蓝卖优化底线短炒版增加关键K线提示,股价的涨跌重要支撑和压力位更加清晰
2 黄买蓝卖模型副图
要分成本种颜色:洋红代表最好,其次是红色、绿色。
1、全部为洋红色代表强势操作显示钱袋子,主升可操作。
2、8个洋红色其次显示小人。,
3、大于等6个洋红色可以操作用红箭头,表示行情启动,一般主升都是从这里开始。
感觉对操作大牛很有效果,对主升浪很有帮助。当然不是所有的显示出来的都是主升,显示出来也可能是阶段性顶部,也就是没能成长为大牛。这个要有一定基础和形态、位置以及筹码集中情况去判断。这个指标主要是解决明明觉得是大牛,看到涨了板却不敢去追,对于追二板效果很好。
4、整合了市场情绪这个指标,非常感谢本论坛的原创们,主要将两市“板占比”和“涨占比”划分为极强市、多头市、极弱市、空头市。两个空白色和绿色张组合表示空头市用向下小箭头表示,两个彩色组合表示多头市,一白一彩表示平衡谨慎。将能否操作整合进这个指标,对短线操作很有帮助
3 黄买蓝卖短线副图
五指标共振线指标W位置,关注60MACD和周K拐头周K金叉
日周月共振指标增加量能数字密码和绿钻预警提示。使用方法是密码数字逐渐连续递增时,数字越大量能越足,可放心持股待涨或介入,但当密码数字不再递增或递减时需要关注股价变化并适当减仓或清仓。
4抄底副图 出买入信号的原理是低位阳包阴和震荡平台突破前高。
净利增长:=FINANCE(43);扣非每股收益:=FINANCE(38)-(FINANCE(30)-FINANCE(54))/FINANCE(1);
收入增长:=FINANCE(44);负债率:=FINANCE(9);
净资产收益率:=FINANCE(29)/FINANCE(19)*100;
DRAWTEXT_FIX(C>0,0.05,0,0,GNBLOCK),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0,0,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(C>0,0.0,0.05,0,'净利增长----收入增长-:'),COLORWHITE;
DRAWNUMBER_FIX(C>0,0,0.1,0,净利增长),COLORWHITE;
DRAWNUMBER_FIX(C>0,0.05,0.1,0,收入增长),COLORWHITE;
DRAWTEXT_FIX(C>0,0.1,0.05,0,'负债率----净资产收益率:'),COLORWHITE;
DRAWNUMBER_FIX(C>0,0.1,0.1,0,负债率),COLORWHITE;
DRAWNUMBER_FIX(C>0,0.15,0.1,0,净资产收益率),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.15,0,'扣非收益:'),COLORWHITE;
DRAWNUMBER_FIX(C>0,0.05,0.15,0,扣非每股收益),COLORWHITE;
{核心K线}
核心K线:=V/REF(V,1)>=1.91 AND C>REF(C,1) AND C>O;
TT:=V=HHV(V,21);
BBL:=核心K线 AND TT;
BL:=FILTER(BBL,2);
K1:=SUMBARS(BL,1);
STICKLINE(K1,REFV(C,K1-1),REFV(C,K1-1),1,0),COLORYELLOW;
STICKLINE(K1,REFV(L,K1-1),REFV(L,K1-1),1,0),COLORCYAN;
{核心K线}
STICKLINE(BL,OPEN,CLOSE,2,0)COLOR0035FF;
STICKLINE(BL,OPEN,CLOSE,1.8,0)COLOR0064FF;
STICKLINE(BL,OPEN,CLOSE,1.3,0)COLOR0093FF;
STICKLINE(BL,OPEN,CLOSE,0.8,0)COLOR00C2FF;
STICKLINE(BL,OPEN,CLOSE,0.3,0)COLOR00FFFF;
止损:=REF(C,1)>REFV(L,K1-1) AND C<REFV(L,K1-1),COLORGREEN,NODRAW;
STICKLINE(止损,O,C,2,0),COLOR005500;
STICKLINE(止损,O,C,2.8,0),COLOR007700;
STICKLINE(止损,O,C,2.4,0),COLOR009900;
STICKLINE(止损,O,C,2.0,0),COLOR00AA00;
STICKLINE(止损,O,C,1.6.5,0),COLOR00BB00;
STICKLINE(止损,O,C,1.2,0),COLOR00CC00;
STICKLINE(止损,O,C,1.0,0),COLOR00DD00;
STICKLINE(止损,O,C,0.6,0),COLOR00EE00;
STICKLINE(止损,O,C,0.2,0),COLOR00FF00;
STICKLINE(止损,H,L,0,0),COLOR00FF00;
{一买:=BL,NODRAW;
DRAWTEXT(一买,L,'↖一买'),COLORFF00FF;
二买:=CROSS(C,REFV(C,K1-1)),NODRAW;
DRAWTEXT(二买,REFV(C,K1-1),'↖二买'),COLORFF00FF;
DRAWTEXT(止损,H,'止损'),COLORGREEN;}
{短线关键参考均线显示}
强势线:IF(PERIOD=5 ,EMA(H,N),EMA(H,10)),COLORYELLOW,POINTDOT;
底线:IF(PERIOD=5 ,EMA(L,N),EMA(L,10)),COLORYELLOW,,POINTDOT;
DRAWTEXT_FIX( C>=底线,0.08,0.15,0,'秘诀:建仓宜找线上阴,持股可追突破阳!进退有据,保本第一!!!'),COLORYELLOW;
IF(底线<REF(底线,1),底线,DRAWNULL),COLORGREEN,,POINTDOT;
IF(强势线<REF(强势线,1),强势线,DRAWNULL),COLORGREEN,POINTDOT;
{黄买蓝卖核心指标+支撑区间划线}
WVAR1:=C>REF(C,1)AND C>REF(C,2);
WVAR2:=REF(WVAR1,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR3:=REF(WVAR2,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR4:=REF(WVAR3,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR5:=REF(WVAR4,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR6:=REF(WVAR5,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR7:=REF(WVAR6,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR8:=REF(WVAR7,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR9:=REF(WVAR8,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVARA:=REF(WVAR9,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVARB:=REF(WVARA,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVARC:=REF(WVARB,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVARD:=C<REF(C,1)AND C<REF(C,2);
WVARE:=REF(WVARD,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVARF:=REF(WVARE,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR10:=REF(WVARF,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR11:=REF(WVAR10,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR12:=REF(WVAR11,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR13:=REF(WVAR12,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR14:=REF(WVAR13,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR15:=REF(WVAR14,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR16:=REF(WVAR15,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR17:=REF(WVAR16,1)AND C<=REF(C,1)AND C>=REF(C,2);
WVAR18:=REF(WVAR17,1)AND C>=REF(C,1)AND C<=REF(C,2);
WVAR19:=REF(WVARD OR WVARE OR WVARF OR WVAR10 OR WVAR11 OR WVAR12 OR WVAR13 OR WVAR14 OR WVAR15 OR WVAR16 OR WVAR17 OR WVAR18,1) AND WVAR1;
WVAR1A:=REF(WVAR1 OR WVAR2 OR WVAR3 OR WVAR4 OR WVAR5 OR WVAR6 OR WVAR7 OR WVAR8 OR WVAR9 OR WVARA OR WVARB OR WVARC,1) AND WVARD;
BTSTS:=BARSLAST(WVAR19);
红:=WVAR1 OR WVAR2 OR WVAR3 OR WVAR4 OR WVAR5 OR WVAR6 OR WVAR7 OR
WVAR8 OR WVAR9 OR WVARA OR WVARB OR WVARC;
{STICKLINE(C>=EMAN AND WVAR19 AND L>=REF(C,1) ,REF(C,1),REF(C,2),2.1,0),COLORYELLOW;
STICKLINE(C>=EMAN AND WVAR19 AND L<REF(C,1) ,L,REF(C,1),2.1,0),COLORYELLOW;
STICKLINE(C>=EMAN AND WVAR19 AND L<REF(C,1) AND C/REF(C,1)>1.045 ,L,REF(H,1),2.1,0),COLORYELLOW;}
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
STICKLINE( VOL>=REF(VOL,1) AND WVAR19 AND L>=REF(C,1) ,REF(C,1),REF(C,2),2.1,0),COLORYELLOW;
STICKLINE( VOL>=REF(VOL,1) AND WVAR19 AND L<REF(C,1) ,L,REF(C,1),2.1,0),COLORYELLOW;
STICKLINE( VOL>=REF(VOL,1) AND WVAR19 AND L<REF(C,1) AND C/REF(C,1)>1.045 ,L,REF(H,1),2.1,0),COLORYELLOW;
{DRAWTEXT(WVAR19,H,'√'),COLORYELLOW;}
FZTS:=BARSLAST(WVAR19);
STICKLINE(ISLASTBAR ,IF(REF(L,FZTS+1)<REF(L,FZTS+2),REF(L,FZTS+1),REF(L,FZTS+2)),IF(REF(L,FZTS+1)<REF(L,FZTS+2),REF(L,FZTS+1),REF(L,FZTS+2)),100,0),LINETHICK4,COLORFF00FF;
STICKLINE(ISLASTBAR ,IF(REF(L,FZTS+1)<REF(L,FZTS+2),REF(H,FZTS+1),REF(H,FZTS+2)),IF(REF(L,FZTS+1)<REF(L,FZTS+2),REF(H,FZTS+1),REF(H,FZTS+2)),100,0),LINETHICK4,COLORFF00FF;
ZL:=IF(REF(L,FZTS+1)<REF(L,FZTS+2),REF(L,FZTS+1),REF(L,FZTS+2));
ZH:=IF(REF(H,FZTS)<REF(H,FZTS+1),REF(H,FZTS+1),REF(H,FZTS));
DRAWICON((CROSS(C,ZH) AND VOL=HHV(VOL,3) AND C>=底线 OR CROSS(C,底线) OR CROSS(C,强势线)) AND VOL>=MAVOL1 AND L>REF(L,1)AND O<=C,ZH,26),COLORYELLOW;
{DRAWTEXT(CROSS(C,ZH)AND VOL=HHV(VOL,3) AND C>=底线 ,H,'追'),COLORYELLOW;}
DRAWTEXT(CROSS(ZH,C) AND C<REF(C,1) AND C<底线,L,'空'),COLORYELLOW;
DRAWTEXT(CROSS(ZH,C) AND C<REF(C,2) AND C>=底线,REF(C,2),'抛'),COLORGREEN;
DRAWTEXT(H>REF(H,1) AND C<REF(C,1) AND C>=底线 AND C<REF(O,1),H,'抛'),COLORYELLOW;
DRAWTEXT(H>REF(H,1) AND C>REF(C,1) AND L<REF(L,1) AND C>=底线 AND C<O,H,'抛'),COLORGREEN;
DRAWTEXT(CROSS(ZH,C) AND C>=REF(C,2) AND C>=底线 AND C<REF(C,1),H,'洗'),COLORYELLOW;
DRAWTEXT(CROSS(C,ZH) AND C>REF(H,1) AND L>REF(L,1) AND O<=C,REF(H,1),'↑'),COLORYELLOW;
{DRAWTEXT(CROSS(C,强势线) AND C>=底线,L,'加'),COLORYELLOW;}
DRAWTEXT(L<=底线 AND C>=底线 OR L<=强势线 AND C>=强势线,L,'↑'),COLORYELLOW;
DRAWTEXT(CROSS(C,底线) AND H>REF(C,1),L,'↑'),COLORYELLOW;
DRAWTEXT(L<底线 AND H>REF(C,1) AND C>=底线,L,'↑'),COLORYELLOW;
{DRAWTEXT((H>强势线 AND CROSS(强势线,C) AND C<REF(L,1)),L,'减'),COLORGREEN;
DRAWTEXT( CROSS(强势线,H) AND C<REF(C,1),H,'减'),COLORGREEN;
DRAWTEXT(CROSS(ZH,C),L,'割'),COLORGREEN;}
DRAWLINE(CROSS(C,ZH),ZH,REF(CROSS(C,ZH),1),REF(ZH,1),1),COLORYELLOW;
{DRAWTEXT(CROSS(ZL,C)AND C<底线,L,'割'),COLORYELLOW;}
STICKLINE(WVAR1A AND H<=REF(H,1),REF(C,1),REF(H,1),2.1,0)COLORBLUE;
STICKLINE(WVAR1A AND H>REF(H,1) ,H,REF(C,1),2.1,0)COLORBLUE;
{DRAWTEXT(WVAR1A,H,'×'),COLORBLUE;}
{神奇九转指标+延伸浪显示}
A11:=C>=REF(C,4);
NT:=BARSLASTCOUNT(A11);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT( AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF;
DRAWTEXT( NT=9,H*1.02,'9'),COLORGREEN;
DRAWTEXT( NT>9,H*1.02,'+'),COLORYELLOW;
B11:=C<=REF(C,4);
NT0:=BARSLASTCOUNT(B11);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT( AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF;
DRAWTEXT( NT0=9,L*0.98,'9'),COLORGREEN;
DRAWTEXT( NT0=9,L*0.98,'9'),COLORGREEN;
DRAWTEXT( NT0>9,L*0.98,'+'),COLORYELLOW;
{波段压力位和支撑位划线+突破提示}
P1:=5;
PH:=TROUGHBARS(2,P1,1);
LL:=HHV(H,PH);
TJ1:= LL=HIGH AND LL<REF(LL,1);{//=1}
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,P1,1)=1 AND TS>=PH;
警告灯:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORYELLOW;
{//最后1根参考K线,用信号灯表示}
PL:=BARSLAST(TJ);
支撑:=IF(PERIOD>=5 AND BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;
压力:=IF(PERIOD>=5 AND BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;
DRAWICON(CROSS(C,REF(HIGH,PL)),L,1);
{DRAWTEXT(CROSS(C,REF(HIGH,PL)),REF(HIGH,PL),'突');}
DRAWTEXT(CROSS(REF(HIGH,PL),C),H,'抛'),COLORGREEN;
DRAWTEXT(CROSS(H,REF(HIGH,PL)) AND C<REF(HIGH,PL),H,'抛'),COLORGREEN;
STICKLINE(CURRBARSCOUNT AND C>=REF(C,1),C,C,4,1),COLORRED;
STICKLINE(CURRBARSCOUNT AND C<REF(C,1),C,C,4,1),COLORGREEN;
{获利盘比例和当日量比显示,获利比例越大抛压越小,量比大于1.5比较好}
量比: DYNAINFO(17),NODRAW;获利:WINNER(C)*100,,NODRAW;
黄买卖模型副图
NOTEXT顶部标线:180,COLORBROWN,LINETHICK3;
NOTEXT底部标线:(-40),COLORBROWN,LINETHICK2;
X_1:="SH999999$ADVANCE"+"SZ399001$ADVANCE";
X_2:="SH999999$DECLINE"+"SZ399001$DECLINE";
X_3:=X_1/(X_2+X_1)*100;
X_4:="880006$CLOSE";
X_5:="880006$OPEN";
X_6:=X_4/(X_4+X_5)*100;
X_7:=X_6>=90;
X_8:=X_6<90 AND X_6>=80;
X_9:=X_6>=20 AND X_6<80;
X_10:=X_6<20;
STICKLINE(X_8,153,155,3,0),COLORRED;
STICKLINE(X_7,153,155,3,0),COLORMAGENTA;
STICKLINE(X_9,153,155,3,0),COLORWHITE;
STICKLINE(X_10,153,155,3,0),COLORGREEN;
X_11:=X_3>=80;
X_12:=X_3<80 AND X_3>=50;
X_13:=X_3<50 AND X_3>=20;
X_14:=X_3<=20;
STICKLINE(X_11,148,150,3,0),COLORMAGENTA;
STICKLINE(X_12,148,150,3,0),COLORRED;
STICKLINE(X_13,148,150,3,0),COLORWHITE;
STICKLINE(X_14,148,150,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,175,18),COLORGREEN;
DRAWTEXT(ISLASTBAR,155,19),COLORGREEN;
X_15:=(X_7 OR X_8)+(X_11 OR X_12)>=2;
X_16:=X_8 AND X_13 OR (X_12 AND X_9);
X_17:=(X_10 OR X_9)+(X_14 OR X_13)>=2;
DRAWTEXT(X_15,170,20),COLORLIRED;
DRAWTEXT(X_17,170,21),COLOR80FF00;
X_18:=LLV(LOW,21);
X_19:=HHV(HIGH,21);
X_20:=EMA((CLOSE-X_18)/(X_19-X_18)*100,6);
X_21:=EMA(0.667*REF(X_20,1)+0.333*X_20,2);
X_22:=LLV(LOW,55);
X_23:=HHV(HIGH,34);
X_24:=EMA((CLOSE-X_22)/(X_23-X_22)*100,3);
X_25:=(X_20+X_24)/2;
X_26:=EMA(0.667*REF(X_24,1)+0.333*X_20,2);
X_27:=EMA(X_25,5);
X_28:=EMA(0.667*REF(X_27,1)+0.333*X_27,2);
X_29:=LONGCROSS(X_21,X_20,0.1);
X_30:=LONGCROSS(X_20,X_21,0.1);
X_31:=X_20>X_21;
STICKLINE(X_20<X_21,99,100,3,0),COLORGREEN;
STICKLINE(X_20>X_21,99,100,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,100,22),COLORGREEN;
X_32:=(MA(CLOSE,13)+MA(CLOSE,20))/2;
X_33:=(MA(CLOSE,80)+MA(CLOSE,100))/2;
X_34:=X_33+2*STD(CLOSE,80);
X_35:=(X_32+X_34)/2;
STICKLINE(CLOSE>=X_35,84,85,3,0),COLORMAGENTA;
STICKLINE(CLOSE<X_35,84,85,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,85,23),COLORGREEN;
X_36:=CLOSE>=X_35;
X_37:=25;
X_38:=6;
X_39:=6;
X_40:=(1+X_38/100)*MA(CLOSE,X_37);
X_41:=(1-X_39/100)*MA(CLOSE,X_37);
X_42:=(X_40+X_41)/2;
X_43:=CLOSE>=X_40;
STICKLINE(CLOSE>=X_40,69,70,3,0),COLORMAGENTA;
STICKLINE(CLOSE<X_40 AND CLOSE>=X_42,69,70,3,0),COLORRED;
STICKLINE(CLOSE<X_42,69,70,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,70,24),COLORGREEN;
X_44:=X_43;
X_45:=EMA(EMA(CLOSE,13),13);
X_46:=(X_45-REF(X_45,1))/REF(X_45,1)*1500;
X_47:=X_46>REF(X_46,1) AND X_46>0;
X_48:=100*WINNER(CLOSE*0.95);
X_49:=X_46<REF(X_46,1) AND X_46>0;
X_50:=X_48>50 AND COST(85)<CLOSE AND X_46>0;
X_51:=BARSLAST(CROSS(X_46,50));
STICKLINE(X_47,54,55,3,0),COLORRED;
STICKLINE(X_49,54,55,3,0),COLORGREEN;
STICKLINE(X_50,54,55,3,0),COLORMAGENTA;
STICKLINE(NOT(X_49) AND NOT(X_47) AND NOT(X_50),54,55,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,55,25),COLORGREEN;
X_52:=X_50;
X_53:=(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35))*100-35;
X_54:=SMA(X_53,35,1)+100;
X_55:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
X_56:=SMA(X_55,3,1);
X_57:=SMA(X_56,3,1)+100;
X_58:=X_57-X_54;
X_59:=(X_58-1)*2.5;
STICKLINE(X_59>=REF(X_59,1),38.5,40,3,0),COLORRED;
STICKLINE(X_59<REF(X_59,1),38.5,40,3,0),COLORGREEN;
STICKLINE(X_59>REF(X_59,1) AND X_59>100,38.5,40,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,40,26),COLORGREEN;
X_60:=X_59>REF(X_59,1) AND X_59>100;
X_61:=(3*CLOSE+OPEN+HIGH+LOW)/6;
X_62:=EMA(X_61,12);
X_63:=EMA(X_61,36);
X_64:=EMA(X_61,108);
X_65:=EMA(X_61,250);
X_66:=(EMA(X_61,12)-REF(EMA(X_61,36),1))/REF(EMA(X_61,36),1)*150+50;
STICKLINE(X_66<50,24,25,3,0),COLORGREEN;
STICKLINE(X_66>=50 AND X_66<53,24,25,3,0),COLORRED;
STICKLINE(X_66>=53,24,25,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,25,27),COLORGREEN;
X_67:=X_66>=53;
X_68:=AMOUNT/VOL/100;
X_69:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
X_70:=SUM(AMOUNT,40)/X_68/100;
X_71:=SUM(AMOUNT,80)/X_68/100;
X_72:=DMA(X_69,VOL/X_70);
X_73:=DMA(X_69,VOL/X_71);
X_74:=(CLOSE-X_72)/X_72*100+3;
X_75:=(CLOSE-X_73)/X_73*100+3;
X_76:=MAX(X_74,X_75);
X_77:=EMA(X_76,3);
STICKLINE(X_77>=0 AND X_77<5,9,10,3,0),COLORRED;
STICKLINE(X_77>=5,9,10,3,0),COLORMAGENTA;
STICKLINE(X_77<0,9,10,3,0),COLOR00FF80;
DRAWTEXT(ISLASTBAR,10,28),COLORGREEN;
X_78:=X_77>=5;
X_79:=42;
X_80:=100*(HHV(HIGH,X_79)-CLOSE)/(HHV(HIGH,X_79)-LLV(LOW,X_79));
X_81:=X_80<=20;
STICKLINE(X_80>20,(-6),(-5),3,0),COLORGREEN;
STICKLINE(X_80<=20,(-6),(-5),3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,(-5),29),COLORGREEN;
X_82:=X_81;
X_83:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_84:=(X_83-LLV(X_83,27))/(HHV(X_83,27)-LLV(X_83,27))*4*25;
X_85:=(X_83-LLV(X_83,9))/(HHV(X_83,9)-LLV(X_83,9))*4*25;
X_86:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
X_87:=SMA(X_86,3,1);
X_88:=SMA(X_87,3,1);
X_89:=INTPART(X_87);
X_90:=INTPART(X_88);
X_91:=X_89+X_90;
X_92:=X_91-REF(X_91,1);
X_93:=EMA(WINNER(CLOSE)*70,3);
X_94:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_95:=X_94/(X_93+X_94)*100;
X_96:=X_93/(X_93+X_94)*100;
X_97:=EMA(X_96,55);
X_98:=HHV((HIGH+LOW)/2,120);
X_99:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
X_100:=MA(CLOSE,27);
X_101:=VOL/FINANCE(7)*100;
X_102:=TMA(X_101,1-X_101,1);
X_103:=DMA((CLOSE+OPEN)/2,X_101/TMA(X_101,1-X_101,1));
X_104:=BARSLAST(CLOSE>X_103*POW(1.1,0.9));
X_105:=BARSLAST(CLOSE<X_103*POW(1.1,(-0.9)));
X_106:=CROSS(X_104,X_105) OR CROSS(X_105,X_104) OR BARSSINCE(X_104+1)=0 OR BARSSINCE(X_105+1)=0 OR BARSCOUNT(CLOSE)=0;
X_107:=REF(X_103,BARSLAST(X_106));
X_108:=LN(CLOSE/X_107)/LN(1.1)*10;
X_109:=IF(X_108>0,BARSLAST(X_108<0 OR BARSCOUNT(CLOSE)=0),(-1)*BARSLAST(X_108>0 OR BARSCOUNT(CLOSE)=0));
X_110:=WINNER(CLOSE/1.2)*100;
X_111:=WINNER(CLOSE/1.25)*100;
X_112:=WINNER(CLOSE/1.35)*100;
X_113:=30;
X_114:=EMA(EMA(CLOSE,1),5);
X_115:=EMA(HHV(X_114,5),1);
X_116:=EMA(HHV(X_115,21),1);
X_117:=EMA(HHV(X_116,21),2);
X_118:=EMA(HHV(X_117,21),3);
X_119:=EMA(HHV(X_118,21),4);
X_120:=EMA(HHV(X_119,21),5);
X_121:=CLOSE;
X_122:=EMA(HHV(X_120,21),6);
X_123:=(HIGH+OPEN+LOW+3*CLOSE)/6;
X_124:=EMA(100-100/(1+SUM(IF(X_123>REF(X_123,1),X_123*VOL,0),14)/SUM(IF(X_123<REF(X_123,1),X_123*VOL,0),14)),5);
X_125:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
X_126:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
X_127:=SMA(X_126,2,1);
X_128:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
X_129:=IF(CLOSE>200,CLOSE,DMA(X_128,VOL/CAPITAL))*1.1;
X_130:=SMA(X_127,2,1);
X_131:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
X_132:=SMA(X_131,3,1);
X_133:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_134:=SMA(X_133,5,1)-8;
X_135:=X_134-X_132;
X_136:=IF(X_130>60 AND X_110>30 AND X_124>50 AND X_121>X_122 AND X_135>50,(-40),0);
X_137:=VOL;
X_138:=MA(X_137,5);
X_139:=MA(X_137,135);
X_140:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
X_141:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_140),0);
X_142:=(X_141-MA(X_141,20))/10000;
X_143:=(X_142-REF(X_142,1))/REF(X_142,1)*100;
X_144:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_145:=REF(EMA(X_144,3),1);
X_146:=MA((CLOSE-X_145)*10,2)*0.1;
X_147:=VOL*100/CAPITAL;
X_148:=MA(X_147,4);
X_149:=MA(X_147,9);
X_150:=MA(X_147,17);
X_151:=MA(X_147,34);
X_152:=(X_148+X_149+X_150+X_151)/4;
X_153:=VOL;
X_154:=(X_148-X_152)*30;
X_155:=(X_149-X_152)*30;
X_156:=X_150-X_152;
X_157:=X_151-X_152;
X_158:=REFDATE(HHV(X_157,108),DATE)*1.02-REFDATE(LLV(X_156,108),DATE)*20;
X_159:=(X_158+REFDATE(HHV(X_156,108),DATE))*1.02-REFDATE(LLV(X_154,108)*20,DATE);
X_160:=(X_159+REFDATE(HHV(X_155,108),DATE))*1.02-REFDATE(LLV(X_155,108)*20,DATE);
X_161:=(X_160+REFDATE(HHV(X_154,108),DATE))*1.02-REFDATE(LLV(X_146,108),DATE);
X_162:=X_108>0 AND X_84>50 AND X_99<X_122;
X_163:=X_99>X_100 AND X_94<X_93 AND (X_84>50 OR X_84>REF(X_84,1));
X_164:=X_162 OR X_163;
X_165:=NOT(X_162) AND NOT(X_163);
STICKLINE(X_162,(-21),(-20),3,0),COLORRED;
STICKLINE(X_163,(-21),(-20),3,0),COLORMAGENTA;
STICKLINE(X_165,(-21),(-20),3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,(-20),30),COLORGREEN;
X_166:=X_163;
X_167:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166>=5 AND NOT(NOT(X_31)+X_49+NOT(X_82)+X_165>=3 AND CLOSE/MA(CLOSE,60)>1.8);
X_168:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166>=9;
X_169:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166=8;
DRAWICON(X_167,118,'1111111'),COLORMAGENTA;
DRAWICON(X_168,140,9),COLORMAGENTA;
DRAWICON(X_169,140,15),COLORMAGENTA;
黄买蓝卖短线副图 后面参数是60
80,COLORBLACK;
45,COLORYELLOW;
30,COLORLIRED;
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
SSTS:=BARSSINCE(C>0);
N4:=IF(SSTS<N1,SSTS,N1);
MAV200:=EMA(VOL,N4);
QD1:=IF(MAVOL1>=MAVOL2,10,0);
{STICKLINE(MAVOL1>=MAVOL2,66,70,3,0),COLORYELLOW;
STICKLINE (MAVOL1<MAVOL2,66,70,3,1),COLOR333333;
STICKLINE(VOLUME>=2*REF(VOLUME,1) AND C>=REF(C,1),60,95,1,0),COLORYELLOW;
STICKLINE(VOLUME>=2*REF(VOLUME,1) AND C<REF(C,1),60,95,1,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=W3,68,'★量'),COLORFFFFFF;}
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF
(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
A10:=资金流量>0;
{STICKLINE(资金流量>=0,72,76,3,0),COLORLIRED;
STICKLINE (资金流量<0,72,76,3,1),COLOR333333;
DRAWTEXT(CURRBARSCOUNT=W3,74,'★流'),COLORFFFFFF;}
QD2:=IF(资金流量>=0,10,0);
DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA60:=EMA(DIF60,9/2);
{STICKLINE(DIF60>=DEA60,54,58,3,0),COLORYELLOW;
STICKLINE(DIF60<DEA60,54,58,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W3,56,'★60M'),COLORFFFFFF;}
QD3:=IF(DIF60>=DEA60,10,0);
RSV60:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
K60:=SMA(RSV60,3,1);
D60:=SMA(K60,3,1);
{STICKLINE(K60>= D60,60,64,3,0),COLORRED;
STICKLINE(K60 < D60,60,64,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W2,62,'★60K '),COLORWHITE;}
QD4:=IF(K60>= D60,10,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
{STICKLINE(DIF>=DEA,48,52,3,0),COLORYELLOW;
STICKLINE(DIF<DEA,48,52,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W3,50,'★日M'),COLORFFFFFF;}
QD5:=IF(DIF>=DEA,10,0);
周MD:=MACD.DIF#WEEK;
周MA:=MACD.DEA#WEEK;
{STICKLINE(周MD>=周MA,30,34,3,0),COLORYELLOW;
STICKLINE(周MD<周MA,30,34,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W3,32,'★周M'),COLORFFFFFF;}
QD6:=IF(周MD>=周MA,10,0);
月MD:=MACD.DIF#MONTH;
月MA:=MACD.DEA#MONTH;
{STICKLINE(月MD>=月MA,12,16,3,0),COLORYELLOW;
STICKLINE(月MD<月MA,12,16,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W3,14,'★月M'),COLORFFFFFF;}
QD7:=IF(月MD>=月MA,10,0);
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{STICKLINE(K>=D,42,46,3,0),COLORLIRED;
STICKLINE(K<D,42,46,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W2,44,'★日K'),COLORFFFFFF;}
QD8:=IF(K>=D,10,0);
周K:=MA("KDJ.K#WEEK"(9,3,3) ,5);
周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);
周J:=MA("KDJ.J#WEEK"(9,3,3) ,5);
{STICKLINE(周K>=周D,24,28,3,0),COLORLIRED;
STICKLINE(周K<周D,24,28,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W2,26,'★周K'),COLORFFFFFF;}
QD9:=IF(周K>=周D,10,0);
{STICKLINE(周K>=REF(周K,1),-6,-2,3,0),COLORYELLOW;
STICKLINE (周K<REF(周K,1),-6,-2,3,0),COLOR333333;
DRAWTEXT(CURRBARSCOUNT=W2,-4,'★周K拐'),COLORFFFFFF;}
QD10:=IF(周K>=周D,10,0);
{STICKLINE(周J>=REF(周J,1),-12,-8,3,0),COLORRED;
STICKLINE(周J<REF(周J,1),-12,-8,3,0),COLOR333333;
DRAWTEXT(CURRBARSCOUNT=W2,-10,'★周J拐'),COLORWHITE;}
QD11:=IF(周J>=REF(周J,1),10,0);
月K:="KDJ.K#MONTH" ;
月D:="KDJ.D#MONTH" ;
{STICKLINE(月K>=月D,6,10,3,0),COLORLIRED;
STICKLINE(月K<月D,6,10,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W2,8,'★月K'),COLORWHITE;}
QD12:=IF(月K>=月D,10,0);
{RSI日}
日RSI1:="RSI.RSI1#DAY"(9);
日RSI2:="RSI.RSI2#DAY"(9);
{STICKLINE(日RSI1>=日RSI2,36,40,3,0),COLORFF00FF;
STICKLINE(日RSI1<日RSI2,36,40,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W,38,'★日R'),COLORFFFFFF;}
QD13:=IF(日RSI1>=日RSI2,10,0);
{RSI周}
周RSI1:="RSI.RSI1#WEEK"(9);
周RSI2:="RSI.RSI2#WEEK"(9);
{STICKLINE(周RSI1>=周RSI2,18,22,3,0),COLORFF00FF;
STICKLINE(周RSI1<周RSI2,18,22,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W,20,'★周R'),COLORFFFFFF;}
QD14:=IF(周RSI1>=周RSI2,10,0);
{RSI月}
月RSI1:="RSI.RSI1#MONTH"(9);
月RSI2:="RSI.RSI1#MONTH"(9);
{STICKLINE(月RSI1>=月RSI2,0,4,3,0),COLORFF00FF;
STICKLINE(月RSI1<月RSI2,0,4,3,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=W,2,'★月R'),COLORFFFFFF;}
QD15:=IF(月RSI1>=月RSI2,10,0);
XH1:=IF(DIF60>=DEA60,1,0);
XH2:=IF(K60>= D60,1,0);
XH3:=IF(DIF>=DEA,1,0);
XH4:=IF(周MD>=周MA,1,0);
XH5:=IF(月MD>=月MA,1,0);
XH6:=IF(K>=D,1,0);
XH7:=IF(周K>=REF(周K,1),1,0);
XH8:=IF(周J>=REF(周J,1),1,0);
XH9:=IF(月K>=月D,1,0);
XH10:=IF(MAVOL1>MAVOL2,1,0);
XH11:=IF(资金流量>0,1,0);
XH12:=IF(日RSI1>=日RSI2,1,0);
XH13:=IF(周RSI1>=周RSI2,1,0);
XH14:=IF(月RSI1>=月RSI2,1,0);
XH15:=IF(周K>=周D,1,0);
ZTB:=COUNT(C/REF(C,1)>=1.09,5)>=1;
XHHJ:XH1+XH2+XH3+XH4+XH6+XH7+XH8+XH5+XH9+XH10+XH11+XH12+XH13+XH14+XH15,NODRAW;
{IF( XHHJ<8,XHHJ*10,DRAWNULL),LINETHICK2,COLORGREEN;
IF(XHHJ>=8 AND XHHJ<10,XHHJ*10,DRAWNULL),LINETHICK2,COLORLIRED;
IF(XHHJ>=10,XHHJ*10,DRAWNULL),LINETHICK2,COLORYELLOW;
IF(XHHJ<REF(XHHJ,1) AND XHHJ>=10,XHHJ*10,DRAWNULL),LINETHICK2,COLORGREEN;}
55,COLORRED;
STICKLINE(XHHJ<8 ,0,XHHJ*3,2,0),COLORLIGREEN;
STICKLINE(XHHJ>=8 AND XHHJ<10,0,XHHJ*3,2,0),COLORLIRED;
STICKLINE(XHHJ>=10 ,0,XHHJ*3,2,0),COLORYELLOW;
STICKLINE(XHHJ=15 ,0,XHHJ*3,2,0),COLORRED;
{1指.能量线}
能量线:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3),LINETHICK0;
{2指.RSI}
RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK0;
{3指.KDJ}
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK0;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1,LINETHICK0;
{4指.W&R}
威廉WR:=(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))*100,LINETHICK0;
{5指.CCI}
TYP := (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
获利:WINNER(C)*100,COLORLIBLUE,LINETHICK2,NODRAW;
{IF(获利>=90,获利,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(获利>80 AND 获利<90,获利,DRAWNULL),COLORRED,LINETHICK2;
IF(获利>50 AND 获利<80,获利,DRAWNULL),COLORLIRED,LINETHICK2;}
获利分水岭:-30,COLORLIRED;
-20,COLORYELLOW;
STICKLINE(获利<=5,-50,-48,2,0),COLORBLUE;
STICKLINE(获利>=5 AND 获利<10,-50,-36,2,0),COLORLIBLUE;
STICKLINE(获利>=10 AND 获利<20,-50,-34,2,0),COLORLIGREEN;
STICKLINE(获利>=20 AND 获利<50,-50,-32,2,0),COLORWHITE;
STICKLINE(获利>=50 AND 获利<80,-50,-30,2,0),COLORLIRED;
STICKLINE(获利>=80 AND 获利<90,-50,-26,2,0),COLORRED;
STICKLINE(获利>=90 AND 获利<=100,-50,-20,2,0),COLORYELLOW;
XHHJ1:=XH2+XH6+XH9+XH15;
XHHJ2:=XH3+XH4+XH5+XH1;
XHHJ3:=XH12+XH13+XH14+XH2;
{XG1:=(XHHJ1=4) ;
XG2:=(XHHJ2= 4) ;
XG3:=(XHHJ3= 4) ;
DRAWTEXT(XG1,-6,'K'),COLORYELLOW;DRAWTEXT(XG2,-14,'M'),COLORYELLOW;DRAWTEXT(XG3,-22,'R'),COLORYELLOW;
}
{DRAWICON(XG2 AND CROSS(DIF60,DEA60),90,26);}
DRAWICON(CROSS(XHHJ1,3) OR CROSS(XHHJ2,3),65,23);
DRAWICON(周K>=REF(周K,1) AND DIF60>=DEA60,55,25);
LV00:=VOL<MAV200*1 ;
LV0:=VOL>=MAV200*1 AND VOL<MAV200*2;
LV1:=VOL>=MAV200*2 AND VOL<MAV200*3;
LV2:=VOL>=MAV200*3 AND VOL<MAV200*4;
LV3:=VOL>=MAV200*4 AND VOL<MAV200*5;
LV4:=VOL>=MAV200*5 AND VOL<MAV200*6;
LV5:=VOL>=MAV200*6 AND VOL<MAV200*7;
LV6:=VOL>=MAV200*7 AND VOL<MAV200*8;
LV7:=VOL>=MAV200*8 AND VOL<MAV200*9;
LV8:=VOL>=MAV200*9 AND VOL<MAV200*10;
LV9:=VOL>=MAV200*10;
DRAWTEXT(LV00,-4 ,'0'),COLORGREEN;
DRAWTEXT(LV0,-4 ,'1'),COLORWHITE;
DRAWTEXT(LV1,-4 ,'2'),COLORLIRED;
DRAWTEXT(LV2,-4 ,'3'),COLORLIRED;
DRAWTEXT(LV3,-4 ,'4'),COLORLIRED;
DRAWTEXT(LV4,-4 ,'5'),COLORLIRED;
DRAWTEXT(LV5,-4 ,'6'),COLORYELLOW;
DRAWTEXT(LV6,-4,'7'),COLORYELLOW;
DRAWTEXT(LV7,-4,'8'),COLORYELLOW;
DRAWTEXT(LV8,-4,'9'),COLORRED;
DRAWTEXT(LV9,-4,'10'),COLORRED;
{成交额倍数}
成交额:=AMOUNT,NODRAW;
{STICKLINE(成交额>=REF(成交额,1) AND C>=REF(C,1),成交额,0,2.5,0),COLORRED;
STICKLINE(成交额>=REF(成交额,1) AND C<REF(C,1),成交额,0,2.5,0),COLORLIRED;
STICKLINE(成交额<REF(成交额,1) AND C>=REF(C,1),成交额,0,2.5,0),COLORYELLOW;
STICKLINE(成交额<REF(成交额,1) AND C<REF(C,1),成交额,0,2.5,0),COLORGREEN;}
{MACJE1:EMA(成交额,N1);
MACJE2:EMA(成交额,N2);}
MACJE3:=EMA(成交额,N1),LINETHICK2,COLORYELLOW;
LE00:=成交额<MACJE3*1 ;
LE0:=成交额>=MACJE3*1 AND 成交额<MACJE3*2;
LE1:=成交额>=MACJE3*2 AND 成交额<MACJE3*3;
LE2:=成交额>=MACJE3*3 AND 成交额<MACJE3*4;
LE3:=成交额>=MACJE3*4 AND 成交额<MACJE3*5;
LE4:=成交额>=MACJE3*5 AND 成交额<MACJE3*6;
LE5:=成交额>=MACJE3*6 AND 成交额<MACJE3*7;
LE6:=成交额>=MACJE3*7 AND 成交额<MACJE3*8;
LE7:=成交额>=MACJE3*8 AND 成交额<MACJE3*9;
LE8:=成交额>=MACJE3*9 AND 成交额<MACJE3*10;
LE9:=成交额>=MACJE3*10;
DRAWTEXT(LE00,-10 ,'0'),COLORGREEN;
DRAWTEXT(LE0,-10 ,'1'),COLORWHITE;
DRAWTEXT(LE1,-10 ,'2'),COLORLIRED;
DRAWTEXT(LE2,-10 ,'3'),COLORLIRED;
DRAWTEXT(LE3,-10 ,'4'),COLORLIRED;
DRAWTEXT(LE4,-10 ,'5'),COLORLIRED;
DRAWTEXT(LE5,-10 ,'6'),COLORYELLOW;
DRAWTEXT(LE6,-10,'7'),COLORYELLOW;
DRAWTEXT(LE7,-10,'8'),COLORYELLOW;
DRAWTEXT(LE8,-10,'9'),COLORRED;
DRAWTEXT(LE9,-10,'10'),COLORRED;
{换手率变化趋势}
换手:DYNAINFO(37)*100,NODRAW;
换手200:SUM(换手,200),NODRAW ;
换手60:=SUM(换手,TS) ;
YXTS:=BARSSINCE(换手60);
均换手6:=IF(YXTS>=1,EMA(换手,TS),0),LINETHICK2;
换手3:=3;
HS00:=换手<换手3*1 ;
HS0:=换手>=换手3*1 AND 换手<换手3*2;
HS1:=换手>=换手3*2 AND 换手<换手3*3;
HS2:=换手>=换手3*3 AND 换手<换手3*4;
HS3:=换手>=换手3*4 AND 换手<换手3*5;
HS4:=换手>=换手3*5 AND 换手<换手3*6;
HS5:=换手>=换手3*6 AND 换手<换手3*7;
HS6:=换手>=换手3*7 AND 换手<换手3*8;
HS7:=换手>=换手3*8 AND 换手<换手3*9;
HS8:=换手>=换手3*9 AND 换手<换手3*10;
HS9:=换手>=换手3*10;
DRAWTEXT(HS00,-16 ,'0'),COLORGREEN;
DRAWTEXT(HS0,-16 ,'1'),COLORWHITE;
DRAWTEXT(HS1,-16 ,'2'),COLORLIRED;
DRAWTEXT(HS2,-16 ,'3'),COLORLIRED;
DRAWTEXT(HS3,-16 ,'4'),COLORYELLOW;
DRAWTEXT(HS4,-16 ,'5'),COLORYELLOW;
DRAWTEXT(HS5,-16 ,'6'),COLORRED;
DRAWTEXT(HS6,-16,'7'),COLORRED;
DRAWTEXT(HS7,-16,'8'),COLORRED;
DRAWTEXT(HS8,-16,'9'),COLORRED;
DRAWTEXT(HS9,-16,'10'),COLORRED;
PL3:=BARSLASTCOUNT(LV00)>=3 OR BARSLASTCOUNT(LV0)>=3 OR BARSLASTCOUNT(LV1)>=3 OR BARSLASTCOUNT(LV2)>=3 OR BARSLASTCOUNT(LV3)>=3 OR BARSLASTCOUNT(LV4)>=3 OR BARSLASTCOUNT(LV5)>=3 OR BARSLASTCOUNT(LV6)>=3 OR BARSLASTCOUNT(LV7)>=3 OR BARSLASTCOUNT(LV8)>=3 OR BARSLASTCOUNT(LV9)>=3;
DRAWICON(PL3>=1 AND C<HHV(C,3),65,27);
DRAWICON(PL3>=1 AND C=HHV(C,3),65,26);
今日量比: DYNAINFO(17),NODRAW;
均量比:IF(K=1,AMOUNT/VOL/IF(CAPITAL,100,10000),AMOUNT/REF(MA(AMOUNT,5),1)),NODRAW,COLORYELLOW;
{DRAWTEXT(量比<1,70,'缩'),COLORYELLOW;
DRAWTEXT(量比>=1 AND 量比<1.5,70,'平'),COLORYELLOW;
DRAWTEXT(量比>=1.5 AND 量比<=2.5,70,'温'),COLORYELLOW;
DRAWTEXT(量比>=2.5 AND 量比<=5,70,'放'),COLORYELLOW;
DRAWTEXT(量比>=5 AND 量比<=10,70,'剧'),COLORYELLOW;
DRAWTEXT(量比>=10,70,'极'),COLORYELLOW;}
LB0:=AMOUNT/REF(MA(AMOUNT,5),1)<1;
LB1:=AMOUNT/REF(MA(AMOUNT,5),1)>=1 AND AMOUNT/REF(MA(AMOUNT,5),1)<2;
LB2:=AMOUNT/REF(MA(AMOUNT,5),1)>=2 AND AMOUNT/REF(MA(AMOUNT,5),1)<3;
LB3:=AMOUNT/REF(MA(AMOUNT,5),1)>=3 AND AMOUNT/REF(MA(AMOUNT,5),1)<4;
LB4:=AMOUNT/REF(MA(AMOUNT,5),1)>=4 AND AMOUNT/REF(MA(AMOUNT,5),1)<5;
LB5:=AMOUNT/REF(MA(AMOUNT,5),1)>=5 AND AMOUNT/REF(MA(AMOUNT,5),1)<6;
LB6:=AMOUNT/REF(MA(AMOUNT,5),1)>=6 AND AMOUNT/REF(MA(AMOUNT,5),1)<7;
LB7:=AMOUNT/REF(MA(AMOUNT,5),1)>=7 AND AMOUNT/REF(MA(AMOUNT,5),1)<8;
LB8:=AMOUNT/REF(MA(AMOUNT,5),1)>=8 AND AMOUNT/REF(MA(AMOUNT,5),1)<9;
LB9:=AMOUNT/REF(MA(AMOUNT,5),1)>=9 AND AMOUNT/REF(MA(AMOUNT,5),1)<10;
LB10:=AMOUNT/REF(MA(AMOUNT,5),1)>=10 ;
DRAWTEXT(LB0,70,'0'),COLORGREEN;
DRAWTEXT(LB1,70,'1'),COLORWHITE;
DRAWTEXT(LB2,70,'2'),COLORLIRED;
DRAWTEXT(LB3,70,'3'),COLORLIRED;
DRAWTEXT(LB4,70,'4'),COLORYELLOW;
DRAWTEXT(LB5,70,'5'),COLORYELLOW;
DRAWTEXT(LB6,70,'6'),COLORYELLOW;
DRAWTEXT(LB7,70,'7'),COLORRED;
DRAWTEXT(LB8,70,'8'),COLORRED;
DRAWTEXT(LB9,70,'9'),COLORRED;
DRAWTEXT(LB10,70,'10'),COLORRED;
MD2:=BARSLASTCOUNT(LV00)>=2 OR BARSLASTCOUNT(LV0)>=2 OR BARSLASTCOUNT(LV1)>=2 OR BARSLASTCOUNT(LV2)>=2 ;
DRAWTEXT(MD2 AND XHHJ>REF(XHHJ,1) AND CROSS(C,REF(C,1)),XHHJ*3,'加'),COLORYELLOW;
DRAWTEXT(MD2 AND XHHJ<REF(XHHJ,1) AND H<REF(H,1)AND CROSS(REF(C,1),C),XHHJ*3,'减'),COLORGREEN;
P200TS:=BARSLAST(CROSS(C,HHV(REF(C,1),200)));
{STICKLINE(P200TS>1 AND C>=REF(C,P200TS),REF(C,P200TS),REF(C,P200TS),60,0),COLORWHITE;}
DRAWTEXT(P200TS>1 AND C>=REF(C,P200TS),65,'牛'),COLORYELLOW;
黄买蓝卖抄底副图
X_1:=HHV(HIGH,34);
X_2:=LLV(LOW,34);
X_3:=EVERY(CLOSE<OPEN,4);
X_4:=EVERY(CLOSE<OPEN,3);
X_5:=X_3 OR X_4;
XG:REF(X_5,1) AND X_1 AND X_2 AND OPEN<MA(CLOSE,5) AND OPEN<MA(CLOSE,10) AND CLOSE>=MA(CLOSE,5) AND CLOSE>=MA(CLOSE,10);
STICKLINE(XG,0,0.8,2,0),COLORRED;
DRAWICON(XG,1.02,16);
DRAWICON(XG,0.9,1);
DRAWICON(XG,0.5,34);