双向通道(通达信公式 主图 源码 测试图)

[复制链接]
查看87 | 回复0 | 2022-6-27 16:02:12 | 显示全部楼层 |阅读模式

 水晶操盘线

VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:=100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;
DUO:=EMA(CLOSE,3);
KONG:=EMA(CLOSE,8);
DRAWTEXT(CROSS(DUO,KONG),L-0.2,'★多');
DRAWTEXT(CROSS(KONG,DUO),H+0.2,'☆空');
UP:=MA(HIGH,18);
DOWN:=MA(LOW,18);
STICKLINE(C>UP,L,H,3,0),COLORRED;
STICKLINE(C<DOWN,L,H,3,0),COLORBLUE;
STICKLINE(C>DOWN && C<UP,L,H,3,0),COLORWHITE;
 

202112310515057736.png

202112310515057736.png
 

202112310515624052.png

202112310515624052.png

202112310513639254.rar

2.53 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

202112310513639254.rar

回复

使用道具 举报

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

本版积分规则