MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
PJ1:=(MA5+MA10+MA20+MA30+MA60)/5;
FANGCHA1:=10000*(PJ1-MA5)/PJ1*(PJ1-MA5)/PJ1+10000*(PJ1-MA10)/PJ1*(PJ1-MA10)/PJ1+10000*(PJ1-MA20)/PJ1*(PJ1-MA20)/PJ1+10000*(PJ1-MA30)/PJ1*(PJ1-MA30)/PJ1+10000*(PJ1-MA60)/PJ1*(PJ1-MA60)/PJ1;
FC5:IF(FANGCHA1>20,20,FANGCHA1),COLORRED;
PJ2:=(MA5+MA10+MA20+MA30)/4;
FANGCHA2:=10000*(PJ2-MA5)/PJ2*(PJ2-MA5)/PJ2+10000*(PJ2-MA10)/PJ2*(PJ2-MA10)/PJ2+10000*(PJ2-MA20)/PJ2*(PJ2-MA20)/PJ2+10000*(PJ2-MA30)/PJ2*(PJ2-MA30)/PJ2;
FC4:IF(FANGCHA2>20,20,FANGCHA2),COLORFF9900;
DRAWTEXT(FC4<10 AND C>MA5 AND C>MA20 AND C>MA60 AND FC5<20,FC4,'买'),COLORRED;
DRAWTEXT(FC4<10 AND C>MA5 AND C>MA20 AND C>MA60 AND FC5<10,FC4,"买");
SHI:10,COLORWHITE;
LING:0,COLORGREEN;
同花顺均线方差指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/32046.html