大智慧七彩副图源码
-
相关简介:P1:=5;P2:=20;P3:=30;N:=3; MA5:=MA(C,5),COLORWHITE; MA1:=MA(C,P1),COLORFF00FF; MA2:=MA(C,P2),COLOR00FF00; MA3:=MA(C,P3),COLORYELLOW; ZH12:=ABS(MA1-MA2)/MA2*100=N; ZH13:=ABS(MA1-MA3)/MA3*100=N; QSXS1:=MA1=REF(MA1,1); QSXS2:=MA2=REF(MA2,1); QSXS3:=MA3=R
-
文章来源:股海网作者:股海网发布时间:2016-06-09浏览次数:
P1:=5;P2:=20;P3:=30;N:=3;
MA5:=MA(C,5),COLORWHITE;
MA1:=MA(C,P1),COLORFF00FF;
MA2:=MA(C,P2),COLOR00FF00;
MA3:=MA(C,P3),COLORYELLOW;
ZH12:=ABS(MA1-MA2)/MA2*100<=N;
ZH13:=ABS(MA1-MA3)/MA3*100<=N;
QSXS1:=MA1>=REF(MA1,1);
QSXS2:=MA2>=REF(MA2,1);
QSXS3:=MA3>=REF(MA3,1);
GJHS:=C>MA1 AND QSXS1 AND NOT(REF(QSXS1,1));
买1:(GJHS AND ZH12 AND QSXS2)*38,COLOR00FF00,linethick2;
买2:(GJHS AND ZH13 AND QSXS3)*25,COLORRED,linethick2;
优选:(买1 AND COUNT((MA1>MA2),5)=5) OR (买2 AND COUNT((MA1>MA3),5)=5),COLORWHITE,POINTDOT;
DRAWICON(优选>0,0.30,1);
回升优选:优选*18,COLORyellow,linethick2;
{以下设置逃顶指标}
varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),0.3,2);
{2K}
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:SMA(RSV,3,1),COLORWHITE;
短D:SMA(短K,3,1),COLORYELLOW;
STICKLINE(短K>短D,短K,短D,6,0),COLORYELLOW;
STICKLINE(短K<=短D,短K,短D,6,0),COLORGREEN;
VAR1:=HHV(HIGH,13)-LLV(LOW,13);
VAR2:=HHV(HIGH,13)-CLOSE;
VAR3:=CLOSE-LLV(LOW,13);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9>100,VAR9-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;
STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;
趋势线:EMA(VAR13,5), COLORYELLOW;
出击:if(cross(VAR12,VAR13) and VAR12>VAR13 and VAR12<18,20,0) ,STICK,COLORRED;
卖出:if(cross(VAR13,VAR12) and VAR12<VAR13 and VAR12>60,VAR13,88),pointdot,COLORBLUE;
短趋势:EMA(SMA(MAX(C-REF(C,1),0),3,1)/SMA(ABS(C-REF(C,1)),3,1)*100,5),colorFF00FF,linethick1;