通达信最神奇而简单的公式大集合

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

通达信最神奇而简单的公式大集合

本文仅仅提供多个公式源码,并无公式提供下载
 

均线之下
 XG:=LONGCROSS(H,MA(C,20),15) AND CROSS(C,MA(C,20)) AND C>0 AND V>MAX(REF(V,1),REF(V,2));
 0,COLORGREEN;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
均线之下2.5
 
XG:=LONGCROSS(H,MA(C,20),15) AND CROSS(C,MA(C,20)) AND C>0 AND RANGE(V,MAX(REF(V,1),REF(V,2)),2.5*MAX(REF(V,1),REF(V,2)));
 0,COLORGREEN;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
KDJ
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 XG:=CROSS(K,D) AND C>REF(C,1) AND V>MAX(REF(V,1),REF(V,2));
 0,COLORBLUE;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
RSI
 N1:=6;
 N2:=12;
 N3:=24;
 LC:=REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
 RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
 XG:=CROSS(RSI1,RSI2) AND CROSS(RSI1,RSI3) AND C>REF(C,1) AND V>MAX(REF(V,1),REF(V,2));
 0,COLORBLUE;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
小均线
 XG:=COUNT( C<MA(C,5),6)>=5  AND C>MA(C,5) AND V>REF(V,1) AND C>O ;
 0,COLORGREEN;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
大均线
 XG:=CROSS(C,MA(C,20))  AND C>O AND V>REF(V,1) AND V>REF(V,2);
 0,COLORGREEN;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
RSI+RSI
 
DD:="RSI.RSI1"<20;
N1:=6;
 N2:=12;
 N3:=24;
 LC:=REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
 RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
 买入:=CROSS(RSI1,RSI2) AND CROSS(RSI1,RSI3) AND C>REF(C,1) AND V>MAX(REF(V,1),REF(V,2));
 XG:=买入*(SUM(DD,5));
 0,COLORBLUE;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
DMI+KDJ
 DD:="DMI.PDI"<15 AND "DMI.MDI">40 AND "DMI.ADX">50 AND "DMI.ADXR">40;
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 买入:=CROSS(K,D) AND C>REF(C,1) AND V>MAX(REF(V,1),REF(V,2));
 XG:=买入*(SUM(DD,5));
 0,COLORBLUE;
 STICKLINE(XG,10,0,1,0),COLORRED;
 
DMI+RSI
 DD:="DMI.PDI"<15 AND "DMI.MDI">40 AND "DMI.ADX">50 AND "DMI.ADXR">40;
 N1:=6;
 N2:=12;
 N3:=24;
 LC:=REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
 RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
 买入:=CROSS(RSI1,RSI2) AND CROSS(RSI1,RSI3) AND C>REF(C,1) AND V>MAX(REF(V,1),REF(V,2));
 XG:=买入*(SUM(DD,5));
 0,COLORBLUE;
 STICKLINE(XG,10,0,1,0),COLORRED;

 

回复

使用道具 举报

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

本版积分规则