万物公式网是一个专注于股票软件、股票公式资源分享的平台
微信公众号:万物狙击

网站首页 > 同花顺指标 正文

同花顺均线方差指标公式

admin 2023-10-15 15:20:57 同花顺指标 930 ℃
QQ交流群586838595

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;

QQ交流群586838595