低位轉高位轉分時黃金白銀版[通達信公式]
原理解析:
源碼:
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
做多:=C>A,COLORRED;
做空:=C<B,COLORGREEN;
觀望:=A>=C AND C>=B,COLORYELLOW ;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
短線:=(DIF-DEA)*3,COLORCYAN,LINETHICK2;
DIF2:=EMA(CLOSE,60)-EMA(CLOSE,130);
DEA2:=EMA(DIF2,45);
中線:(DIF2-DEA2)*2,COLORLIRED,LINETHICK2;
DIF3:=EMA(CLOSE,240)-EMA(CLOSE,520);
DEA3:=EMA(DIF3,180);
長線:(DIF3-DEA3)*2,COLORRED,LINETHICK2;
高位轉:HHV(長線,450),COLORGREEN,;
低位轉:LLV(長線,450),COLORCYAN,;
高位轉1:HHV(中線,450),COLORGREEN,DOTLINE;
低位轉1:LLV(中線,450),COLORCYAN,DOTLINE;
STICKLINE(C>A AND 長線<0,低位轉,高位轉1,8,0),COLORMAGENTA;
STICKLINE(C<B,低位轉,高位轉1,8,0),COLORLICYAN;
STICKLINE(C>A,低位轉,高位轉1,8,0),COLORLIRED;
DRAWBAND(高位轉,RGB(0, 0, 205),高位轉1,RGB(139, 62, 47));
STICKLINE(A>=C AND C>=B AND 中線<REF(中線,1),低位轉,高位轉1,8,0),COLORBLUE;
DRAWTEXT(CROSS(長線,中線) AND 長線>0,高位轉1-0.01,'▼頂 '), COLORCYAN;
DRAWTEXT(CROSS(中線,低位轉) ,中線,'底'), COLORYELLOW;
STICKLINE(A>=C AND C>=B AND 中線>REF(中線,1),低位轉,高位轉1,8,0),COLORYELLOW;
(DIF2-DEA2)*2,COLORCYAN;
(DIF3-DEA3)*2,COLORRED,LINETHICK2;
0,COLORWHITE;
STICKLINE(中線<低位轉 ,中線,低位轉,8,0),COLORWHITE;
HHV(長線,450),COLORGREEN,;
LLV(長線,450),COLORCYAN,;
HHV(中線,450),COLORGREEN,DOTLINE;
LLV(中線,450),COLORCYAN,DOTLINE;
DRAWTEXT(CROSS(低位轉1,長線) ,長線-0.01,'大底'), COLORYELLOW;
STICKLINE(長線<低位轉1,長線,低位轉1,8,0),COLORMAGENTA;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容