手机端
当前位置:爱约股 > 公式技巧 > 世纪指标中RSI1线上穿RSI4线的预警公式

世纪指标中RSI1线上穿RSI4线的预警公式

 网友求助:

老师您好,请老师编世纪指标中RSI1线上穿RSI4线的预警公式,谢谢!
世纪指标原码如下:
N1:=7;N2:=14;N3:=21;
界:=38,COLORFF3311;
STICKLINE(C>0,38,38,1,1),COLORFF9911;
加仓线:=51,COLORFF1155;
STICKLINE(C>0,51,51,1,1),COLORFF1199;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF;
RSI3:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF;
RSI4:SMA(RSI3,7,1),LINETHICK2,COLOR00CD00;
趋势F:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF;
趋势8:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;
趋势:EMA(((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18,coloryellow,LINETHICK2;
colorred,LINETHICK2;
 

 

世纪指标中RSI1线上穿RSI4线的预警公式

 

 

解答如下:

N1:=7;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI4:=SMA(RSI3,7,1);
CROSS(RSI1,RSI4);
 

分享至:

相关推荐