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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。