以下是通达信顶底知指标公式

给大家送个“顶底知“指标,希望在波段中对大家有帮助

DF:=3;
 N1:=12;
 RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
 K:=SMA(RSV,DF,1);
 D:=SMA(K,DF,1);
 KK:=SMA(RSV,DF,1);
 DD:=SMA(K,DF,1);
 N:=KK+DD;
关注区:STICKLINE(N<50,N,50,1,0),COLORFF00FF;
风险区:STICKLINE(N>160,N,160,1,0),COLORGREEN;

VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
 VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
 VAR03:=CROSS(VAR02,VAR01);
 VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
 VAR05:=COUNT(VAR03,7)>0 AND VAR04;
 VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
 VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);
 VAR08:=EMA(VAR07,10);
 VAR09:=EMA(C,5);
 VAR10:=LLV(LOW,33);
 VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;
 VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);
底线:VAR02*2,COLORGREEN;
趋势:VAR01*2,COLORRED;

DRAWICON(LONGCROSS(底线,趋势,0.1),底线,2),COLORRED;
 DRAWICON(LONGCROSS(趋势,底线,0.1),趋势,1),COLORGREEN;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。