以下是同花顺艾尚客主图指标公式

箱顶:MA(REF(HHV(C,10),1),1),LINETHICK1,COLORFFA188;
箱底:MA(REF(LLV(C,10),1),1),LINETHICK1,COLORFFA188;工作线17:EMA(CLOSE,17),coloryellow;
中期线50:EMA(CLOSE,50),linethick2;
长期线453:EMA(CLOSE,453),colorred,linethick2;买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
 bu:=CROSS(买线,卖线);
sel:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW,’b买’),colorred,linethick3;
 DRAWTEXT(bu,LOW,’ ̄’),color208fff,linethick3;
 DRAWTEXT(sel,HIGH,’ ̄’),colorffff00,linethick3;
 DRAWTEXT(sel,HIGH,’s卖’),colormagenta,linethick3;
 B1:=MA(C,1);
趋势1:SMA(SMA(SMA(B1,2,1),2,1),2,1),colorred,LINETHICK;
趋势2:=MA(趋势1,3),CulorFF00FF,LINETHICK0;
停损下限:IF(LLV(MA(趋势1,2),2)<趋势1,LLV(MA(趋势1,2),2),趋势1);
 iii:=EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,27),1);
 ggg:=EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,27),1);
 PARTLINE(停损下限,iii,RGB(255,0,0),ggg,RGB(0,255,0)),LINETHICK3;
压力:=HHV(MA(趋势1,2),2),coloryellow;
 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(C,2)-EMA(C,150);
买点1:=(Var11+Var13+Var15+Var17);
买点2:=(Var13+Var15+Var17);
卖点1:=(Var12+Var14+Var16+Var18);
卖点2:=(Var14+Var16+Var18);
 STICKLINE( 买点1>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点1>0,O,C,6,0),colorwhite,linethick1;
 STICKLINE( 买点2>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点2>0,O,C,6,0),colorred,linethick1;
 STICKLINE( 卖点1>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点1>0,O,C,6,0),colorbrown,linethick1;
 STICKLINE( 卖点2>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点2>0,O,C,6,0),colorwhite,linethick1;
 DRAWTEXT(卖点2>0, H,’顶’),colorblue,linethick3;
 DRAWTEXT(买点2>0, L,’底’),COLORFF00FF,linethick3;;
 GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
 GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
 GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
 GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
 baijin1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
 baijin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
 baijin3:=GJTJ1>60 AND GJTJ4>70;
 huangjin1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
 huangjin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
 XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
 DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,’暴’),colorred;买:ZIG(3,10);
卖:MA(买,2);
 ;买:ZIG(3,10);
卖:MA(买,2);
 DRAWICON(CROSS(买,卖),L-CLOSE/15,”buy”);
 DRAWICON(CROSS(卖,买),H+CLOSE/15,”sell”);
 MA(C,3);
 T1:=CONST(HHVBARS(V,N));
 X:=30;
 X1:=CONST(REF(HHVBARS(V,X),T1+1)+T1+1);
 Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100;
 YY1:=C>MA(C,5) AND OPEN<MA(C,5);
 YY3:=C>MA(C,10) AND OPEN<MA(C,10);
 YY5:=C>MA(C,30) AND OPEN<MA(C,30);
 DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.97,’龙’),colorred;
 VAR1:=HHV(HIGH,25);
 VAR2:=LLV(LOW,25);
 VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20);
 VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
 VAR5:=CROSS(VAR4,VAR3);
 DRAWICON(CROSS(VAR4,VAR3) ,LOW*0.97,11);
 VarD:=EMA(CLOSE,21)-EMA(CLOSE,8);
 VarE:=EMA(VarD,5);
 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);
买2:=(Var11+Var13+Var15+Var17);
卖1:=(Var12+Var14+Var16+Var18),linethick2;
买1:=Var10;
 DRAWTEXT(买1>0,LOW-0.01,’\n买\n\n1′),colorred,ALIGN0;
 DRAWTEXT(买2>0,LOW-0.01,’\n买\n\n2′),colorgreen,ALIGN0;
 LC:=REF(CLOSE,1);
 RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
 DRAWICON(CROSS(84,RSI) ,H*1.03,5);
 DRAWICON(CROSS(RSI,11) ,L*0.99,4);
 Var27:=REF(CLOSE,1);
 Var28:=SMA(MAX(CLOSE-Var27,0),5.5,1)/SMA(ABS(CLOSE-Var27),6,1)*100;
 DRAWICON(IF(CROSS(76,Var28),1,0),H*1.03,5);
 DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW,”),linethick7 , COLORff00ff;
 VARA:=((AMOUNT)/(VOL))/(100);
 VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
 VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
 VARD:=DMA(VARB,(VOL)/(VARC));
 VARE:=((CLOSE-VARD)/(VARD))*(100);
 VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
 VARJ:=MA(VARE,20)+STD(VARE,20);
 BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
 aa:=SMA(VARF,3,1);
 ss:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (aa>79);
 DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND
 (aa>ss),H*1.02,”),LINETHICK7,colorgreen;
 Var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
 Var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
 STICKLINE(Var1,C,O,8,0),coloryellow,LINETHICK2;
 STICKLINE(Var1,C,O,3,0),coloryellow,LINETHICK2;
 STICKLINE(Var1,H,L,1,0),coloryellow,LINETHICK2;
 STICKLINE(Var2,C,O,8,0),COLORFF00FF,LINETHICK2;
 STICKLINE(Var2,C,O,3,0),COLORFF00FF,LINETHICK2;
 STICKLINE(Var2,H,L,1,0),COLORFF00FF,LINETHICK2;
 DRAWTEXT(ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),LOW,”),colorred;

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