通达信下轨买上轨卖主图公式源码

[复制链接]
查看78 | 回复0 | 2021-8-19 17:58:25 | 显示全部楼层 |阅读模式

以下是通达信下轨买上轨卖主图公式源码(无源码的请下载附件导入)

长期趋势:EMA(C,60),COLORBLUE,LINETHICK3;

下轨:MA(MIN(LLV(L,5),LLV(L,13)),5),COLORYELLOW,LINETHICK2;

上轨:MA(MAX(HHV(H,5),HHV(H,13)),5),COLORGREEN,LINETHICK2;

中轨:MA(C,20),COLORRED,LINETHICK3;

LC := REF(CLOSE,1);

近顶底:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

DRAWICON(近顶底>=80,H,2),COLORYELLOW;

DRAWICON(近顶底<=20,L,1),COLORGREEN;

短线:=MA(C,5),COLORWHITE;

MM:=(C+O)/2;

空头K线:REF(MM,1)>MM,COLORGREEN,NODRAW;

STICKLINE(REF(MM,1)>MM,O,C,8,1),COLORGREEN;

STICKLINE(REF(MM,1)>MM AND C>O,H,C,1,0),COLORGREEN;

STICKLINE(REF(MM,1)>MM AND C>O,O,L,1,0),COLORGREEN;

STICKLINE(REF(MM,1)>MM AND C<O,L,C,1,0),COLORGREEN;

STICKLINE(REF(MM,1)>MM AND C<O,H,O,1,0),COLORGREEN;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

A:=SMA(RSV,3,1);

B:=SMA(A,3,1);

寻底K线:B<=20,NODRAW,COLORYELLOW;

STICKLINE(B<=20,O,C,8,1),COLORYELLOW;

STICKLINE(B<=20 AND C>O,H,C,1,0),COLORYELLOW;

STICKLINE(B<=20 AND C>O,O,L,1,0),COLORYELLOW;

STICKLINE(B<=20 AND C<O,L,C,1,0),COLORYELLOW;

STICKLINE(B<=20 AND C<O,H,O,1,0),COLORYELLOW;

涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);

STICKLINE(涨停,OPEN,CLOSE,8,0),COLORMAGENTA;

615288959.png

615288959.png

回复

使用道具 举报

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

本版积分规则