飞狐双周期MACD指标公式

DIFF:EMA(CLOSE,24) - EMA(CLOSE,52),COLORCC33CC;
DEA:EMA(DIFF,18),color66CC00;
FILLRGN(DIFF>DEA,DIFF,DEA),COLORCC33CC;
FILLRGN(DIFF<DEA,DIFF,DEA),color669900;
DIFF本:EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE,LINETHICK1;
DEA本:EMA(DIFF本,9),COLORYELLOW,LINETHICK1;
macd:2*(DIFF本-DEA本),COLORSTICK ;
{ _飞狐股票指标公式}
A2:=IF(crOSS(0,DEA本),1,0);
A12:=IF(DIFF本>0 AND CROSS(DIFF本,DEA本),1,0);
SS2:=IF(A2,SUM(A12,0),0);
SSB2:=HHV(SS2,0);
SSS2:=SUM(A12,0);
轴上第1次金叉:=IF(SSS2-SSB2=1 AND SSS2>REF(SSS2,1),1,0);
DRAWTEXT(FILTER(轴上第1次金叉>0,5),DIFF本,'轴上第1次'),COLORWHITE;
A22:=IF(CROSS(DEA本,0),1,0);
A212:=IF(DIFF本<0 AND CROSS(DIFF本,DEA本),1,0);
SS22:=IF(A22,SUM(A212,0),0);
SSB22:=HHV(SS22,0);
SSS22:=SUM(A212,0);
轴下第2次金叉:=IF(SSS22-SSB22>1 AND SSS22>REF(SSS22,1),1,0);
DRAWTEXT(FILTER(轴下第2次金叉>0,5),DEA,'轴下2次'),COLORYELLOW;
DRAWTEXT(REF(MacD,1)>0 AND MACD<0,MACD,'1');
DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD,'2');
DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD,'3');
DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD,'4');
DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD,'5');
DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD,'6');
倍量:=(V/REF(V,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.91);
百日低量:=REF(V,1)<=REF(LLV(V,100),1);
平量:=REF(V,2)<=REF(LLV(V,100),2) AND Abs(REF(V,1)-REF(V,2))/REF(V,2)<=0.03;
XG:=倍量 AND (百日低量 OR 平量);
QJJ:=vol/((H-L)*2-ABS(C-O));
XVL:=IF(C>O,QJJ*(H-L),IF(C<O,QJJ*(H-O+C-L),VOL/2))+IF(C>O,0-QJJ*(H-C+O-L),IF(C<O,0-QJJ*(H-L),0-VOL/2));
HSL:=XVL/23;
流量:=HSL+REF(HSL,1)+REF(HSL,2);
LLJX:=EMA(流量,3);
量:=REF(LLJX,1)<=0 AND LLJX>0 AND HSL>0 AND XG;
DRAWTEXT(FILTER(量>0,5),DIFF,'倍量'),COLORGREEN;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图