大智慧发动机副图指标
源码
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CS,3)-50)*2;
神猴线:YJD;;
中线:=0;
PARTLINE(YJD,中线);
DRAWICON(CROSS(YJD,中线),0,8),LINETHICK2;
DRAWTEXT(cross(YJD,中线),0,'●'),COLORred,ALIGN1;
VAR7:=(1.1)*CLOSE;
VAR8:=(0.9)*CLOSE;
VAR9:=100*(WINNER(VAR7)-WINNER(VAR8));
神猴线1:=神猴线>=0;
神猴线2:=神猴线<=0;
{山水倒影
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,5);
Var3:=HHV(HIGH,4);
sK:=EMA((Var1-Var2)/(Var3-Var2)*100,4);
sD:=EMA(0.667*REF(sK,1)+0.333*sK,2);
sJ:=2*sK-1*sD;
sKD差:sK-sD,colorred,LINETHICK0;
Var4:=(HHV(HIGH,4)-Var1)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;
倒影: SMA(Var4,4,1),COLOR889999,LINESTICK;
Var5:=(Var1-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
Var6:=SMA(Var5,2,1);
山水: SMA(Var6,2,1),COLOR889999,LINESTICK;
金叉:if(CROSS(sK,sD)and 山水<35,山水,0),colorffffff,LINETHICK2;
金叉1:if(CROSS(sK,sD)and sK<50,20,0),colorred,LINETHICK2;
银叉:if(CROSS(sK,sD)and 山水>36,山水,0),colorffffff,LINETHICK2;
VERTLINE(CROSS(金叉,0.1),2),COLORffffff;
{DRAWICON(金叉,山水,10),LINETHICK6;}
{FILLRGN(0,山水,RGB(250,250,0)),COLORblue,LAYER7;}
FILLRGN(0,神猴线,神猴线1,RGB(255,48,48)),LAYER7;
{FILLRGN(0,神猴线,神猴线2,RGB(50,25,0)),LAYER7;}
{FILLRGN(0,倒影,RGB(250,250,0)),COLORgreen,LAYER7;}
PARTLINE(山水,山水>REF(山水,1),RGB(255,0,0),山水<REF(山水,1),RGB(250,250,0)),linethick2;
PARTLINE(倒影,倒影<REF(倒影,1),RGB(0,255,0),倒影>REF(倒影,1),RGB(250,250,0)),linethick2;
PARTLINE(神猴线,神猴线>REF(神猴线,1),RGB(255,0,0),神猴线<REF(神猴线,1),RGB(0,250,0)),linethick2;
VERTLINE(CROSS(神猴线1,0.1),2),COLOR0000FF;
顶线:80,COLORred;
强势:65,COLORffffff,dotline,precis2;
{金顶:50,COLORffffff,dotline,precis2;}
{金差:35,COLORred,dotline,precis2;}
{金底:20,COLORffffff,dotline,precis2;}
中线:0,COLORffffff,dotline,precis2;
转势:-65,COLORred,dotline,precis2;
底线:-80,COLORgreen;
DRAWTEXT(DISPSTATUS=2,顶线,'
DRAWTEXT(DISPSTATUS=2,强势,'
{DRAWTEXT(DISPSTATUS=2,金顶,'
{DRAWTEXT(DISPSTATUS=2,金差,'
{DRAWTEXT(DISPSTATUS=2,金底,'
DRAWTEXT(DISPSTATUS=2,中线,'
DRAWTEXT(DISPSTATUS=2,转势,' -65
DRAWTEXT(DISPSTATUS=2,底线,' -80
短线:=("神奇均线.A8");
中线:=("神奇均线.A9");
DRAWTEXT(cross(短线,中线),-65,'☆'),COLORyellow,ALIGN1;
DRAWTEXT(cross(中线,短线),-65,'●'),COLORgreen,ALIGN1;
{一品趋势跟踪公式}
挖坑:="趋势跟踪.挖坑";
趋势:="趋势跟踪.趋势";
{FILLRGN(50,趋势,挖坑,RGB(250,250,0)),LAYER7;}
DRAWTEXT(挖坑,山水,'●'),COLORyellow,ALIGN1;