最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > MA涨跌主图指标改成同花顺的

MA涨跌主图指标改成同花顺的

来源:网络 点击: 时间:2022-12-21 04:45:32

编写要求:

解答:

?网友求助:

请老师把这个MA涨跌主图指标改成同花顺的,谢谢


MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
涨家数:INDEXADV,NODRAW,COLORRED;
跌家数:INDEXDEC,NODRAW,COLORGREEN;
ZT:=C/REF(C,1)>1.097;
ZTBPJ:=REF(C,BARSLAST(ZT)+1)*0.98;{涨停不破价}
ZTBP:=BARSLAST(ZT)<30 AND (LLV(C,BARSLAST(ZT))>=ZTBPJ OR
LLV(C,BARSLAST(ZT))=ZTBPJ);{涨停不破}
STICKLINE(ZTBP,REF(C,BARSLAST(ZT))-REF(C,BARSLAST(ZT))*0.001,
REF(C,BARSLAST(ZT)),1,0),COLORMAGENTA;
STICKLINE(ZTBP,REF(L,BARSLAST(ZT))-REF(L,BARSLAST(ZT))*0.001,
REF(L,BARSLAST(ZT)),1,0),COLORMAGENTA;
J1:=V>REF(V,1);
J2:=V J3:=C>REF(C,1);
T:=DYNAINFO(8)>0;
VO:=VOL=LLV(VOL,60) AND T;
VP:=VOL=HHV(VOL,60) AND T;
地量柱:=T AND VO AND C>REF(C,1);
高量柱:=T AND VP AND C>REF(C,1);
倍量柱:=V>REF(V,1)*1.9 AND C>REF(C,1);
递量柱:=V>REF(V,1) AND V 平量柱:=V>REF(V,1)*0.98 AND V 黄金柱1:=REF(倍量柱,3) AND EVERY(J1,3) AND EVERY(J3,3);
DRAWTEXT(黄金柱1,L*0.995,'倍'),COLORYELLOW;{倍量柱+三日递量柱价升=黄金柱}
黄金柱2:=REF(倍量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
DRAWTEXT(黄金柱2,L*0.995,'背'),COLORYELLOW;{倍量柱+三日缩量柱价升=黄金柱}
黄金柱3:=REF(地量柱,3) AND EVERY(J1,3) AND EVERY(J3,3);
DRAWTEXT(黄金柱3,L*0.995,'地'),COLORBLUE;{地量柱+三日递量柱价升=黄金柱};
黄金柱4:=REF(高量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
DRAWTEXT(黄金柱4,L*0.995,'高'),COLORMAGENTA;{高量柱+三日缩量柱价升=黄金柱};
黄金柱5:=REF(递量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
DRAWTEXT(黄金柱5,L*0.97,'递'),COLORRED;{递量柱+三日缩量柱价升=黄金柱};
DRAWTEXT(平量柱,L*0.995,'平'),COLORGREEN;{递量柱+三日缩量柱价升=黄金柱};
缩倍:=H>L AND REF(C,1)>REF(O,1) AND REF(V,1)>V*1.9 AND REF(ZT,2);
DRAWTEXT(缩倍,L*0.97,'缩'),COLORRED;{立桩柱+梯量柱+缩倍量=黄金柱};
STICKLINE(缩倍,O,C,2,0),COLORMAGENTA;
DRAWICON(缩倍,LOW*0.96,25);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,N1,1);
D:=SMA(K,N2,1);
J:=3*K-2*D;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
AB:=MACD>REF(MACD,1);
VAR1:=(3*C+O+H+L)/6;
慢牛线:=EMA(3*VAR1-2*SMA(VAR1,2,1),8);
昨阳出绿:=C>O AND C<慢牛线;
追涨停:=C>=慢牛线 AND REF(C,1) DRAWICON(追涨停,L*0.98,7);

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top