求高手把此(智能乖离)副图公式改为通达信的,谢谢! 源码: 黄线偏离百分比:(智能辅助.HHJSJDB)/智能辅助.HHJSJDB*100,COLORyellow; 红线偏离百分比:(智能辅助.HHJSJDC)/智能辅助.HHJSJDC*100,COLORred;
爱约股解答:
AA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
BB:=(20*AA+19*REF(AA,1)+18*REF(AA,2)+17*REF(AA,3)+16*REF(AA,4)+15*REF(AA,5)+14*REF(AA,6)+13*REF(AA,7)+12*REF(AA,8)+11*REF(AA,9)+10*REF(AA,10)+9*REF(AA,11)+8*REF(AA,12)+7*REF(AA,13)+6*REF(AA,14)+5*REF(AA,15)+4*REF(AA,16)+3*REF(AA,17)+2*REF(AA,18)+REF(AA,20))/210;
CC:=MA(BB,5);
黄线偏离百分比:(C-BB)/BB*100,COLORyellow;
红线偏离百分比:(C-CC)/CC*100,COLORred;