RSI and Stochastics Values

Forums ProRealTime English forum ProOrder support RSI and Stochastics Values

Currently, there are 0 users and 2 guests visiting this topic.
View all attachments
Viewing 8 posts - 1 through 8 (of 8 total)
• #189741 Report

In code, when you want to define conditions based on specific numeric values of RSI or stochastics like %K, how do you express these values? I mean, if you want to say 80% do you type 80 or 0.8 in code? I am a newbie and couldn’t find the answer in the manuals…

#189744 Report

Hello,

80

Doc from here can be accessed from “help” menu above, it has terms search: https://www.prorealcode.com/prorealtime-documentation/

Example for RSI, says between 0 and 100: https://www.prorealcode.com/documentation/rsi/

1 user thanked author for this post.
#189764 Report

RSI and Stochastic are actually graduated on a percentage scale from 0 to 100, their values are normalized over a period of time.

So 80% of a scale that go from 0 to 100 is 80 🙂

#196160 Report

Good morning, I’m trying to do the following and I can’t do it, could someone help me? I am trying to obtain a Simple Moving Average, of the closing prices but only when the Stochastic is Oversold, and it does not give me any results.

For example, if the stock go oversold, and stay oversold for 8 bars, calculate the simple average of only those 8 bars. Thank you very much for any help you can give me.

Attachments:
#196162 Report

Hi @Lisandro77

if (lineaK < lineastochmin) then
cta = cta + 1
else
cta = 1
endif

2 users thanked author for this post.
#196164 Report

@Lisandro77

Screenshot of the indicator…

1 user thanked author for this post.
#196166 Report

@Lisandro77

Screenshot with “cta” …

1 user thanked author for this post.
#196399 Report

Thank you JS very much! It has been very useful to me..! Regards!

1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)