通達信紅綠燈+選股指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 神系
- 畫線方法: 副圖
- 日期:2024-08-29 來源:互聯(lián)網(wǎng)
通達信紅綠燈+選股指標公式:
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));
綠燈行DP:INDEXC>DPA,COLORGREEN;
紅燈停DP:INDEXC<DPB,COLORRED;
黃燈觀望DP:INDEXC>=DPB AND INDEXC<=DPA,COLORYELLOW;
STICKLINE(INDEXC>DPA,4.3,5,8,0),COLORGREEN,LINETHICK2;
STICKLINE(INDEXC<DPB,4.3,5,8,0),COLORRED,LINETHICK2;
STICKLINE(INDEXC>=DPB AND INDEXC<=DPA,4.3,5,8,0),COLORYELLOW,LINETHICK2;
XG:(綠 AND 綠燈F30 AND 綠燈行F60 AND 綠燈行FR)=1;
選股公式:
A:=MAX(MA(C,5),MA(C,10));
綠:=C>A,COLORGREEN;
F30A:=MAX(MA(C,10),MA(C,20));
綠燈F30:=C>F30A,COLORGREEN;
F60A:=MAX(MA(C,20),MA(C,28));
綠燈行F60:=C>F60A,COLORGREEN;
FRA:=MAX(MA(C,60),MA(C,120));
綠燈行FR:=C>FRA,COLORGREEN;
DPA:=MAX(MA(INDEXC,60),MA(INDEXC,120));
綠燈行DP:=INDEXC>DPA,COLORGREEN;
XG:綠 AND 綠燈F30 AND 綠燈行F60 AND 綠燈行FR{ AND 綠燈行DP};
通達信紅綠燈+選股指標公式實例圖解:
通達信紅綠燈+選股指標公式