通达信自适应交易通道指标公式通达信公式
2017-08-25 来源:网络 编辑:翔博软件
PC:=7/16*MA(C,5)+5/16*MA(C,10)+3/16*MA(C,20)+1/16*MA(C,60); D:=IF((HPC AND L=PC) OR (LPC AND H=PC),MAX((H/PC-1)*100,(PC/L-1)*100),((H/PC-1)+(PC/L-1))/2*100); PD:=MA
PC:=7/16*MA(C,5)+5/16*MA(C,10)+3/16*MA(C,20)+1/16*MA(C,60);
D:=IF((H>PC AND L>=PC) OR (L<PC AND H<=PC),MAX((H/PC-1)*100,(PC/L-1)*100),((H/PC-1)+(PC/L-1))/2*100);
PD:=MA(D,M);
PCR:REF(PC,1),DOTLINE,COLORGRAY;
UW1:REF(PC*(1+PD/100),1),COLORBLUE;
LW1:REF(PC*(1-PD/100),1),COLORRED;
UW2:REF(PC*(1+1.5*PD/100),1),COLORCYAN;
LW2:REF(PC*(1-1.5*PD/100),1),COLORYELLOW;