送给你一个大智慧主图公式
-
相关简介:这个图不只是分析 ,观看。还可以作为选股公式 《尤其是那一条虚线》 input:N(3,1,111); {现价} DRAWGBK((CLOSE 0),STRIP(RGB(4,1,28),RGB(4,1,35),0)); MA1:=MA(C,1); DRAWTEXTREL(330,915,'现价:'+NUMTOSTRN(MA1,2)),LINETHICK7,COLORred; A1:=BARSTATUS = 2; A2:=(REF(HIGH,N)) = (HHV(HIGH,((2 * N) + 1
-
文章来源:股海网作者:股海网发布时间:2014-01-15浏览次数:
这个图不只是分析 ,观看。还可以作为选股公式 《尤其是那一条虚线》
input:N(3,1,111);
{现价}
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
MA1:=MA(C,1);
DRAWTEXTREL(330,915,'现价:'+NUMTOSTRN(MA1,2)),LINETHICK7,COLORred;
A1:=BARSTATUS = 2;
A2:=(REF(HIGH,N)) = (HHV(HIGH,((2 * N) + 1)));
A3:=BACKSET(A2,(N + 1));
A4:=(FILTER(A3,N)) AND (HIGH = (HHV(HIGH,(N + 1))));
A5:=(REF(LOW,N)) = (LLV(LOW,((2 * N) + 1)));
A6:=BACKSET(A5,(N + 1));
A7:=(FILTER(A6,N)) AND (LOW = (LLV(LOW,(N + 1))));
A8:=A1 AND (REF(A4,BARSLAST(A4)));
A9:=BACKSET(A8,(BARSLAST(A4) + 1));
A10:=A9 > (REF(A9,1));
A11:=REF(BARSLAST(A4),1);
A12:=BACKSET(A10,(A11 + 2));
A13:=A12 > (REF(A12,1));
A14:=BACKSET(A13,(A11 + 2));
A15:=A14 > (REF(A14,1));
A16:=BACKSET(A15,(A11 + 2));
A17:=A16 > (REF(A16,1));
短压:DRAWLINE(A13,HIGH,A10,HIGH,1),colorGreen;{★压力3:};
中压:DRAWLINE(A15,HIGH,A13,HIGH,1),colorred;
长压:DRAWLINE(A17,HIGH,A15,HIGH,1),colorMagenta;
平顶:DRAWLINE(A10,HIGH,(REF(A10,1)),(REF(HIGH,1)),1),linethick2,colorYellow;
A18:=A1 AND (REF(A7,BARSLAST(A7)));
A19:=BACKSET(A18,(BARSLAST(A7) + 1));
A20:=A19 > (REF(A19,1));
A21:=REF(BARSLAST(A7),1);
A22:=BACKSET(A20,(A21 + 2));
A23:=A22 > (REF(A22,1));
A24:=BACKSET(A23,(A21 + 2));
A25:=A24 > (REF(A24,1));
A26:=BACKSET(A25,(A21 + 2));
A27:=A26 > (REF(A26,1));
短支:DRAWLINE(A23,LOW,A20,LOW,1),coloryellow,linethick2;
中支:DRAWLINE(A25,LOW,A23,LOW,1),color00ff00;
长支:DRAWLINE(A27,LOW,A25,LOW,1),colorblue;
平支:DRAWLINE(A20,LOW,(REF(A20,1)),(REF(LOW,1)),1),colorMagenta,Linethick2;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(ff1,(LOW* 0.99),'老鼠仓'),Color4080FF;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.97),'▲大黑马'),COLORYELLOW;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'★★底背'),ColorA6E500;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'★★顶背'),Color1880FF;
工作1:eMA(CLOSE,2),DOTLINE,LINETHICK1;
{45度异动}
x1:=(C+L+H)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
DRAWTEXT(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45上升'),coloryellow;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'←▽'),CROSSDOT,LINETHICK1,COLORRED;
DRAWTEXT(卖1>0,HIGH*1.02,'←▽'),CROSSDOT,LINETHICK1,COLORGREEN;
VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
神:(((EMA(CLOSE,3)) + (EMA(CLOSE,6))) + (EMA(CLOSE,9))) / 3,colorRed;
话:(((EMA(CLOSE,5)) + (EMA(CLOSE,10))) + (EMA(CLOSE,15))) / 3,colorRed;
缔:(((EMA(CLOSE,7)) + (EMA(CLOSE,14))) + (EMA(CLOSE,21))) / 3,colorRed;
造:(((EMA(CLOSE,9)) + (EMA(CLOSE,18))) + (EMA(CLOSE,27))) / 3,colorRed;
神;
神 > 造,align0,linethick0,colorRed;
神 < 造,align0,linethick0,colorGreen;
话;
话 > 造,align0,linethick0,colorRed;
话 < 造,align0,linethick0,colorGreen;
缔;
缔 > 造,align0,linethick0,colorRed;
缔 < 造,align0,linethick0,colorGreen;
造;
神 > 造,align0,linethick0,colorRed;
神 < 造,align0,linethick0,colorGreen;