同花顺波段之王主图指标
源码
主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,linethick2,colorff00ff;
股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),colorgreen,linethick2;
ma14:=EMA(CLOSE,14);
ma34:=EMA(CLOSE,26);
ma54:=EMA(CLOSE,54);
ma90:=EMA(CLOSE,90);
ma120:EMA(CLOSE,120),POINTDOT,linethick2,colorwhite;
年线:EMA(C,250),coloryellow,linethick2;
hz:=EMA(CLOSE,13);
短波:EMA(hz,1),color00dd00,linethick1;
中波:EMA(hz,26),colorred,linethick1;
均线148天:=EMA(C,148),POINTDOT,linethick1,colorgreen;
成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,coloryellow ,linethick2 ;
hz2:EMA(hz,8),colorgreen,linethick2;
hz4:EMA(hz,39),colorff00ff,linethick2;
a1:STICKLINE(hz2<hz4,短波,hz4,1.5,0),colorblue ;
a2:STICKLINE(短波>hz2,短波,hz2,3,0),colorgreen;
a3:STICKLINE(中波>hz4,中波,hz4,2,0),colorff00ff;
rsv:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
fastk:=SMA(rsv,12,1);
k:=SMA(fastk,9,1),coloryellow;
d:=SMA(k,3,1),linethick2,colorblue;
j:=3*k-2*d,linethick1,colorgreen;
var11:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))
/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
var22:=100-var11;
中势线:=(-1)*(EMA(var22,1)-50)+42,coloryellow,linethick2;
tz:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;
强势线:=SMA(tz,5,1),linethick2,colorred;
大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),linethick1,color009900;
aa:=VOL/SUM(VOL,13);
bb:=DMA(C,aa);
cc:=VOL/SUM(VOL,34);
dd:=DMA(C,cc);
var00:=WINNER(CLOSE);
var1:=FORCAST(var00,10);
var2:=MA(var1,3);
var3:=MA(var2,12);
var4:=MA(var3,16);
var5:=MA(var4,31);
var6:=MA(var5,55);
var7:=var5;
var8:=var4>var2*1.11 AND var3>var2*1.095;
a:=var4/var2;
b:=var3/var2;
var9:=var2>var1*0.95;
td:=var2/var1;
var1h:=INDEXC;
var2h:=MA(var1h,6);
var3h:=MA(var1h,24);
var4h:=MA(var1h,32);
var5h:=MA(var1h,62);
var6h:=MA(var1h,105);
var7h:=var5h;
var8h:=var4h>var2h*1.11 AND var3h>var2h*1.095;
var9h:=var2h>var1h*0.95;
pt:=(IF(H=L AND C=O AND L=C AND C>0 AND REF(H,1)=REF(L,1) AND REF(C,1)=REF(O,1)
AND REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1))>0;
g:=(var7h AND var8h AND var9h AND CLOSE/COST(8)<=0.7985
AND (COUNT(C=L,4)<3 OR C>REF(C,1)))AND pt OR
var7 AND var8 AND var9 AND CLOSE/COST(5)<=0.8 AND
((var1>OPEN OR var1>REF(OPEN,1) OR
REF(var1,1)));
背离:=var2<REF(var2,1) AND a>REF(a,1);
买入信号1:=var1>a AND
买入信号2:=b>a AND
DRAWICON(CROSS(短波,hz2),中波,1);
DRAWTEXT(CROSS(主线,ma90) AND 大盘线<36 AND j>k AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND hz4-REF(hz4,1)>0.028 OR
CROSS(主线,ma120) AND 大盘线<36 AND j>k AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND hz4-REF(hz4,1)>0.028 OR
CROSS(ma120,均线148天) AND 大盘线<36 AND j>k AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 AND hz4-REF(hz4,1)>0.028 OR
CROSS(中势线,33) AND 短波>hz2 AND O>REF(O,1) AND C>REF(C,1) AND j>d AND j<65 AND 大盘线<36 AND 强势线>36 AND 主线>REF(主线,1)
AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 中势线<70
CROSS(短波,hz2) AND 大盘线<36 AND 短波>中波 AND 中波>hz4 AND 短波-REF(短波,1)>0.088 AND hz4-REF(hz4,1)>0.028 OR
j>k AND 大盘线<36 AND 短波>hz2 AND CROSS(强势线,36) OR CROSS(短波,hz2) AND CROSS(强势线,36) OR CROSS(j,k)
OR CROSS(短波,hz2) AND CROSS(强势线,54)
OR CROSS(j,k) AND 大盘线<36 AND j<65 AND C>O AND 短波-REF(短波,1)>0.088 OR
CROSS(j,k) AND 短波>hz2 AND j<68
CROSS(j,k) AND 大盘线<36 AND j<68 AND 短波-REF(短波,1)>0.088 OR CROSS(j,k) AND CROSS(短波,hz2) AND 大盘线<36 OR
CROSS(短波,hz2) AND 大盘线<36 AND j>k AND j<68 AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 OR
CROSS(短波,hz2) AND 中波>ma120 AND 中波>均线148天 AND hz2>ma120 AND ma120>均线148天 AND 短波-REF(短波,1)>0.088 OR
CROSS(j,k) AND 强势线>54 AND 强势线>REF(强势线,1) AND j<68
OR COUNT(背离,20)>1 AND 短波>hz2 AND O>REF(O,1) AND C>REF(C,1) AND j>d AND j<65 AND 买入信号2=1 AND 主线>REF(主线,1)
AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O OR
CROSS(bb,dd) AND j<74 AND ma34>REF(ma34,1) AND 短波-REF(短波,1)>0.088 OR
大盘线<36 AND j>d AND j<65 AND C>O AND 短波>REF(短波,1) AND CROSS(hz2,中波) AND 短波-REF(短波,1)>0.088
C>O AND 短波>REF(短波,1) AND j>d AND j<65 AND 大盘线<36 AND CROSS(中势线,33) AND 中势线-REF(中势线,1)>0.23 AND 短波-REF(短波,1)>0.088
AND O>REF(C,1) AND 强势线>12 OR
短波>hz2 AND 中波>hz4 AND 大盘线<36 AND CROSS(j,k) AND j<65 AND 短波-REF(短波,1)>0.088 OR
短波>hz2 AND 大盘线<36 AND CROSS(j,k) AND j<65 AND 短波-REF(短波,1)>0.088 OR CROSS(j,k) AND CROSS(短波,hz2) AND 大盘线<36 AND j<56 OR
短波>hz2 AND 中波>hz4 AND 大盘线<36
短波>hz2 AND hz2>hz4 AND 大盘线<36
短波>hz2 AND 大盘线<36
,hz2-0.18,'!追'),colorwhite;
DRAWTEXT(CROSS(短波,hz2) AND C>O AND j>k
DRAWTEXT(CROSS(短波,hz2) AND C>O AND j>k
DRAWTEXT(CROSS(短波,hz2),C,'♂');
DRAWTEXT(CROSS ( 中波,hz4),C,'♂');
DRAWTEXT(CROSS ( 中波,ma120),C,'♂');
DRAWTEXT(CROSS (hz4,ma120),C,'♂');