来个绝的-精品通达信指标公式源码分享
VAR1:=MA(CLOSE,30);
海底: VAR1-2*STD(CLOSE,60),COLORCYAN,LINETHICK2;
水平面:DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL),POINTDOT,COLORGREEN;
天际: VAR1+2*STD(CLOSE,60);
人间:(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORWHITE;
地狱:MA(人间,6),COLORYELLOW;
SW1:= (EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
PP:=SUM((CLOSE-SW1)/SW1*100+20,1);
GG:=SUM((H-SW1)/SW1*100+20,1);
DD:=SUM((L-SW1)/SW1*100+20,1);
GC:=SUM(PP-GG,1);
DC:=SUM(PP-DD,1);
明天买入:=IF((GC<-7),-10,-20);
明天卖出:=IF((DC>7),10,20);
逢低买入:=REF(明天买入,1);
逢高卖出:=REF(明天卖出,1);
DRAWTEXT(逢低买入=-10 ,L-0.2,'低买反弹');
DRAWTEXT(逢高卖出=10 ,H+0.4,'风险');
PP1:=SUM(CLOSE-SW1,1);
LL:=MA(PP1,10);
TT:=(C-SW1)/SW1*100;
超短强买:=IF(CROSS(PP1,LL) AND 人间<地狱 AND LL<0 AND PP1>0 ,50,0);
中线买入:=IF((TT<-10),30,0);
底部:=REF(中线买入,1);
DRAWTEXT(底部=30,L-0.8,'大底来临');
DRAWTEXT(超短强买=50,L-0.5,'底部启动');
TTJ:=BARSLAST((VOL=HHV(VOL,20)));
K0:=TTJ=0;
K1:=SUMBARS(K0,1);
K2:=SUMBARS(K0,2);
K3:=SUMBARS(K0,3);
K4:=SUMBARS(K0,4);
K5:=SUMBARS(K0,5);
K6:=SUMBARS(K0,6);
K7:=SUMBARS(K0,7);
K8:=SUMBARS(K0,8);
K9:=SUMBARS(K0,9);
K10:=SUMBARS(K0,10);
C1:=REF(C,K1-1);
AA:STICKLINE(K1<=30,REF(C,K1-1)*1.002,REF(C,K1-1),10,0),COLORYELLOW;
BA:STICKLINE(K2<=30,REF(C,K2-1)*1.002,REF(C,K2-1),10,0),COLORWHITE;
CA:STICKLINE(K3<=30,REF(C,K3-1)*1.002,REF(C,K3-1),10,0),COLORBLUE;
DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;
EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;
FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;
GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;
HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;
IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;
JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!