indicator going up or down? #1199
bhagyashrigavande
started this conversation in
Help and support
Replies: 1 comment 1 reply
-
ref https://dotnet.stockindicators.dev/indicators/Roc
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Is there any way by which we can identify if any indicator is going up direction or down ?
example: let's take an example of RSI .
if current value of RSI is 60, previous is 58, previous to previous is 55 then we can say it is going in up direction i.e. RSI value is getting increasing or if current value is 60, previous value is 65, previous to previous value is 79 then it is in down trend.
Looking on chart is easy to identify if it is up trend or downtrend, how can we identify programmatically? is there any way to do this?
I can do something as below,
var rsi = candleData.intraDayCandleData.GetRsi(14);
var rsiLast = rsi.Last().Rsi;
var rsiPrev = rsi.ElementAt(rsi.Count() - 1).Rsi;
var rsiPrevPrev = rsi.ElementAt(rsi.Count() - 2).Rsi;
but I think, this is not efficient way to check the trend.
Beta Was this translation helpful? Give feedback.
All reactions