紅燈停綠燈通行指標及兩個選股公式源碼[通達信公式]
相關標簽:
原理解析:
源碼
A:=MAX(MA(C,5),MA(C,10));
B:=MIN(MA(C,5),MA(C,10));
綠:C>A,COLORGREEN;
紅:C<B,COLORRED;
黃:C>=B AND C<=A,COLORYELLOW;
STICKLINE(C>A,3.3,4,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,3.3,4,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=B AND C<=A,3.3,4,8,0),COLORYELLOW,LINETHICK2;
F30A:=MAX(MA(C,10),MA(C,20));
F30B:=MIN(MA(C,10),MA(C,20));
綠燈F30:C>F30A,COLORGREEN;
紅燈F30:C<F30B,COLORRED;
黃燈F30:C>=F30B AND C<=F30A,COLORYELLOW;
STICKLINE(C>F30A,2.3,3,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F30B,2.3,3,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=F30B AND C<=F30A,2.3,3,8,0),COLORYELLOW,LINETHICK2;
F60A:=MAX(MA(C,20),MA(C,28));
F60B:=MIN(MA(C,20),MA(C,28));
綠燈行F60:C>F60A,COLORGREEN;
紅燈停F60:C<F60B,COLORRED;
黃燈觀望F60:C>=F60B AND C<=F60A,COLORYELLOW;
STICKLINE(C>F60A,1.3,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F60B,1.3,2,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=F60B AND C<=F60A,1.3,2,8,0),COLORYELLOW,LINETHICK2;
FRA:=MAX(MA(C,60),MA(C,120));
FRB:=MIN(MA(C,60),MA(C,120));
綠燈行FR:C>FRA,COLORGREEN;
紅燈停FR:C<FRB,COLORRED;
黃燈觀望FR:C>=F30B AND C<=F30A,COLORYELLOW;
STICKLINE(C>FRA,0,1,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<FRB,0,1,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=FRB AND C<=FRA,0,1,8,0),COLORYELLOW,LINETHICK2;
DPA:=MAX(MA(INDEXC,60),MA(INDEXC,120));
DPB:=MIN(MA(INDEXC,60),MA(INDEXC,120));
=============================================================
1A:=MAX(MA(C,5),MA(C,10));
F30A:=MAX(MA(C,10),MA(C,20));
F60A:=MAX(MA(C,20),MA(C,28));
FRA:=MAX(MA(C,60),MA(C,120));
CROSS(C,FRA)AND C>F30A AND C>A AND C>F60A;
==============================================
選股公式2
A:=MAX(MA(C,5),MA(C,10));
F30A:=MAX(MA(C,10),MA(C,20));
F60A:=MAX(MA(C,20),MA(C,28));
FRA:=MAX(MA(C,60),MA(C,120));
CROSS(C,F60A)AND C>F30A AND C>A AND C>FRA;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容