RelativeVigorIndex.Signal
property · RelativeVigorIndex · cAlgo.API.Indicators
DesktopCLICloud
Gets the Signal line of RVI (red line).
Definition
IndicatorDataSeries Signal {get;}
relativeVigorIndex.Signal: IndicatorDataSeries
Returns IndicatorDataSeries
Examples
var relativeVigorIndex = Indicators.RelativeVigorIndex(10);
if (relativeVigorIndex.Result.Last(1) > relativeVigorIndex.Signal.Last(1) && relativeVigorIndex.Result.Last(2) <= relativeVigorIndex.Signal.Last(2))
Print("RVI crossed above its signal line: {0}", relativeVigorIndex.Signal.Last(1));
relativeVigorIndex = api.Indicators.RelativeVigorIndex(10)
if relativeVigorIndex.Result.Last(1) > relativeVigorIndex.Signal.Last(1) and relativeVigorIndex.Result.Last(2) <= relativeVigorIndex.Signal.Last(2):
api.Print(f"RVI crossed above its signal line: {relativeVigorIndex.Signal.Last(1)}")