通达信趋势买卖 趋势指标主图、源码

[复制链接]
查看144 | 回复0 | 2022-7-24 08:57:34 | 显示全部楼层 |阅读模式

个人收藏的指标,和大家共享。同花顺同样适用,大智慧没测试过,大家可以试试看。

通达信趋势买卖 趋势指标主图、源码

牛牛指标网提供:www.tdx001.com}
参数设置:
N(1.100.20);M(1.100,32);P1(1.100.80);P2(1.100.100)

源码如下:

VAR1:=(C+H+O+L)/4;
卖出:EMA(VAR1,N)*(1+P1/900),colorgreen,LINETHICK2;
买入:EMA(VAR1,M)*(1-P2/900),colormagenta,LINETHICK2;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),8,0),colorgreen;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),8,0),colorgreen;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,1,0),colorgreen;
STICKLINE(卖出<LOW,OPEN,CLOSE,8,0),colorgreen;
STICKLINE(卖出<LOW,HIGH,LOW,1,0),colorgreen;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),8,0),colormagenta;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),8,0),colormagenta;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,1,0),colormagenta;
STICKLINE(买入>HIGH,OPEN,CLOSE,8,0),colormagenta;
STICKLINE(买入>HIGH,HIGH,LOW,1,0),colormagenta;
DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),colorred,LINETHICK2;
DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),colorgreen; 

7C7949498.png

7C7949498.png

回复

使用道具 举报

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

本版积分规则