最强选股战法推荐:
零轴:DYnaINFO(3)*1,COLOR0000FF;
XA1:=ma(CLOSE,20);
XA2:=(CLOSE>MA(CLOSE,5));
XA3:=(MA(CLOSE,5)>MA(CLOSE,10));
XA4:=(CLOSE>MA(CLOSE,10));
XA5:=(MA(CLOSE,5)>MA(CLOSE,20));
XA6:=(CLOSE>MA(CLOSE,20));
XA7:=REF(XA1,1);
XA8:=(XA1>XA7);
AVX:=(((((IF(XA2,10,(0 - 10)) + IF(XA3,10,(0 - 10))) + IF(XA4,10,(0 -10))) +
IF(XA5,10,(0 - 10))) + IF(XA6,10,(0 - 10))) + IF(XA8,10,(0 -10)))/80;
XFX:=AVX+零轴,COLOR00FFFF,LINETHICK1;
DRAWBAND(XFX,RGB(160,0,0),零轴,RGB(0,90,90));
谷峰线:XFX,COLOR8A8A8A;
N:=120;
{指标修改QQ:984388831}
K:=BArslAST(CURRBARSCOUNT=N);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}
KJ:=GD-DD;{高低点差值=分区高度}
GD4:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL); {设置分区的宽度,调整数据可调整分区宽度}
平衡:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR00FFFF;{低点+中点=0.50线,NODRAW}
压力:IF(CURRBARSCOUNT<=N/30,GD-KJ*0.191,DRAWNULL),COLORFF00FF;{高点-分区高度*0.191=0.819线,NODRAW}
支撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FF00;{低点+分区高度*0.191=0.191线,NODRAW}
高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;{高点划线,POINTDOT}
低:IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLOR00FF00;{低点划线,POINTDOT}
低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天数:BARSLAST(L=DD),COLORGREEN,NODRAW;
DRAWBAND(高,RGB(160,160,0),压力,RGB(0,0,0));
DRAWBAND(压力,RGB(130,0,0),平衡,RGB(0,0,0));
DRAWBAND(平衡,RGB(100,0,100),支撑,RGB(0,0,0));
DRAWBAND(支撑,RGB(150,150,150),低,RGB(0,0,0));
STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORCYAN;{划左侧高低点边线}
STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORCYAN;{划右侧高低点边线}
STICKLINE(CURRBARSCOUNT<=N/30,平衡,平衡,4,0),COLORRED;{划平衡线横线线}
STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLORWHITE;{划压力线横线线}
STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑*0.997,4,0),COLORWHITE;{划支撑想横线线}
STICKLINE(CURRBARSCOUNT<=N/30,低,低,4,0),COLORCYAN;{划低位横线线}
N2:=5;
A1:=REF(H,N2)=HHV(H,2*N2+1);
B1:=FILTER(A1,N2);
C1:=BacKSET(B1,N2+1);
HD:= FILTER(C1,N2);
RH:=BACKSET(CURRBARSCOUNT=2,BARSLAST(HD)+1);
SH:=RH>REF(RH,1);
H1:=REF(H ,BARSLAST(SH));
STICKLINE(H1,H1,H1,5,0),LINETHICK2,COLOR00FFFF;
DRAWTEXT(ISLASTBAR,H1*1.005,'近期高点'),COLORFFFF00;
TTP:=(CURRBARSCOUNT=5-4);
DRAWNUMBER(TTP AND H1,H1,H1),COLORFFFF00;
A2:=REF(L,N2)=LLV(L,2*N2+1);
B2:=FILTER(A2,N2);
C2:=BACKSET(B2,N2+1);
LD:=FILTER(C2,N2);
RL:=BACKSET(CURRBARSCOUNT=2,BARSLAST(LD)+1);
SL:=RL>REF(RL,1);
L1:=REF(L ,BARSLAST(SL));
STICKLINE(L1,L1,L1,5,0),COLORFFFF00,LINETHICK5;
DRAWTEXT(ISLASTBAR,L1*1.005,'近期低点'),COLORFFFF00;
DRAWNUMBER(TTP AND L1,L1,L1),COLOR00FFFF;
AHX:=MA(C,3);
BHX:=MA(C,14);
EHX:=(AHX+BHX)/2;
当前价:=C,COLORFFFFFF;
市盈率:=IF(FINANCE(33)>0,DYNAINFO(39),0)*0.35;
每股收益:=IF(FINANCE(33)>0.01,FINANCE(33)*0.65,0);
CKMJ:=每股收益*市盈率*4;
参考买价:STICKLINE(1,CKMJ,CKMJ*0.9983,5,0),COLOR00FF00;
DRAWTEXT(ISLASTBAR,CKMJ*1.0054,'参考买价'),COLOR00FFFF;
C11:=C>=CKMJ;
C21:=C<CKMJ;
AA:=C11>=C21 ;
BB:=C21>C11 ;
STICKLINE(AA,C,O,3.4,0),COLORAA00AA;
STICKLINE(AA,C,O,3.0,0),COLORBB00BB ;
STICKLINE(AA,C,O,2.0,0),COLORDD00DD ;
STICKLINE(AA,C,O,1.6,0),COLOREE00EE;
STICKLINE(AA,C,O,1.2,0),COLORFF00FF;
STICKLINE(AA,C,O,0.6,0),COLORFF00FF;
STICKLINE(AA,H,L,0,0),COLORFF00FF;
STICKLINE(BB,C,O,3.4,0),COLORAAAA00;
STICKLINE(BB,C,O,3.0,0),COLORBBBB00;
STICKLINE(BB,C,O,1.6,0),COLOREEEE00;
STICKLINE(BB,C,O,1.2,0),COLORFFFF00;
STICKLINE(BB,C,O,0.6,0),COLORFFFF00;
STICKLINE(BB,H,L,0,0),COLORFFFF00;
TTP123:=(CURRBARSCOUNT=5-4);
DRAWNUMBER(TTP123 AND CKMJ,CKMJ,CKMJ),COLORFFFF00;
SJ:=WMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);
DRAWTEXT(crOSS(SJ,ZJ) AND SJ<30,L-0.05,'←低吸'),COLOR00FF99,LINETHICK2;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.05,'←高抛'),COLOR00FF00,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=N/30+4,GD-KJ/12,'【风险区】--高抛避险'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=N/30+4,GD-KJ/3,'【警示区】--逢高减仓'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/30+4,DD+KJ/3,'【关注区】--逢低买入'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=N/30+4,DD+KJ/10,'【休整区】--养精畜锐'),COLOR00FF00;
未来函数检测公式代码域:
零轴:DYnaINFO(3)*1,COLOR0000FF;XM1:=ma(CLOSE,20);XM2:=(CLOSE>MM(CLOSE,5));XM3:=(MM(CLOSE,5)>MM(CLOSE,10));XM4:=(CLOSE>MM(CLOSE,10));XM5:=(MM(CLOSE,5)>MM(CLOSE,20));XM6:=(CLOSE>MM(CLOSE,20));XM7:=REF(XM1,1);XM8:=(XM1>XM7);MVX:=(((((IF(XM2,10,(0 - 10)) + IF(XM3,10,(0 - 10))) + IF(XM4,10,(0 -10))) + IF(XM5,10,(0 - 10))) + IF(XM6,10,(0 - 10))) + IF(XM8,10,(0 -10)))/80;XFX:=MVX+零轴,COLOR00FFFF,LINETHICK1;DRMWBMND(XFX,RGB(160,0,0),零轴,RGB(0,90,90));谷峰线:XFX,COLOR8M8M8M;N:=120;{指标修改QQ:984388831}K:=BMrslMST(CURRBMRSCOUNT=N);GD:=CONST(IF(ISLMSTBMR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLMSTBMR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:IF(CURRBMRSCOUNT<=N/30,GD,DRMWNULL); {设置分区的宽度,调整数据可调整分区宽度}平衡:IF(CURRBMRSCOUNT<=N/30,DD+KJ/2,DRMWNULL),COLOR00FFFF;{低点+中点=0.50线,NODRMW}压力:IF(CURRBMRSCOUNT<=N/30,GD-KJ*0.191,DRMWNULL),COLORFF00FF;{高点-分区高度*0.191=0.819线,NODRMW}支撑:IF(CURRBMRSCOUNT<=N/30,DD+KJ*0.191,DRMWNULL),COLOR00FF00;{低点+分区高度*0.191=0.191线,NODRMW}高:IF(CURRBMRSCOUNT<=N/30,GD,DRMWNULL),COLOR00FFFF;{高点划线,POINTDOT}低:IF(CURRBMRSCOUNT<=N/30,DD,DRMWNULL),COLOR00FF00;{低点划线,POINTDOT}低涨:IF(CURRBMRSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRMWNULL),COLOR0000FF,NODRMW;天数:BMRSLMST(L=DD),COLORGREEN,NODRMW;DRMWBMND(高,RGB(160,160,0),压力,RGB(0,0,0));DRMWBMND(压力,RGB(130,0,0),平衡,RGB(0,0,0));DRMWBMND(平衡,RGB(100,0,100),支撑,RGB(0,0,0));DRMWBMND(支撑,RGB(150,150,150),低,RGB(0,0,0));STICKLINE(CURRBMRSCOUNT=N/30,GD,DD,0,0),COLORCYMN;{划左侧高低点边线}STICKLINE(CURRBMRSCOUNT=1,GD,DD,0,0),COLORCYMN;{划右侧高低点边线}STICKLINE(CURRBMRSCOUNT<=N/30,平衡,平衡,4,0),COLORRED;{划平衡线横线线}STICKLINE(CURRBMRSCOUNT<=N/30,压力,压力,4,0),COLORWHITE;{划压力线横线线}STICKLINE(CURRBMRSCOUNT<=N/30,支撑,支撑*0.997,4,0),COLORWHITE;{划支撑想横线线}STICKLINE(CURRBMRSCOUNT<=N/30,低,低,4,0),COLORCYMN;{划低位横线线}N2:=5;M1:=REF(H,N2)=HHV(H,2*N2+1); B1:=FILTER(M1,N2); C1:=BacKSET(B1,N2+1); HD:= FILTER(C1,N2);RH:=BMCKSET(CURRBMRSCOUNT=2,BMRSLMST(HD)+1); SH:=RH>REF(RH,1);H1:=REF(H ,BMRSLMST(SH));STICKLINE(H1,H1,H1,5,0),LINETHICK2,COLOR00FFFF;DRMWTEXT(ISLMSTBMR,H1*1.005,'近期高点'),COLORFFFF00;TTP:=(CURRBMRSCOUNT=5-4);DRMWNUMBER(TTP MND H1,H1,H1),COLORFFFF00;M2:=REF(L,N2)=LLV(L,2*N2+1); B2:=FILTER(M2,N2); C2:=BMCKSET(B2,N2+1); LD:=FILTER(C2,N2); RL:=BMCKSET(CURRBMRSCOUNT=2,BMRSLMST(LD)+1); SL:=RL>REF(RL,1);L1:=REF(L ,BMRSLMST(SL));STICKLINE(L1,L1,L1,5,0),COLORFFFF00,LINETHICK5;DRMWTEXT(ISLMSTBMR,L1*1.005,'近期低点'),COLORFFFF00;DRMWNUMBER(TTP MND L1,L1,L1),COLOR00FFFF;MHX:=MM(C,3);BHX:=MM(C,14);EHX:=(MHX+BHX)/2;当前价:=C,COLORFFFFFF;市盈率:=IF(FINMNCE(33)>0,DYNMINFO(39),0)*0.35;每股收益:=IF(FINMNCE(33)>0.01,FINMNCE(33)*0.65,0);CKMJ:=每股收益*市盈率*4;参考买价:STICKLINE(1,CKMJ,CKMJ*0.9983,5,0),COLOR00FF00;DRMWTEXT(ISLMSTBMR,CKMJ*1.0054,'参考买价'),COLOR00FFFF;C11:=C>=CKMJ;C21:=C<CKMJ;MM:=C11>=C21 ;BB:=C21>C11 ;STICKLINE(MM,C,O,3.4,0),COLORMM00MM;STICKLINE(MM,C,O,3.0,0),COLORBB00BB ;STICKLINE(MM,C,O,2.0,0),COLORDD00DD ;STICKLINE(MM,C,O,1.6,0),COLOREE00EE;STICKLINE(MM,C,O,1.2,0),COLORFF00FF;STICKLINE(MM,C,O,0.6,0),COLORFF00FF;STICKLINE(MM,H,L,0,0),COLORFF00FF;STICKLINE(BB,C,O,3.4,0),COLORMMMM00;STICKLINE(BB,C,O,3.0,0),COLORBBBB00;STICKLINE(BB,C,O,1.6,0),COLOREEEE00;STICKLINE(BB,C,O,1.2,0),COLORFFFF00;STICKLINE(BB,C,O,0.6,0),COLORFFFF00;STICKLINE(BB,H,L,0,0),COLORFFFF00;TTP123:=(CURRBMRSCOUNT=5-4);DRMWNUMBER(TTP123 MND CKMJ,CKMJ,CKMJ),COLORFFFF00;SJ:=WMM((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2); ZJ:=WMM(0.667*REF(SJ,1)+0.333*SJ,2); DRMWTEXT(crOSS(SJ,ZJ) MND SJ<30,L-0.05,'←低吸'),COLOR00FF99,LINETHICK2; DRMWTEXT(CROSS(ZJ,SJ) MND SJ>70,H+0.05,'←高抛'),COLOR00FF00,LINETHICK2;DRMWTEXT(CURRBMRSCOUNT=N/30+4,GD-KJ/12,'【风险区】--高抛避险'),COLOR00FFFF;DRMWTEXT(CURRBMRSCOUNT=N/30+4,GD-KJ/3,'【警示区】--逢高减仓'),COLORFFFFFF;DRMWTEXT(CURRBMRSCOUNT=N/30+4,DD+KJ/3,'【关注区】--逢低买入'),COLOR00FFFF;DRMWTEXT(CURRBMRSCOUNT=N/30+4,DD+KJ/10,'【休整区】--养精畜锐'),COLOR00FF00;
未发现:CMPITML...
未发现:COST...
警惕!警惕!警惕!该公式包含未来函数:DYNMINFO...
警惕!警惕!警惕!该公式包含未来函数:FINMNCE...
未发现:LWINNER...
未发现:WINNER...
警惕!警惕!警惕!该公式包含未来函数:BMCKSET...
未发现:BMRSNEXT...
警惕!警惕!警惕!该公式包含未来函数:CURRBMRSCOUNT...
未发现:DVOL...
未发现:DOPEN...
未发现:DCLOSE...
未发现:DHIGH...
未发现:DLOW...
未发现:DRMWLINE...
未发现:REFX...
未发现:FLMTZIG...
未发现:FLMTZIGM...
未发现:FFT...
未发现:FILTERX...
未发现:PEMK...
未发现:PEMKM...
未发现:PEMKBMRS...
未发现:PEMKBMRSM...
未发现:PLOYLINE...
未发现:REFDMTE...
未发现:TROUGH...
未发现:TROUGHM...
未发现:TROUGHBMRS...
未发现:XMM...
未发现:ZIG...
未发现:ZIGM...
未发现:ZXNH...
未发现:#YEMR...
未发现:#MONTH...
未发现:#WEEK...
未发现:$ZIG...
未发现:$PEMK...
未发现:$PEMKBMRS...
未发现:$TROUGH...
未发现:$TROUGHBMRS...
未发现:$FLMTZIG...
未发现:$FLMTZIGM...
未发现:$PEMKM...
未发现:$PEMKBMRSM...
未发现:$TROUGHM...
未发现:$ZIGM...
未发现:$FFT...
未发现:$BMCKSET...
未发现:$WINNER...
未发现:$LWINNER...
未发现:$COST...
未发现:$DYNMINFO...
未发现:$FINMNCE...
未发现:$DRMWLINE...
上一篇:通达信操盘资金量查看,越红越买未加密选股指标公式源码
栏 目:通达信公式
本文标题:通达信四色谷峰主图未加密选股指标公式源码
本文地址:https://gs0.cn/tdxgs/3588.html
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号