通达信薛斯通道二源码

[复制链接]
查看97 | 回复0 | 2021-8-21 09:30:14 | 显示全部楼层 |阅读模式

以下是通达信薛斯通道二源码(无源码的请下载附件导入)

T1:=(1,100,30);T2:=(1,100,3);P1:=(1,100,15);P2:=(1,100,3);
 N1:=102;
 UPPERL: MA(HIGH,T1)*(1+P1/100),COLORWHITE;
 UPPERS: MA(HIGH,T2)*(1+P2/100),COLORYELLOW;
 LOWERS: MA(LOW,T2)*(1-P2/100),COLORFF00FF;
 LOWERL: MA(LOW,T1)*(1-P1/100),COLOR00FF00;
 DRAWBAND(UPPERL,RGB(15,15,158),LOWERL,RGB(15,15,158));
 DRAWBAND(UPPERS,RGB(46,99,46),LOWERS,RGB(46,99,46));
中轨: (MA(HIGH,T1)*(1+P1/100)+MA(LOW,N1)*(1-P1/100))/2,COLORGRAY,LINETHICK1;
 N2:=(80,120,102);M2:=(2,20,7);
 AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*N2/100;
通道2:=AA*(200-N2)/100;
 CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
 DD:=DMA(CLOSE,CC);
通道3:(1+M2/100)*DD,LINETHICK2,COLORYELLOW;
通道4:(1-M2/100)*DD,LINETHICK2,COLORYELLOW;
短中轨:(通道1+通道2)/2,LINETHICK1,COLORLIRED,NODRAW;
薛斯中轨:(通道3+通道4)/2,COLORGREEN,NODRAW;
 DRAWKLINE(H,O,L,C);

635233537.jpg

635233537.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则