R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));{零延迟威廉线}
PERIODD:=10;
EMA1:=EMA(R,PERIODD);
EMA2:=EMA(EMA1,5);
DIFFERENCE:=EMA1-EMA2;
ZEROLAGEMA:=EMA1+DIFFERENCE;
PR:100-Abs(ZEROLAGEMA), COLORRED ,LINETHICK1;
MOVEAVG:MA(PR,5), COLORWHITE ,LINETHICK1;
K:=15;
FFILTER:=(K/100)*STD(PR-REF(PR,1),10);
XA:=IF(PR<REF(PR,1),PR,0);
XN:=BArslAST(XA>0 );
AMALOW:=REF(PR,XN);
YA:=IF(PR>REF(PR,1),PR,0);
YN:=BARSLAST(YA>0) ;
AMAHIGH :=REF(PR,YN);
RR:=IF( AMAHIGH-PR>FFILTER,-1,0) ;
TT:=IF( PR- AMALOW>FFILTER,1,RR) ;
80, LINETHICK1;
20, LINETHICK1;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)