编写要求:
解答:
?网友求助:
求各位老师帮忙!
如何做到本次向下的面积小于上一次向下的面积时,指标发出指示,飞狐或者通达信,最好是飞狐用的
就是禅中说缠中 下跌+横盘+下跌时判断盘整背驰
DIFF:EMA(C,12)-EMA(C,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21),0.2,0);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:REF(CLOSE,A2+1)
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;
MA5:=MACD;
BV:=SUM(MA5,0);
BA:=IF(MAX(BV,REF(BV,2))REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMA5:=(BV-REF(BV,BC))/8,COLORBLUE,LINETHICK2;
面积:SMA5;
T:=BARSLAST(SMA5>0 AND REF(SMA5,1)<0);
T1:=T+REF(T,T+1);
Q:=REF(SMA5,T+1);
Q2:=REF(SMA5,T1+2);
DRAWICON(Q2
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!