通达信牛股线副图指标和预警公式

[复制链接]
查看61 | 回复0 | 2022-7-24 07:20:05 | 显示全部楼层 |阅读模式

通达信牛股线指标源码源码如下


VAR1:3,LINETHICK1,COLORRED;
VAR100:100,,LINETHICK2,COLORYELLOW;
VAR90:90,LINETHICK1,COLORLIRED;
VAR80:80,LINETHICK3,COLORRED;
VAR70:70,LINETHICK2,COLORYELLOW;
VAR60:60,LINETHICK4,COLORLIMAGENTA;
VAR40:40,LINETHICK1,COLOR9966FF;
VAR0:0,LINETHICK3,COLORRED;
VAR3:((3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1))),COLORD9D919,LINETHICK3;
DRAWICON(CROSS(VAR3,VAR1),0,25);

 

=================================

选股源码如下

VAR1:3,LINETHICK1,COLORRED;
VAR100:100,,LINETHICK2,COLORYELLOW;
VAR90:90,LINETHICK1,COLORLIRED;
VAR80:80,LINETHICK3,COLORRED;
VAR70:70,LINETHICK2,COLORYELLOW;
VAR60:60,LINETHICK4,COLORLIMAGENTA;
VAR40:40,LINETHICK1,COLOR9966FF;
VAR0:0,LINETHICK3,COLORRED;
VAR3:((3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1))),COLORD9D919,LINETHICK3;
DRAWICON(CROSS(VAR3,VAR1),0,25);
DRAWICON(CROSS(VAR3,VAR60),60,1);

预警公式

VAR3:=((3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)));
VAR60:=60;
牛股线:CROSS(VAR3,VAR60);


预警公式也可这样:

VAR3:=((3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)));
牛股线:CROSS(VAR3,60);
 

 

754399879.gif

754399879.gif

回复

使用道具 举报

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

本版积分规则