{ 通达信买入翻倍指标公式源码副图 }
{指标介绍:当多空线上穿0轴以后并且沿着45度向上运行时可视为有效突破,此时的信号可视为有效信号。信号出现在平台盘整期间,或者是小多头回调之后向上拉升之际,此时的信号最为有效,其它时间的信号要仔细辨别,下跌趋势中信号或者是高位钝化中的信号可视为无效信号。}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA200:=MA(C,200);
MA300:=MA(C,300);
VAR1:=MA5>MA300;
VAR2:=MA200>MA300;
VAR3:=MA120>MA200;
VAR4:=MA60>MA120;
VAR5:=MA30>MA60;
VAR6:=MA20>MA30;
VAR7:=MA10>MA20;
VAR8:=MA5>MA10;
VAT1:=MA10>REF(MA10,1);
VAT2:=MA20>REF(MA20,1);
VAT3:=MA30>REF(MA30,1);
VAT4:=MA60>REF(MA60,1);
VAT5:=MA120>REF(MA120,1);
VAT6:=MA200>REF(MA200,1);
VAT7:=MA300>REF(MA300,1);
VARB:=CLOSE-LLV(L,9);
VARBB:=HHV(H,9)-LLV(L,9);
VARBBB:=((CLOSE-LLV(L,9)+0.00001))/(HHV(H,9)-LLV(L,9))*100;
ZT:=C=ZTPRICE(REF(C,1),0.1) AND C=H;
ZT1:=C=ZTPRICE(REF(C,1),0.2) AND C=H;
VATA:=EMA(EMA(VARBBB,5),5);
VATB:=VAR1+VAR2+VAR3+VAR4+VAR5+VAR6+VAR7+VAR8+VAT1+VAT2+VAT3+VAT4+VAT5+VAT6+VAT7;
XG:=VATA<80 AND VATB>=11 AND ZT AND LLV(L,20)<l,coloryellow;
VAR11:=REF(CLOSE,1);
VAR12:=SMA(MAX(CLOSE-VAR11,0),6,1)/SMA(Abs(CLOSE-VAR11),6,1)*100;
VAR13:=SMA(MAX(CLOSE-VAR11,0),12,1)/SMA(ABS(CLOSE-VAR11),12,1)*100;
VAR14:=(BArslAST(VAR13<20)<=3 AND crOSS(VAR12,VAR13));
VAR15:=((CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5);
VAR16:=LLV(LOW,5);
VAR17:=HHV(HIGH,5);
VAR18:=EMA((CLOSE-VAR16)/(VAR17-VAR16)*100,4);
VAR19:=EMA(0.667*REF(VAR18,1)+0.333*VAR18,2);
GX1:=(H+L+O+3*C)/6;
GX2:=(GX1-EMA(GX1,21))/EMA(GX1,21)*100,COLORWHITE;
多:SMA(GX2,3,1),COLORRED;
空:SMA(多,3,1),COLORCYAN;
买入翻倍:(CROSS(多,0) OR CROSS(多,空) AND 多>0)*5,COLORMAGENTA;
标签:EMA,MA,LLV,通达信,源码,CLOSE,100,REF,翻倍 From: https://www.cnblogs.com/zhibiao/p/18063854