R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
主力控盘:=10;{高手指标公式网www.gs6699.com}
优化版指标:=EMA(R,主力控盘);
公式:=EMA(优化版指标,5);
通达信:=优化版指标-公式;
vesss1:=优化版指标+通达信;
PR:100-ABS(vesss1) COLORRED LINETHICK1;
vesss2:MA(PR,5) COLORWHITE LINETHICK1;
K:=15;
vesss3:=(K/100)*STD(PR-REF(PR,1),10);
XA:=IF(PR<REF(PR,1),PR,0);
XN:=BARSLAST(XA>0 );
vesss4:=REF(PR,XN);
YA:=IF(PR>REF(PR,1),PR,0);
YN:=BARSLAST(YA>0) ;
vesss5 :=REF(PR,YN);
RR:=IF( vesss5-PR>vesss3,-1,0) ;
TT:=IF( PR- vesss4>vesss3,1,RR) ;
IF(TT=1,PR,DRAWNULL), COLORRED , LINETHICK4;
IF(TT=-1,PR,DRAWNULL), COLORGREEN , LINETHICK2;
IF(TT=0,PR,DRAWNULL), COLORWHITE , LINETHICK2;
80 COLORBROWN LINETHICK1;
20 COLORBROWN LINETHICK1;