LCC:=REF(CLOSE,1);
rsi1:SMA(MAX(CLOSE-LCC,0),N1,1)/SMA(Abs(CLOSE-LCC),N1,1)*100,COLORMAGENTA;
RSI2:SMA(MAX(CLOSE-LCC,0),N2,1)/SMA(ABS(CLOSE-LCC),N2,1)*100,COLORCYAN;
{-专业指标公式网站 }
趋势线1:SMA(RSI2,8,1),COLORGREEN;
趋势线2:SMA(RSI2,7,1),COLORYELLOW;
{趋势线变色}
红:IF(趋势线2>REF(趋势线2,1),趋势线2,DRAWNULL),COLORRED,LINETHICK2;