RSI红绿多空波段金叉死叉提示通达信公式 副图 测试图_通达信公式_通达信主图指标

趋势多空买卖通达信公式 副图 源码附图

SJ:=1;
超买:100*SJ,COLORRED,POINTDOT;
超卖:0*SJ,COLOR00FF00,POINTDOT;
LC :=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0)*SJ,7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0)*SJ,14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
{股票指标网 }
IF(RSI1<=REF(RSI1,1),RSI1,DRAWNULL),LINETHICK2,COLORGREEN;
IF(RSI1>=REF(RSI1,1),RSI1,DRAWNULL),LINETHICK2,COLORRED;
IF(RSI2<=REF(RSI2,1),RSI2,DRAWNULL),LINETHICK2,COLORGREEN;
IF(RSI2>=REF(RSI2,1),RSI2,DRAWNULL),LINETHICK2,COLORRED;
DRAWTEXT(CROSS(RSI1,RSI2) AND RSI1<35,20,'金叉'),COLORMAGENTA;
DRAWTEXT(CROSS(RSI2,RSI1) AND RSI1>65,60,'死叉'),COLORBLUE;
 

短线MACD进出通达信公式 副图 源码附图有未来函数