大智慧{动员机副图}[大智慧公式]
[code]{动员机副图}
{配景颜色设定}
DRAWGBKLAST(CLOSE>0,STRIP(RGB(55,75,55),RGB(10,10,20),0));
{原神猴探月公式 将原神猴线更名能量线}
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:=能量线>=0;
能量线2:=能量线<=0;
{原 庄家克星的抄底逃顶公式 将山水线更名抛留线,去掉倒影线}
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;
[/code]
页:
[1]