VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
A:(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)
+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)
+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,15)+6*REF(VAR1,14)
+5*REF(VAR1,13)+4*REF(VAR1,16)+3*REF(VAR1,17)
+2*REF(VAR1,18)+REF(VAR1,20))/210,COLORRED,LINETHICK2;
B:MA(A,6),COLORGREEN,LINETHICK2;
DRAWBAND(A,RGB(240,140,240),B,RGB(255,255,0));
趋势:EMA(C,50),LINETHICK2;
IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED,POINTDOT,LINETHICK8;
IF(趋势<REF (趋势,1),趋势,DRAWNULL),COLORFFD700,POINTDOT,LINETHICK8;
神渔冲天副图
X_1:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
X_2:=(CLOSE-EMA(CLOSE,10))/EMA(CLOSE,10)*100;
X_3:=(CLOSE-EMA(CLOSE,20))/EMA(CLOSE,20)*100;
X_4:=(CLOSE-EMA(CLOSE,60))/EMA(CLOSE,60)*100;
X_5:=(CLOSE-EMA(CLOSE,120))/EMA(CLOSE,120)*100;
X_6:=X_1>1 AND X_2>2 AND X_3>3 AND X_4>4;
X_7:=X_1>2 AND X_2>4 AND X_3>6 AND X_4>8;
X_8:=X_1>3 AND X_2>5 AND X_3>7 AND X_4>9;
X_9:=X_1>4 AND X_2>6 AND X_3>8 AND X_4>10 AND X_5>12;
X_10:=BARSLASTCOUNT(X_9)=1 AND CROSS(CLOSE,EMA(CLOSE,50)*1.2);
小鳟:BARSLASTCOUNT(X_6),NODRAW,COLORWHITE;
红鳟:BARSLASTCOUNT(X_7),NODRAW,COLORRED;
紫鳟:BARSLASTCOUNT(X_8),NODRAW,COLORMAGENTA;
黄鳟:BARSLASTCOUNT(X_9),NODRAW,COLORYELLOW;
DRAWBAND(0,RGB(0,235,235),0,RGB(0,0,0));
STICKLINE(X_6,-小鳟,小鳟,(-1),(-1)),COLORWHITE;
STICKLINE(X_7,-红鳟,红鳟,(-1),0),COLORRED;
STICKLINE(X_8,-紫鳟,紫鳟,(-1),0),COLORMAGENTA;
STICKLINE(X_8,-黄鳟,黄鳟,(-1),0),COLOR00AAAA;
STICKLINE(X_8,-黄鳟,黄鳟,1,0),COLORYELLOW;
STICKLINE(X_10,小鳟+1,小鳟+2,(-1),0),COLOR00AA00;
STICKLINE(X_10,小鳟+1,小鳟+2,1,0),COLORGREEN;
X_11:=IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3;
X_12:=EMA((X_11-MA(X_11,28))/(0.015*AVEDEV(X_11,28)),2);
X_13:=222;
X_14:=111;
X_15:=(-89);
X_16:=CROSS(X_12,(-89));
X_17:=CROSS(X_12,111);
X_18:=X_16 OR X_17;
X_19:=DYNAINFO(8)/REF(MA(VOL,5),1)/240*FROMOPEN;
X_20:=X_19>1.2 AND CLOSE/REF(CLOSE,1)>1.01;
X_21:=FINANCE(40)/100000000;
X_22:=X_21<500 AND X_21>20;
X_23:=MA(CLOSE,55);
X_24:=MA(CLOSE,144);
X_25:=MA(CLOSE,233);
X_26:=CROSS(CLOSE,X_23);
X_27:=CROSS(CLOSE,X_24);
X_28:=CROSS(CLOSE,X_25);
X_29:=CLOSE>X_23 AND CLOSE>X_24 AND CLOSE>X_25;
X_30:=X_26 OR X_27 OR X_28;
X_31:=X_23>REF(X_23,1);
X_32:=X_24>REF(X_24,1);
X_33:=X_25>REF(X_25,1);
X_34:=IF(CODELIKE(1266),0,1);
X_35:=IF(NAMELIKE(1267),0,1);
X_36:=(-100);
X_37:=VOL;
X_38:=POW(CLOSE,9);
X_39:=EMA(X_38,3);
X_40:=EMA(CLOSE,60)*X_38;
X_41:=EMA(X_40,10);
X_42:=EMA(X_40,50);
X_43:=EMA(X_39,60);
X_44:=STICKLINE(X_43>X_39,X_43,X_39,2,0);
X_45:=CROSS(X_40,X_42);
X_46:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_47:=X_46>(-0.2);
XA:X_29 AND X_30 AND X_18 AND X_20 AND X_22 AND CLOSE<40 AND X_34 AND X_35 AND X_45 AND X_47;
DRAWTEXT(XA,5,1268),COLORMAGENTA;
STICKLINE(XA,4,2,3.5,0),COLORA8A8A8;
STICKLINE(XA,5,4.9,1.7,0),COLORA8A8A8;
STICKLINE(XA,4.9,4.8,1.9,0),COLORA8A8A8;
STICKLINE(XA,4.8,4.7,2.1,0),COLORA8A8A8;
STICKLINE(XA,4.7,4.6,2.3,0),COLORA8A8A8;
STICKLINE(XA,4.6,4.5,2.5,0),COLORA8A8A8;
STICKLINE(XA,4.5,4.4,2.7,0),COLORA8A8A8;
STICKLINE(XA,4.4,4.3,2.9,0),COLORA8A8A8;
STICKLINE(XA,4.3,4.2,3.1,0),COLORA8A8A8;
STICKLINE(XA,4.2,4.1,3.3,0),COLORA8A8A8;
STICKLINE(XA,4.1,4,3.5,0),COLORA8A8A8;
STICKLINE(XA,10.1,9.6,0.1,0),COLORWHITE;
STICKLINE(XA,9.6,9.2,0.3,0),COLORWHITE;
STICKLINE(XA,9.2,8.8,0.6,0),COLORWHITE;
STICKLINE(XA,8.8,8.4,0.9,0),COLORWHITE;
STICKLINE(XA,8.4,8,1.2,0),COLORWHITE;
STICKLINE(XA,8,5,1.4,0),COLORWHITE;
STICKLINE(XA,7.4,7,0.6,0),COLORRED;
STICKLINE(XA,6.5,6.4,1.5,0),COLORBLUE;
STICKLINE(XA,5.1,4.9,1.5,0),COLORBLUE;
STICKLINE(XA,4.9,2.5,1.5,0),COLORWHITE;
STICKLINE(XA,2.5,2,1.3,0),COLORRED;
STICKLINE(XA,2,1.3,1,0),COLORRED;
STICKLINE(XA,1.3,0.7,0.7,0),COLORRED;
STICKLINE(XA,0.7,0.1,0.3,0),COLORRED;
STICKLINE(XA,1,(-5),0.1,0),COLORRED;
STICKLINE(XA,2.48,2.18,1,0),COLORYELLOW;
STICKLINE(XA,2.18,1.88,0.5,0),COLORYELLOW;
STICKLINE(XA,1.88,1.58,0.1,0),COLORYELLOW;
STICKLINE(XA,6,5.5,0.5,0),COLORRED;
神渔成交量副图
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'左峰价涨量缩 首跌缩量、有序缩量、缩为低量,红肥绿瘦') COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,'左侧假阴假阳、低量群、王牌托底,十字架支撑') COLORYELLOW;
虚:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
{
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,(-1),(-1)),COLOR00C0C0;}
成交量:VOL,VOLSTICK;
MA123:=MA(V,123);
X_1:=REF(CLOSE,1);
X_2:=VOL<MA(VOL,60)/3 OR VOL<CAPITAL*0.005;
买卖比:=DYNAINFO(23)/DYNAINFO(22);
量能饱和度:IF(AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))>1,1,AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20)))*100,NODRAW,COLORMAGENTA;
量柱比:成交量/REF(成交量,1),COLORRED;
换手率:100*VOL/(FINANCE(7)/100) NODRAW;
获利比例:WINNER(C)*100,NODRAW COLORRED;
均价:=AMOUNT/VOL/100;
涨停:=C=ZTPRICE(REF(C,1),0.1);
跌停:=C=DTPRICE(REF(C,1),0.1);
一字涨跌停:=(涨停 OR 跌停) AND O=H AND C=O AND L=O AND L=H;
百低:V=LLV(V,100) AND NOT(一字涨跌停),COLORGREEN NODRAW;
DRAWTEXT(V<REF(V,1)*0.67 AND V>REF(V,1)*0.5 AND NOT(一字涨跌停),V*1.3,'3')COLORGREEN;
DRAWTEXT(V<REF(V,1)*0.5 AND V>REF(V,1)*0.33 AND NOT(一字涨跌停),V*1.3,'2')COLORGREEN;
DRAWTEXT(V<REF(V,1)*0.33 AND NOT(一字涨跌停),MA(V,5),'1')COLORGREEN;
DRAWTEXT(百低,MA(V,123),'-1')COLORYELLOW;
STICKLINE(百低,0,VOL,2.5,0),COLORGREEN;
量倍数:V/REF(V,1),NODRAW,COLORWHITE;
倍量:V>REF(V,1)*1.9 AND C>O,COLORYELLOW NODRAW;
STICKLINE(倍量,0,V,2,0) COLORYELLOW;
平量:RANGE(V,REF(V,1),REF(V,1)*1.03) AND C>O,COLORMAGENTA NODRAW;
STICKLINE(平量,0,VOL,2,0),COLORMAGENTA;
缩倍:V<=REF(VOL,1)*0.505,NODRAW,COLORCYAN ;
梯量:UPNDAY(C,3) AND UPNDAY(V,3) NODRAW;
DRAWTEXT(FILTER(梯量,2),V*1.2,'T') COLORRED;
高量:V=HHV(V,10) OR V=HHV(V,21) OR V=HHV(V,100) NODRAW COLORRED;
升势地量:V=LLV(V,10) AND EMA(C,20)>REF(EMA(C,20),1) AND EMA(C,55)>REF(EMA(C,55),1) AND EMA(C,20)>EMA(C,55) AND V<MIN(REFX(V,1),REFX(V,2)) NODRAW COLORGREEN;
DRAWICON(升势地量,V*1.5,1);
STICKLINE(升势地量,0,V,1,0),COLORMAGENTA;
低量:=V=LLV(V,10) AND V<=REF(V,1) AND V<=REFX(V,1) AND NOT(一字涨跌停);
DRAWICON(低量,V*0.5,23);
百低群:BARSLASTCOUNT(V<MA(V,123))>5 AND HHV(V,5)<MA(V,123)*1.5 NODRAW COLORRED;
低平量群:BARSLASTCOUNT(V<MIN(HHV(V,21),HHV(V,100))*0.5)>3 OR BARSLASTCOUNT(HHV(V,5)<LLV(V,10)*1.8)>3 NODRAW COLORMAGENTA;
长阴:=(C<O*0.97 OR C<=REF(C,1)*0.97) AND H>L AND L<REF(MIN(C,O),1);
短柱:=(V<REF(V,1)*0.99 OR V<=HHV(V,10)*0.67 OR V<HHV(V,5) OR MA(V,5)<MA(V,60)*0.5) AND NOT(一字涨跌停);
长阴短柱:=长阴 AND 短柱;
DRAWICON(短柱 AND C>=REF(C,1)*1.04 AND NOT(一字涨跌停),V*1.0159,38);
DRAWICON(长阴短柱,V*1.0159,39);
假阴真阳:=C<O AND (C>REF(C,1) OR 均价>REF(C,1));
STICKLINE(假阴真阳,0,V,2,0)COLORRED;
{量柱刻度}
STICKLINE(V>0 AND V>REF(V,1),V*2/3,V*2/3,2,0),COLORBLUE;
STICKLINE(V>0 AND V>REF(V,1),V/2,V/2,2,0),COLORBLUE;
STICKLINE(V>0 AND V>REF(V,1),V*1/3,V*1/3,2,0),COLORBLUE;
NOTEXT1:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,100),1)+1)+1,CONST(REF(V,REF(HHVBARS(VOL,100),1)+1)),DRAWNULL),COLORYELLOW DOTLINE;
NOTEXT2:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,100),1)+1)+1,CONST(REF(V*0.5,REF(HHVBARS(VOL,100),1)+1)),DRAWNULL),COLORLIGREEN DOTLINE;
NOTEXT3:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(V,REF(HHVBARS(VOL,21),1)+1)),DRAWNULL),COLORWHITE;
NOTEXT4:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(V*0.5,REF(HHVBARS(VOL,21),1)+1)),DRAWNULL),COLORLIGREEN;
NOTEXT5:=IF(CURRBARSCOUNT<=CONST(REF(LLVBARS(VOL,21),1)+1)+1,CONST(REF(V,REF(LLVBARS(VOL,21),1)+1)),DRAWNULL),COLORBLUE LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=21, NOTEXT1*0.9,'21')COLORGREEN;
LD5:=FILTER(BACKSET(FILTER(REF(MIN(C,O),5)=LLV(MIN(C,O),2*5+1),5),5+1),5);
LD10:=FILTER(BACKSET(FILTER(REF(MIN(C,O),10)=LLV(MIN(C,O),2*10+1),10),10+1),10);
LLD5:=CONST(BARSLAST(LD5));
LLD10:=CONST(BARSLAST(LD10));
NOTEXT7:=IF(CURRBARSCOUNT<=LLD5+1,CONST(IF(LLD5=0,V,REF(V,LLD5))),DRAWNULL),COLORGREEN ;
NOTEXT8:=IF(CURRBARSCOUNT<=LLD10+1,CONST(IF(LLD10=0,V,REF(V,LLD10))),DRAWNULL),COLORBLUE LINETHICK2;
高:=V>REF(V,1) AND V>REFX(V,1) ;
GT:=BARSLAST(高);
有序缩量:=DOWNNDAY(V,3) AND V=LLV(V,GT) AND GT>2;
NOTEXT9:DRAWLINE(高,V,有序缩量,V,0) COLORMAGENTA LINETHICK2;
神渔操作区副图
A:=MAX(MA(C,13),MA(C,34));
B:=MIN(MA(C,13),MA(C,34));
绿买:C>A,COLORGREEN;
红停:C<B,COLORRED;
黄观望:A>=C AND C>=B,COLORYELLOW ;
STICKLINE(C>A,0,2,8,0),COLOR008800,LINETHICK2;
STICKLINE(C<B,0,2,8,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,0,2,8,0),COLORYELLOW,LINETHICK2;
神渔抄底副图
X_1:=CLOSE/MA(CLOSE,40)*100<78;
X_2:=CLOSE/MA(CLOSE,60)*100<74;
X_3:=HIGH>LOW*1.051;
X_4:=X_3 AND COUNT(X_3,5)>1;
X_5:=IF(X_4 AND (X_1 OR X_2),2,0);
X_6:=CLOSE/REF(CLOSE,25)<=1.1;
X_7:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
X_8:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
X_9:=SMA(X_8,2,1);
X_10:=IF(X_9>REF(X_9,1) AND REF(X_9,1)<REF(X_9,2) AND X_9<23,1.5,0);
神渔抄底:X_6 AND X_5 AND X_7 AND X_10,COLORRED,LINETHICK2;