杨线军主图
经供参考 有未来函数!!!!!!!!!!!!!!
MA5:MA(CLOSE,5),ColorCCCCCC,LINETHICK1;
MA10:MA(CLOSE,10),colorgreen,LINETHICK1;
MA21:MA(CLOSE,21),colorliblue,LINETHICK1;
MA30:MA(CLOSE,30),coloryellow,LINETHICK2;
MA60:MA(CLOSE,60),color885e42,LINETHICK1;
MA99:MA(CLOSE,99),Color9f9f5f,LINETHICK2;
MA144:MA(CLOSE,144),Color990099,LINETHICK1;
MA250:MA(CLOSE,250),Color777700,LINETHICK1;
MA318:MA(CLOSE,318),Color70dbdb,LINETHICK1;
MA550:MA(CLOSE,550),colorblue,LINETHICK2;
MA610:MA(CLOSE,610),Color6f4242,LINETHICK1;
MA730:MA(CLOSE,730),Coloreaadea,LINETHICK1;
MA880:MA(CLOSE,880),Color781f87,LINETHICK2;
买线:=ZIG(3,10);
卖线:=MA(买线,2);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,L*0.99,'▲'),LINETHICK3,colormagenta;
DRAWTEXT(sel,H*1.0,'▼'),linethick3,colorgreen;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),colormagenta,LINETHICK3;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),colorblue,LINETHICK3;
V10:=PEAKBARS(3,15,1)<10;
V12:=IF(V10=1,50,0);
DRAWTEXT(IF(IF(V12=50,100,0)>REF(IF(V12=50,100,0),1),H,0),H*1.02,'←顶 '),colorgreen,LINETHICK1;
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
DRAWTEXT(IF( IF(V11=50,50,0)>REF(IF(V11=50,50,0),1),L,0),L*0.96,'↖底 '),colormagenta;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
DRAWTEXT(VAR20 AND COUNT(VAR20,1)=1,H*0.99,'↖$$') , colormagenta;
DRAWTEXT(VAR24 AND COUNT(VAR24,1)=1,L*1.1,'↙$$') , color00FF00;
ema13:=EMA(C,13),coloryellow;
ema34:=EMA(C,34),colorgreen;
ema55:=EMA(C,55),colorff00ff;
ema120:=EMA(C,120),color99cc32;
ar1:=ema55>ema34 AND ema34>ema13;
ar2:=BARSLAST((C-ema13)/ema13*100<-6);
ar3:=ema13>=REF(ema13,2);
ar4:=COUNT(CROSS(C,ema13),ar2)=1;
ar5:=ar1 AND ar2 AND ar3 AND ar4;
ar6:=ar5 AND FILTER(ar5,10);
STICKLINE(ar6,O,C,6,1),linethick8,colorred;
br1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;
br2:=ABS((ema13-ema34)+(ema34-ema55))/C<0.2;
br3:=C>ema55 AND(REF(C,1)<REF(ema55,1) OR REF(C,2)<REF(ema55,2) OR REF(C,3)<REF(ema55,3) OR REF(C,4)<REF(ema55,4) OR REF(C,5<REF(ema55,5)));
br4:=br1 AND br2 AND br3;
STICKLINE(br4 AND FILTER(br4,10),O,C,6,1),linethick8,colorgreen;
cr1:=(C-REF(C,1))/REF(C,1)*100>0.5;cr2:=V>MA(V,5)*0.6;cr3:=COUNT(CROSS(ema13,ema55),3)=1;
cr4:=ABS(ema34-ema55)/ema55<0.03;cr5:=ema55<=ema120 AND ema55>=REF(ema55,1);
cr6:=FILTER(cr1 AND cr2 AND cr3 AND cr4 AND cr5,2);
STICKLINE(cr6,O,C,6,1),linethick8,colorlired;
dr1:=ema13>ema34 AND ema34<ema55;dr2:=BARSLAST(CROSS(C,ema55));
dr3:=H=HHV(H,dr2);dr4:=BARSLAST(dr3);
dr5:=COUNT(O>C AND C<REF(C,1) AND C>ema55 AND BETWEEN((C-ema55)/ema55,0,0.02),dr4)=1;
dr6:=C>REF(C,1);dr7:= dr1 AND dr5 AND dr6 ;dr8:=dr7 AND FILTER(dr7,10);
STICKLINE(dr8,O,C,6,1),linethick8,colord6ba63;
er:=BARSLAST(REF(CROSS(ema55,ema34),1))
AND
CROSS(ema34,ema55);
STICKLINE(er,O,C,6,1),linethick8,color0099ff;
fr:=BARSLAST(REF(CROSS(ema34,ema13),1))
AND
CROSS(ema13,ema34);
STICKLINE(fr,O,C,6,1),linethick8,coloryellow;
hr2:=ema13>=REF(ema13,3) AND
ema34>=REF(ema34,1) AND ema55>=REF(ema55,1) AND CROSS(C,ema13) AND
CROSS(C,ema34) AND CROSS(C,ema55);
STICKLINE(hr2 AND
FILTER(hr2,10),H,L,0.5,1),colorcolorwhite;
STICKLINE(hr2 AND
FILTER(hr2,10),O,C,6,1),linethick8,colorwhite;
VAR1:=EMA(C,5);
MA1000:=MA(C,1000),color556699;MA500:=MA(C,500),colorwhite;MA250:=MA(C,250),coloryellow,DOTLINE;MA120:=MA(C,120),colorgreen,DOTLINE;
生命线:=MA(CLOSE,30),colorgreen,linethick2;MA55:=MA(CLOSE,55),colorblue;
大30度且34日线:=ATAN((MA(C,34)/REF(MA(C,34),1)-1)*100)*180/3.14159>=30;大45度且34日线:=ATAN((MA(C,34)/REF(MA(C,34),1)-1)*100)*180/3.14159>=45;大20度且13日线:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*180/3.14159>=30;
m34:IF(大45度且34日线,生命线,DRAWNULL),colorwhite,linethick3;
大牛熊分界线:IF(C<=MA1000,MA1000,DRAWNULL),color9370db,linethick2;
小牛熊分界线:IF(C<=MA500,MA500,DRAWNULL),color0099ff,linethick2;
m250:IF(C<=MA250,MA250,DRAWNULL),colorffcc66,linethick2;m120:IF(C<=MA120,MA120,DRAWNULL),colorffcc66,linethick2;m55:IF(C<=MA55,MA55,DRAWNULL),colorffcc66,linethick2;