{原神猴探月公式 将原神猴线改名能量线}
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CS,3)-50)*2;
能量线:YJD,precis2;{探测能量动力,很像KDJ公式的J值}
中线:=0;
PARTLINE(YJD,中线);
DRAWTEXT(cross(YJD,中线),0,'●'),COLORred,ALIGN1;{买入点2}
能量线1:=能量线
能量线2:=能量线
{原 庄家克星的抄底逃顶公式 将山水线改名抛留线,去掉倒影线}
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,5);
Var3:=HHV(HIGH,4);
Var5:=(Var1-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
Var6:=SMA(Var5,2,1);
sK:EMA((Var1-Var2)/(Var3-Var2)*100,4),LINETHICK0,precis2;
sD:EMA(0.667*REF(sK,1)+0.333*sK,2),LINETHICK0,precis2;
sJ:2*sK-1*sD,LINETHICK0,precis2;
sKD差:sK-sD,colorred,LINETHICK0,precis2;
抛留线: SMA(Var6,2,1),COLOR889999,LINESTICK;
金叉:if(CROSS(sK,sD),抛留线,0),colorffffff,LINETHICK2;{买入点}
VERTLINE(CROSS(金叉,0.1),2),COLORffffff;
FILLRGN(0,能量线,能量线1,RGB(255,48,48)),LAYER7;
PARTLINE(抛留线,抛留线 REF(抛留线,1),RGB(255,0,0),抛留线 REF(抛留线,1),RGB(0,250,0)),linethick2;{红留,变绿一定卖}
PARTLINE(能量线,能量线 REF(能量线,1),RGB(255,0,0),能量线 REF(能量线,1),RGB(0,250,0)),linethick1;{绿不进,变红后市可看好}
VERTLINE(CROSS(能量线1,0.1),2),COLOR0000FF;
{淑女萱 一阳穿四线}
DRAWTEXT(CROSS(C,MA(C,5)) AND CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20)) AND CROSS(C,MA(C,30)) and CROSS(MA(V,5),MA(V,10)),-10,'一阳穿四线'),COLORyellow,LINETHICK2;
顶线:80,COLORred;
强势:65,COLORffffff,dotline,precis2;
中线:0,COLORffffff,dotline,precis2;
均线:-65,COLORred,dotline,precis2;
底线:-80,COLORgreen;
DRAWTEXT(DISPSTATUS=2,顶线,' 80 顶线'),COLORred,ALIGN0;
DRAWTEXT(DISPSTATUS=2,强势,' 65 强势'),COLORffffff,ALIGN0;
DRAWTEXT(DISPSTATUS=2,中线,' 00 中线'),COLOR00FFFF,ALIGN0;
DRAWTEXT(DISPSTATUS=2,均线,' 均线提示'),COLORffffff,ALIGN0;
DRAWTEXT(DISPSTATUS=2,底线,' -80 底线'),COLORgreen,ALIGN0;
{庄家克星 神奇均线主图}
Var10:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1: (EMA(Var1,3)+EMA(Var1,6)+EMA(Var1,12)+EMA(Var1,24))/4;
A2: EMA(A1,2),linethick0;
A3: EMA(A2,2),linethick0;
A4: EMA(A3,2),linethick0;
A5: EMA(A4,2),linethick0;
A6: EMA(A5,2),linethick0;
A7: EMA(A6,2),linethick0;
A8: EMA(Var1,2.78)*1.028,colorffffff,linethick0;
A9: MA(OPEN,3.2)*1.028,colorgreen,linethick0;
短线:=A8;
中线:=A9;
DRAWTEXT(cross(短线,中线),-65,'进'),COLORred,ALIGN1;
DRAWTEXT(cross(中线,短线),-65,'退'),COLORgreen,ALIGN1;