AR
Getting RelativeStrengthIndex with multiple TimeFrames?
13 Dec 2018, 07:46
So I am trying to figure out the code to get the currently RSI
rsi = Indicators.RelativeStrengthIndex(Source, Period);
but i also want to specify the timeframe for the RSI indicactor to look at,
for example:
rsim15 = Indicators.RelativeStrengthIndex(Source, Period, Minute15);
rsim30 = Indicators.RelativeStrengthIndex(Source, Period, Minute30);
how would i do something like that?
thanks!!!

PanagiotisCharalampous
13 Dec 2018, 10:24
Hi arron3@gmail.com,
See an example below
var rsim15 = Indicators.RelativeStrengthIndex(MarketData.GetSeries(TimeFrame.Minute15).Close, Period); var rsim30 = Indicators.RelativeStrengthIndex(MarketData.GetSeries(TimeFrame.Minute30).Close, Period);Best Regards,
Panagiotis
@PanagiotisCharalampous