通達(dá)信風(fēng)險(xiǎn)控制多空買賣指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 龍系
- 畫線方法: 副圖
- 日期:2024-08-26 來源:互聯(lián)網(wǎng)
通達(dá)信風(fēng)險(xiǎn)控制多空買賣指標(biāo)公式:
N:=3;
HS300:="399300$C";
HS3H:="399300$H";
HS3L:="399300$L";
HS3O:="399300$O";
HSJJ:=(2*HS300+HS3H+HS3L+HS3O)/5;
趨勢:=ZIG(HS300,3);
G:=BARSLAST(趨勢<REF(趨勢,1))-BARSLAST(趨勢>REF(趨勢,1));
A:=EMA(HS300,12);
B:=EMA(HS300,50);
C0:=(HS3H+HS3L)/2;
A0:=(HS300-LLV(HS3L,N))/(HHV(HS3H,N)-LLV(HS3L,N));
A1:=SMA(A0,2,1);
A2:=SMA(A1,2,1);
A3:=3*A1-2*A2 ;
A4:=2*A3-0.5;
SD:=(HS300+HS3H+HS3L)/3*(1-(A4-A2)/15);
T1:=IF(BETWEEN(HS300,A,B) AND G>0,25,0);
T2:=IF(HS300>=MAX(A,B),75,0);
T3:=IF(G>0,15,0);
T4:=IF(HS300>SD,10,0);
大盤安全系數(shù)%:(T1+T2+T3+T4),COLORRED,NODRAW;
{---------------------------------------------}
JJ:=(2*C+H+L+O)/5;
G趨勢:=ZIG(C,3);
GG:=BARSLAST(G趨勢<REF(G趨勢,1))-BARSLAST(G趨勢>REF(G趨勢,1));
GA:=EXPMA(C,12);
GB:=EXPMA(C,50);
GA0:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N));
GA1:=SMA(GA0,2,1);
GA2:=SMA(GA1,2,1);
GA3:=3*GA1-2*GA2 ;
GA4:=2*GA3-0.5;
GSD:=(H+L+C)/3*(1-(GA4-GA2)/15);
T10:=IF(BETWEEN(JJ,GA,GB) AND GG>0,25,0);
T20:=IF(JJ>=MAX(GA,GB),75,0);
T30:=IF(GG>0,15,0);
T40:=IF(C>GSD,10,0);
個(gè)股安全系數(shù)%:(T10+T20+T30+T40),COLORYELLOW,NODRAW;
{---------------------------------------------}
U1:=JJ>=MAX(GA,GB);
U2:=JJ<MIN(GA,GB);
U3:=BETWEEN(JJ,GA,GB) AND GA>=GB;
U4:=BETWEEN(JJ,GA,GB) AND GA<GB;
加倉:CROSS(U1,0.5),COLORRED;
清倉:CROSS(U2,0.5),COLORGREEN;
減倉:CROSS(U3,0.5),COLORYELLOW;
建倉:CROSS(U4,0.5),COLORMAGENTA;
{---------------------------------------------}
DRAWBAND(10,RGB(255,51,205),0,RGB(0,0,0));
DRAWBAND(20,RGB(108,38,255),10,RGB(0,0,0));
DRAWBAND(30,RGB(0,84,176),20,RGB(0,0,0));
DRAWBAND(40,RGB(0,153,248),30,RGB(0,0,0));
DRAWBAND(50,RGB(0,225,0),40,RGB(0,0,0));
DRAWBAND(60,RGB(255,255,0),50,RGB(0,0,0));
DRAWBAND(70,RGB(253,190,0),60,RGB(0,0,0));
DRAWBAND(80,RGB(255,119,53),70,RGB(0,0,0));
DRAWBAND(90,RGB(255,0,0),80,RGB(0,0,0));
DRAWBAND(100,RGB(206,0,0),90,RGB(0,0,0));
CW:=IF(HSJJ>MAX(A,B),(2*個(gè)股安全系數(shù)%+大盤安全系數(shù)%)/3,個(gè)股安全系數(shù)%);
DRAWBAND(100,RGB(0,0,0),CW,RGB(255,255,255));
倉位控制:CW,COLORWHITE,LINETHICK2;
{---------------------------------------------}
TV:=IF(ISLASTBAR AND PERIOD=5,(V*240/FROMOPEN+V)/2,V);
Q:=IF(ABS(C-O)>0,(C-O)/(H-L)*50+50,50);
DT:=TV*Q/100;
KT:=TV-DT;
多頭量能:=MA(DT,3);
空頭量能:=MA(KT,3);
強(qiáng)度:((多頭量能/(多頭量能+空頭量能)*100-50)*2),COLORYELLOW,NODRAW;
選股:IF(建倉 OR 加倉,強(qiáng)度,0),NODRAW,COLORWHITE;
STICKLINE(HSJJ>=MAX(A,B),120,111,3,0),COLORRED;
STICKLINE(HSJJ<B,120,111,3,0),COLORGREEN;
STICKLINE(BETWEEN(HSJJ,A,B) AND A>B,120,111,3,0),COLORYELLOW;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(HSJJ<B),105,'★綠市場★ ●選熱點(diǎn)●快進(jìn)出●輕倉做●'),COLORGREEN;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(HSJJ>=MAX(A,B)),105,'★紅市場★ ●選龍頭●中長線●可重倉●'),COLORRED;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(BETWEEN(HSJJ,A,B) AND A>B),105,'★黃市場★ ●多觀望●看大勢●尋方向●'),COLORYELLOW;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(加倉),100,'★操作信號:加倉'),COLORRED;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(清倉),100,'★操作信號:清倉'),COLORGREEN;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(減倉),100,'★操作信號:減倉'),COLORYELLOW;
DRAWTEXT(FILTER(BACKSET(ISLASTBAR,8),8) AND CONST(建倉),100,'★操作信號:建倉'),COLORMAGENTA;
通達(dá)信風(fēng)險(xiǎn)控制多空買賣指標(biāo)公式實(shí)例圖解:
通達(dá)信風(fēng)險(xiǎn)控制多空買賣指標(biāo)公式
- ·通達(dá)信波段風(fēng)險(xiǎn)買賣指標(biāo)公式
- ·通達(dá)信風(fēng)險(xiǎn)評測買賣指標(biāo)公式
- ·通達(dá)信KDJMACD金叉共振風(fēng)險(xiǎn)區(qū)指標(biāo)公式
- ·通達(dá)信倉位風(fēng)險(xiǎn)指標(biāo)公式
- ·通達(dá)信放量打拐拐點(diǎn)跟蹤風(fēng)險(xiǎn)提示指標(biāo)公式
- ·通達(dá)信大將軍高級版中金財(cái)富倉位風(fēng)險(xiǎn)指標(biāo)公
- ·通達(dá)信風(fēng)險(xiǎn)與機(jī)會多空指標(biāo)公式
- ·通達(dá)信風(fēng)險(xiǎn)預(yù)測紅綠波段買賣指標(biāo)公式
- ·同花順風(fēng)險(xiǎn)猛虎波段買賣指標(biāo)公式
- ·通達(dá)信買賣風(fēng)險(xiǎn)提示波段操盤指標(biāo)公式
- ·通達(dá)信風(fēng)險(xiǎn)量化組合趨勢投資指標(biāo)公式
- ·大智慧洗盤結(jié)束主力莊家逃跑風(fēng)險(xiǎn)指標(biāo)公式