通达信境辰底部公式源码

VAR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);

VAR2:=HIGH-REF(HIGH,1);

VAR3:=REF(LOW,1)-LOW;

VAR4:=EXPMEMA(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),14);

VAR5:=EXPMEMA(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),14);

VAR6:=VAR4*100/VAR1;

VAR7:=VAR5*100/VAR1;
 

VAR8:=EXPMEMA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,6);

VAR9:=VAR8-VAR6;

底部:VAR9/VAR6>13.88;