Watchlist not loading for options with custom RSI weekly time frame


Category:
0
0

Hi Pete,

Is there a reason why a Custom Week RSI in Watchlist Column for Options ticker does not work for me? Am i missing something on my script?  It seems to work for their built in RSI with Week aggregation period but not for a custom one. I am planning to build a strategy in my watchlist for Options but the result is stuck in “loading”.

Thank you.

Here’s my script

#———- RSI Inputs
input rsiLength = 14;
input timeFrame = aggregationPeriod.week;
input rsiAverageType = AverageType.WILDERS;

#———- RSI Section
def netChangeAverage = MovingAverage(rsiAverageType, close(period = timeFrame) – close(period = timeFrame)[1], rsiLength);
def totalChangeAverage = MovingAverage(rsiAverageType, AbsValue(close(period = timeFrame) – close(period = timeFrame)[1]), rsiLength);
def changeRatio = if totalChangeAverage != 0 then netChangeAverage / totalChangeAverage else 0;
def rsi = 50 * (changeRatio + 1);

plot data = rsi;

 

Attachments:
Marked as spam
Posted by (Questions: 8, Answers: 2)
Asked on December 5, 2020 7:55 am
93 views
0
Private answer

Please take note of the new title I have entered for your question. The one you entered for this post was completely useless for the rest of our viewers who may be searching for a solution. Imagine if you have come to this forum searching for this specific solution, but it was hidden behind a title such as "Custom Watchlist".

Please consider the rest of our viewers when you are entering a question for a post in this forum. This forum is here to assist traders with commonly asked questions and issues. Let's make sure everyone understands the context of your question before they click to view your posts.

Now that we have all that out of the way. When I copy/paste your code into my own watchlist and add the same ticker symbols to that watchlist I find that it works just fine. I have no idea why yours is not working. I can only suggest you go back and double check what time frame you have set for the column.

Screenshot below shows how it looks when I test it.

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 5, 2020 8:47 am