九毛八公式指标
请老师做个通达信RSI选股指标,谢谢老师。 要求单独做:1:日线RSI金叉。 2:周线RSI金叉。 3:月线RSI金叉。
公式模块:
{日线金叉:} LC:=REF(CLOSE,1); rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100; crOSS(RSI1,RSI2) AND CROSS(RSI2,RSI3)AND CROSS(RSI1,RSI3); ==================== {周线金叉} CROSS("RSI.RSI1#WEEK","RSI.RSI2#WEEK") AND CROSS("RSI.RSI1#WEEK","RSI.RSI3#WEEK")AND CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"); ==================== {月线金叉} CROSS("RSI.RSI1#MONTH","RSI.RSI2#MONTH") AND CROSS("RSI.RSI1#MONTH","RSI.RSI3#MONTH")AND CROSS("RSI.RSI2#MONTH","RSI.RSI3#MONTH");