以下是自用的主图指标,说明,源码

自用的主图指标,说明,源码

VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3>VAR4,VAR3,VAR4,15,0) , COLORYELLOW;
STICKLINE(VAR3< VAR4,VAR3,VAR4,20,0) , COLORBLUE;

MA13:EMA(C,13),COLORYELLOW,LINETHICK2;
MA34:EMA(C,34),COLORWHITE;
MA55:EMA(C,55),COLORFF00FF;
MA2:IF(MA13>=REF(MA13,1),MA13,DRAWNULL),COLORRED,LINETHICK2;
MA3:IF(REF(MA13,1)>MA13,MA13,DRAWNULL),COLORWHITE,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
低吸:=CROSS(RSI,11);
DRAWTEXT(低吸,L-0.05,’低吸’),COLORWHITE;
VAR7:=EMA(AMOUNT/VOL/100,3);
VAR8:=EMA(VAR7,88);
VAR9:=EMA(VAR7,88)*0.85;
VARA:=VAR9*0.87;
VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;
VARF:=(2*CLOSE+HIGH+LOW)/4;
VA4:=LLV(LOW,34);
VA5:=HHV(HIGH,34);
VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);
VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE>OPEN,1,0),L-0.05,’出击’),COLORYELLOW;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
天线:=78.89;
STICKLINE(CROSS(天线,多方趋势),H*1.02,H*1.00,6,0),COLOR00FF00;
DRAWTEXT(CROSS(天线,多方趋势),H*1.04,’逃顶‘),COLOR00FF00;
A1:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A2:=LLV(L,21);
A3:=LLV(L,30);
A4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A6:=MA(C,20);
DIF:=”MACD.DIF”(12,26,9);
DEA:=”MACD.DEA”(12,26,9);
基础:=(DIF<-0.1 AND DIF>DEA),COLORYELLOW;
中线买入:=CROSS(A1,A4) AND (A5-A4)>40 AND 基础;
DRAWTEXT(中线买入,LOW*0.90,’中线’),COLORRED,LINETHICK3;

VR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
VR2:=SMA(VR1,5,1);
VR3:=SMA(VR2,8,1);
VR4:=CROSS(VR2,VR3) AND VR3< 20;
VR5:=C>LLV(C,60)*1.13 AND VR4;
VR6:=IF(C>200,VR4,VR5);
HH2:=MA(CLOSE,14);
HH3:=MEMA(CLOSE,4);
AR1:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;
AR2:=SMA(AR1,7,1);
AR3:=SMA(AR2,5,1);
R1:=MA55>MA34 AND MA34>MA13;
R2:=BARSLAST((C-MA13)/MA13*100<-6);
R3:=MA13>=REF(MA13,2);
R4:=COUNT(CROSS(C,MA13),R2)=1;
R5:=R1 AND R2 AND R3 AND R4;
R6:=R5 AND FILTER(R5,10);
DRAWTEXT(R6,L-0.09,’红杏出墙’),COLORRED;
FR:=BARSLAST(REF(CROSS(MA34,MA13),1)) AND CROSS(MA13,MA34);
DRAWTEXT(FR,L-0.09,’梅开二度’),COLORWHITE;
AA:=CROSS(MA(C,5),MA(C,20)) AND CROSS(MA(C,5),MA(C,30)) AND CROSS(MA(C,5),MA(C,60));
BB:=MA(C,60)>MA(C,10) AND CROSS(MA(C,10),MA(C,30)) AND MA(C,30)>MA(C,20) AND ABS(MA(C,60)-MA(C,20))/MA(C,20)<0.05;
CC:=MA(C,30)>MA(C,5) AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,10), COLORYELLOW;
DD:=ABS((MA(C,5)-MA(C,10))+(MA(C,10)-MA(C,20))+(MA(C,20)-MA(C,30)))<0.02 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1);
EE:=MA(C,20)>MA(C,5) AND CROSS(MA(C,5),MA(C,10)) AND MA(C,10)>MA(C,60) AND ABS(MA(C,20)-MA(C,60))/MA(C,60)<0.05;
FF:=AA OR BB OR CC OR DD OR EE ;
HH1:=FF AND FILTER( FF,8);
DRAWTEXT(HH1,L*0.958,’庄现’),COLORWHITE;
DRAWTEXT(CROSS(AR2,AR3) AND AR2<20 AND HH2>HH3,HH2*0.9165,’★坚决全仓’),COLORMAGENTA;
LSC:=REF(CLOSE,1);
RSII:=SMA(MAX(CLOSE-LSC,0),6,1)/SMA(ABS(CLOSE-LSC),6,1)*100;
DRAWTEXT(CROSS(84,RSII) , HIGH*1.02,’逢高出局!’),COLOR00FF00 ;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。