编写要求:
解答:
?网友求助:
帮我在出现"海嘯来了、核辐谢出现时各做一个预警公式。公式和示意图如下:
MA1:=MA(C,5);MA2:=MA(C,13);MA3:=MA(C,21);MA4:=MA(C,40);MA5:=MA(C,55);
M1:=5;M2:=10;M3:=20;M4:=60;P:=VOL;M5:=MA(P,M1);
M13:=MA(P,M2);M21:=MA(P,M3);M55:=MA(P,M4);
放牛郎系统公式:=IF(MA(P,M1)>MA(P,M4)*0.95,22,0)COLORFF33CC,LINETHICK3;
VOLUME:=VOL;
日本大地震:=VOL/REF(MA(VOL,5),1)COLORGREEN;
LONG:=22;SHORT:=10;M:=7;
DIFF:=EMA(CLOSE,10)-EMA(CLOSE,22);
DEA:=EMA(DIFF,7);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
宫城县:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1)
AND CROSS(DIFF,DEA),LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
福岛:=REF(CLOSE,A2+1)
AND CROSS(DEA,DIFF);
B1:=BARSLAST(REF(CROSS(MA2,MA3),1));
第一核电站:=IF(MA3
AND CROSS(MA2,MA3),20,1)COLORGREEN,LINETHICK3;
核爆炸:=IF((CROSS(MA2,MA3*0.993) OR CROSS(MA2,MA3))
AND (MA1
AND C>MA3 AND MA2
AND LAST(C
B2:=BARSLAST(REF(CROSS(MA2,MA3),1));
第二核电站:=IF(MA3>REF(MA3,B1+1) AND MA2>REF(MA2,B1+1)
AND CROSS(MA2,MA3*0.998),1500,1)COLORYELLOW,LINETHICK3;
核泄漏:=IF((CROSS(MA2,MA3*0.998) OR CROSS(MA2,MA3) OR CROSS(MA2,MA3*1.003))
AND C>MA2 AND MA1>MA5 AND MA2>MA5 AND MA3>MA5
AND MA2>REF(MA2,1) AND MA3>REF(MA3,1)
AND MA5>REF(MA5,1),888,0)COLORWHITE,LINETHICK5;
CL:=(日本大地震>5 OR REF(日本大地震>5,1)) AND C>REF(C,HHVBARS(C,60));
核辐射:IF(核泄漏 AND REF(EXIST(核泄漏=888,40),6)
AND (LAST(福岛=0,10,1) OR C>REF(C,HHVBARS(C,120)) OR CL)
AND (第二核电站=1500 OR REF(第二核电站=1500,1))
AND LAST(MA2>MA5*0.998,30,1) AND LAST(MA3>MA5*0.998,30,1)
AND C>MA2 AND MA1>MA5 AND MA2>MA5 AND MA3>MA5
AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA5>REF(MA5,1)
AND HHV(MA3,20)/LLV(MA3,20)<1.13
,444,0)COLORYELLOW,LINETHICK5;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!