以下是通达信黄金指标公式源码和使用说明
使用说明
设置参数:根据您的交易策略和偏好,设置指标的参数。这些参数可能包括周期长度、移动平的类型和参数等。确保您根据自己的需求进行正确的参数设置。
观察指标数值:通过将黄金抄底指标应用到您的图表中,观察指标的数值变化。该指标通常会以线形或柱状图的形式显示在价格图表下方或指标窗口中。
分析指标信号:根据指标的数值和图表表现,分析指标的信号。通常,指标值的上升或下降、与价格走势的以及指标值的超买或超卖水平都可能提供一些交易信号。
通达信黄金抄底指标公式源码:
N:=2;M:=3;
VAR2:=1;
VAR3:=REF(HIGH,1)*1.1;
VAR4:=HIGH*1.1;
VAR5:=(VAR4*+VAR3*(CAPITAL-VOL))/CAPITAL;
VAR6:=REF(LOW,1)*0.9;
VAR7:=LOW*0.9;
VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;
VAR9:=Ema(VAR8,30);
VARA:=EMA(VAR5,30);
VARB:=VARA-2;
VARC:=IF(CLOSE =VAR9,VARB,VARA);
VARD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
VAR10A:=CLOSE/MA(CLOSE,20)*100
VAR20A:=CLOSE/MA(CLOSE,40)*100
VAR30A:=CLOSE/MA(CLOSE,60)*100
VAR40A:=HIGH LOW*1.051;
VAR50A:=VAR40AANDCOUNT(VAR40A,5)
绝地鹰王:=VAR50AAND(VAR10AORVAR20AORVAR30A);
LC:=REF(CLOSE,1);
:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
RSI底:=RSI
MA5:=MA(C,5);
五日乖离率:=(C-MA5)/MA5*100,COLORF00FF0,LINETHICK2;
乖离底:=五日乖离率
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
WWQQ:=IF(JJ =100,100,IF(JJ =0,0,JJ));
加分底:=WWQQ=100;
XG:=绝地鹰王ANDRSI底AND乖离底AND加分底;
DRAWTEXT(XG=1,3.5,'底'),COLORYELLOW;
STICKLINE(XG=1,0,2,3,0),COLORYELLOW;
VAR1:=SUM(IF((CLOSE REF(CLOSE,1)),vol,IF((CLOSE REF(CLOSE,1)),0-VOL,0)),0);
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=(IF((CLOSE LLV(CLOSE,VAR2)),1,0-1))*(IF((VAR1 LLV(VAR1,VAR2)),1,0-1));
VAR4:=IF((VAR3=0-1),1,0);
VAR5:=(COUNT((VAR4=1),8)
VAR6:=((SUM(AMOUNT,13))/(((AMOUNT)/(VOL))/(100)))/(100);
VAR7:=DMA((OPEN+HIGH+LOW+CLOSE)/(4),(VOL)/(VAR6));
VAR8:=(((CLOSE-VAR7)/(VAR7))*(100) 0-17);
VAR9:=((CLOSE-MIN((REF(CLOSE,5))*(0.82999998),(REF(CLOSE,21))*(0.72000002)))/(CLOSE) 0.05);
RSW:=VAR8ANDVAR9ANDVAR5;
黄金:IF((RSW 0),1,0),COLORFFFF00;
DRAWTEXT(黄金,1,'黄金'),COLORFFFF00;
出手:stICKLINE(VARC-VARB=0ANDVAR2ANDcrOSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),COLORCC9966;
赢:DRAWTEXT(FILTER(VARC-VARB=0ANDCROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55,'买入'),COLORBLUE,;
VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
卖出线:SMA(SMA(VARE,3,1),3,1),COLORYELLOW,;
买入线:3*SMA(VARE,3,1)-2*卖出线,COLORRED,;
DRAWICON(CROSS(90,买入线),90,2);
顶:STICKLINE(CROSS(90,买入线),15,0,5,0),COLORGREEN,;
黄金点:STICKLINE(SMA(VARE,3,1) 卖出线,SMA(VARE,3,1),卖出线,4,0),COLOR1133FF;
长买:FILTER(VARC-VARB=0ANDCROSS((EMA(EMA(EMA(CLOSE,N),N),N)
-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)
*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))
/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4);
短买:CROSS(买入线,卖出线);
DRAWTEXT(短买,卖出线,'★'),COLORRED;
RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趋势J1:3*K-2*D,COLORRED;
趋势J2:EMA(K,3),LINETHICK1;
IF(趋势J1 =REF(趋势J1,1),趋势J1,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势J1 REF(趋势J1,1),趋势J1,DRAWNULL),COLORBLUE,LINETHICK2;
BBIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
反弹:=IF(CROSS(K,D)ANDBBIAS -6ANDD 16ANDCLOSE REF(CLOSE,1),80,0),COLOR00FF00;
DRAWICON(反弹=80,趋势J2-0.005,1);
阶段底:EMA(IF(L =LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,COLORRED,LINETHICK2;
DRAWLINE(D =HHV(D,13),D,D =LLV(D,13),D,1),COLOR00FF00;
V1:=AMOUNT/VOL/100;
V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
V3:=SUM(AMOUNT,7)/V1/100;
V4:=DMA(V2,VOL/V3);
V5:=(CLOSE-V4)/V4*100;
V6:=MA(V5,20)+STD(V5,20);
BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
STICKLINE(REF(BIAS21,1) =5ANDCROSS(V6,V5)ANDREF("KDJ.J"(34,3,3),1) 80ANDREF("KDJ.J"(9,3,3),1) 80,90,85,5,0),COLOR00FF00;
水面:20;
通达信黄金抄底指标公式截图