以下是同花顺艾江恩线指标公式

LOCK:=1;
空:=EMA(CLOSE,5);
均衡:=EMA(空,0),COLORFFFFFF;
持币:HHV(MA(HIGH,3*LOCK),2),LINETHICK2,COLOR00FF00;
持股:LLV(MA(HIGH,3*LOCK),1),LINETHICK2,COLOR0000FF;
 VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
 VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
 DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,’买入’);
VARC:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),6,1))*100;
 VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
 VAR2:=REF(VAR1,1);
 VAR3:=(SMA(MAX(VAR1-VAR2,0),10,1))/(SMA(ABS(VAR1-VAR2),10,1))*100;
 VAR4:=FILTER(IF((COUNT(VAR3<20,5))>=1 AND (COUNT(VAR1=LLV(VAR1,10),10))>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
 VAR5:=FILTER(均衡>REF(均衡,1) AND 持币<REF(持币,1) AND CLOSE>REF(CLOSE,1),11);
 VAR6:=REF(CLOSE,1);
 VAR7:=(SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1))*100;
 N:=5;
 L1:=LLV(L,10);
爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;
 XG:=CROSS(爆发点,20) OR CROSS(爆发点,18);
 L3:IF(XG,O,L1*0.999),coloryellow;
 DRAWTEXT(XG,L3,’爆’),colormagenta;
 DRAWTEXT(CLOSE>OPEN AND COUNT(CLOSE-OPEN>0,6)<4 AND (HHV(HIGH,5)-LLV(LOW,5))/HHV(HIGH,5)>0.05 AND REF(HIGH,1)<REF(HIGH,2) AND REF(HIGH,2)<REF(HIGH,3) AND REF(HIGH,3)<REF(HIGH,4) AND CLOSE>REF(HIGH,1)*(1+0.1*1/8),LOW,’大大大买’),colorred;DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.97,’机进’) ,
LINETHICK2,COLOR00FFFF;
 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.99,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)),H,2);
 AZ6:=(3 * (SMA((((CLOSE – (LLV(LOW,27))) /
 ((HHV(HIGH,27)) – (LLV(LOW,27)))) * 100),5,1))) – (2 * (SMA((SMA((((CLOSE –
 (LLV(LOW,27))) / ((HHV(HIGH,27)) – (LLV(LOW,27)))) * 100),5,1)),3,1)));
 B7:=(10);
 DRAWTEXT(CROSS(AZ6,B7),L,’底’),COLOR0000FF;
 VARC:=(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));
 VARD:=(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));
 DRAWTEXT((VARC=1),L,”),COLOR0000FF;
 DRAWTEXT((VARD=1),H,”),COLOR00FF00;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;
 STICKLINE(CROSS(MA(C,1),MA(C,9)),CLOSE,OPEN,8,0),colorred;
 STICKLINE(CROSS(MA(C,1),MA(C,9)),HIGH,LOW,0.8,0),colorred;
 STICKLINE(CROSS(MA(C,1),MA(C,55)),CLOSE,OPEN,6,0),colorgray;
 STICKLINE(CROSS(MA(C,1),MA(C,55)),HIGH,LOW,0.6,0),colorgray;
 STICKLINE(CROSS(MA(C,1),MA(C,23.5)),CLOSE,OPEN,7,0),coloryellow;
 STICKLINE(CROSS(MA(C,1),MA(C,23.5)),HIGH,LOW,0.7,0),coloryellow;
 STICKLINE(CROSS(MA(C,1),MA(C,120)),CLOSE,OPEN,5,0),colormagenta;
 STICKLINE(CROSS(MA(C,1),MA(C,120)),HIGH,LOW,0.5,0),colormagenta;
 ;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);
 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);
 STICKLINE(CROSS(88,RSI),O,C,0.3,0),COLOR113311;
 VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;
 MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
 DRAWTEXT(FILTER(买=1,5),LOW-0.18,’短’),COLOR0000FF;
 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),colorred,linethick1;STICKLINE( 买点1>0,O,C,6,0),colorred,linethick1;
 STICKLINE( 买点2>0 ,H,L, 10,1),colorred,linethick1;STICKLINE( 买点2>0,O,C,6,0),colorred,linethick1;
 STICKLINE( 卖点1>0,H,L, 11,5),coloryellow,linethick1;STICKLINE( 卖点1>0,O,C,6,0),coloryellow,linethick1;
 STICKLINE( 卖点2>0,H,L, 11,5),coloryellow,linethick1;STICKLINE( 卖点2>0,O,C,6,0),coloryellow,linethick1;
 DRAWTEXT(卖点2>0, H,’顶’),colorblue,linethick3;
 DRAWTEXT(买点2>0, L,’底’),COLORFF00FF,linethick3;
 VAR6:=REF(C,1);
 VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
 ;X1:=(C+L+H)/3;
 X2:=EMA(X1,6);
 X3:=EMA(X2,5);
 GR1:=BARSLAST(BETWEEN(“BIAS.BIAS2″(6,13,24),0,5));
 GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)
 AND EMA(X1,13)>REF(EMA(X1,13),1);
 GR3:=COUNT(“BIAS.BIAS2″(6,13,24)>10 AND H=HHV(H,GR1),GR1);
 GR4:=H=HHV(H,GR1);
 GR5:=”MACD.MACD”(12,26,9)<REF(“MACD.MACD”(12,26,9),1);
 GR6:=GR2 AND GR3 AND GR4;
 GR7:=GR2 AND GR3 AND GR4 AND GR5;
 GR8:=GR6 AND GR7;
 LC := REF(CLOSE,1);
 RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
 BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
 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,’∠角’),COLORFF80FF,LINETHICK2;GET:ZIG(3,5),COLORAAAAAA;
箱顶:MA(REF(HHV(C,10),1),1),LINETHICK1,COLORFFA188;
箱底:MA(REF(LLV(C,10),1),1),LINETHICK1,COLORFFA188;
 

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