Difference between RSI and StochasticSlow less than 50


Category:
0
0

Hi Pete,

I’m looking for a scan that gives the total value based on parameters of the daily RSI(14) + Slow Stochastics(14). Example: Scan for a total of less than 50 between the two.

Thanks again!

Marked as spam
Posted by (Questions: 20, Answers: 27)
Asked on May 24, 2021 11:30 pm
85 views
0
Private answer

I updated the title of your question because it stated the exact opposite of what you are requesting in the body of your question.

Please note that you only provided one parameter for the StochasticSlow (14) when there are several. So I selected to use a value of 14 for the "k period" for my solution below:

input targetValue = 50.0;
def rsiValue = RSI(14)."RSI";
def slowK = StochasticSlow("k period" = 14)."SlowK";
def difference = AbsValue(rsiValue - slowK);
plot scan = difference < targetValue;

When we do not provide a value for the the other parameters, the platform will use the default value that is set for the built-in chart study.

Here is list of the other parameters for which you did not provide a value:

  1. "d period"
  2. "price h"
  3. "price l"
  4. "price c"
  5. "average type"

Each of those parameters will have an impact on how the StochasticSlow is computed.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on May 25, 2021 7:29 am