通达信多空阶梯主图/副图 共振配合使用抓波段 源码 附图

{多空阶梯主图源码如下}

SJ:=1;
突破:=REF(EMA(C,14),1),LINETHICK4,COLORYELLOW;
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),LINETHICK2;
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),LINETHICK2;
STICKLINE(A1X*SJ>0,多方,突破,18,0),COLORRED;
STICKLINE(A1X*SJ<0,空方,突破,18,0),COLOR990000;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);


{多空阶梯副图源码如下}


SJ:=1;
顶线:6.18*SJ,COLOR00FF00,LINETHICK1;
底线:0.18*SJ,COLORRED,LINETHICK1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DRAWICON(DIFF*SJ>DEA,1,38);
DRAWICON(DIFF<DEA*SJ,1,39);
MACD金叉:=DIFF>DEA;
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWICON(K*SJ>D,2,38);
DRAWICON(K<D*SJ,2,39);
KDJ金叉:=K>D;
LC:=REF(CLOSE,1);{}
RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100;
DRAWICON(RSI1*SJ>RSI2,3,38);
DRAWICON(RSI1<RSI2*SJ,3,39);
RSI金叉:=RSI1>RSI2;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1*SJ>LWR2*SJ,4,38);
DRAWICON(LWR1*SJ<LWR2*SJ,4,39);
LWR金叉:=LWR1>LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
DRAWICON(CLOSE*SJ>BBI,5,38);CHAGULA:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
DRAWICON(CLOSE<BBI*SJ,5,39);
BBI金叉:=CLOSE>BBI;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3);
MMM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12);
DRAWICON(MMS*SJ>MMM*SJ,6,38);
DRAWICON(MMS*SJ<MMM*SJ,6,39);
MMS金叉:=MMS>MMM;
A:=REF(HHV(H,25),20) <REF(HHV(H,70),35);
A1:=REF(COUNT(C/REF(C,1)>=1.094,20),1);
A3:="BOLL-M".UB;{WWW.GOODGUPIAO.COM}
GXS1:=REF(EXIST(H>A3,55),5) AND CROSS(C,A3)AND A1 AND A AND COUNT((C/O-1)*100<-7,30)=0;
GXS:=MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉,NODRAW;
STICKLINE(GXS AND COUNT(GXS1,1),0,6,2,0),COLORYELLOW;
STICKLINE(GXS AND COUNT(GXS1,1),0,6,1,0),COLORRED;
共振为主:GXS,COLORYELLOW,NODRAW;
信号为辅:GXS AND COUNT(GXS1,1),COLORFF00FF,NODRAW;



{买卖点红绿柱副图源码如下}
SJ:=1;
X1:=EMA(CLOSE,8)*SJ,COLORWHITE;
X3:=EMA(X1,16)*SJ,COLORRED;
B:=BARSLAST(DAY<>REF(DAY,1))+1;
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3*SJ>VAR4,VAR3,VAR4,2 ,0),COLORRED;
STICKLINE(VAR3< VAR4*SJ,VAR3,VAR4,2,0), COLORGREEN;
W:=BARSLAST(DATE<>REF(DATE,1));
OO:=REF(OPEN,W);
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IF(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);CHAGULA:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
L2:=VALUEWHEN(L1>0,L1);
K111:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K222:=VALUEWHEN(K111<>0,K111);
TMP:=K222;
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP*SJ,0) ,HX,'卖空'),COLORGREEN,DRAWABOVE;
DRAWTEXT(CROSS(0,TMP*SJ),LX,'买多'),COLORRED;
DRAWICON(CROSS(TMP*SJ,0) ,HX,39),COLORGREEN,DRAWABOVE;
DRAWICON(CROSS(0,TMP*SJ),LX,38),COLORRED;




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


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

输出BOLL:C的20日简单移动平均
输出UB:BOLL+2*C的20估算标准差
输出LB:BOLL-2*C的20估算标准差
输出MA5:C的5日简单移动平均
输出MA10:C的10日简单移动平均
输出MA20:C的20日简单移动平均
JX赋值: 1日前的H-L
JXA:= REF((H-L)-(C-L),1)*0.191*1.382
SX赋值: 2
轴点A赋值: 1日前的H+C+L/3
撑AA赋值: 轴点A-JX*0.382
撑BB赋值: 轴点A-JX*0.618
撑CC赋值: 轴点A-JX
撑DD赋值:轴点A-JX*1.382+IF(REF(COUNT(C>=REF(C和O较大值,1),2)>1 AND C>=REF(H,1),1),JXA,-JXA)
压AA赋值: 轴点A+JX*0.382
压BB赋值: 轴点A+JX*0.618
压CC赋值: 轴点A+JX
压DD赋值:轴点A+JX*1.618+IF(REF(COUNT(C>=REF(C和O较大值,1),2)>1 AND C>=REF(H,1),1),JXA,-JXA)
撑A赋值: 撑AA
撑B赋值:撑BB
撑C赋值:撑CC
撑D赋值:撑DD
压A赋值:压AA
压B赋值:压BB
压C赋值:压CC
压D赋值:压DD
当满足条件ISLASTBAR时,在横轴0.27纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.30纵轴0.05位置书写数字
当满足条件ISLASTBAR时,在横轴0.40纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.43纵轴0.05位置书写数字
当满足条件ISLASTBAR时,在横轴0.50纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.53纵轴0.05位置书写数字
当满足条件ISLASTBAR时,在横轴0.60纵轴0.05位置书写文字
当满足条件ISLASTBAR时,在横轴0.63纵轴0.05位置书写数字

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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