Questions tagged [rsi]

43 questions
2
votes
0 answers

Calculate/replicate RSI from Tradingview's pine script

Im trying to recreate Tradingviews pine script RSI code into Javascript code. But having a hard time figuring out how it works. I made the basic RSI using a normal moving average calculation. But the pine script uses exponential weighted moving…
Allart
  • 830
  • 11
  • 33
1
vote
1 answer

How can i combine RSI and Nadaraya-Watson Envelope

I'm new to programming in Pine Script language and I'm trying to combine the RSI indicator with the Nadaraya-Watson Envelope by LuxAlgo. The strategy basically is that when the price crosses the upper channel and the RSI indicates overbought, it…
1
vote
1 answer

Calculate RSI gain/difference in Pine Editor?

By using the command "crossover" I can successfully display the intersections of the RSI-value and the RSI-sma. rsiValue = rsi(close, 14) rsiSMA = sma(rsiValue, 14) bgcolor(color=crossover(rsiValue, rsiSMA) ? #ffc1cc : na,…
1
vote
1 answer

RSI values in Python (lib is Pandas) don't match RSI values in Tradingview-Pinescript

I have a custom indicator that I use on Tradingview. The values for the mst indicator in python do not match the values for mst indicator in Tradingview. How do I fix this so the values are exactly the same? The pinescript code is as…
mgoblue33
  • 79
  • 2
  • 9
1
vote
0 answers

Vectorbt type object 'DOMWidget' has no attribute '_ipython_display_'

So I'm trying to plot a simple RSI indicator in Python using the Vectorbt library. The RSI plots correctly but there's an error that comes with it. As can be seen here ` #nilagyan ng r para raw file dahil nababasa ng python as UNICODE pag may slash…
zcodec
  • 11
  • 2
1
vote
0 answers

I'm trying to set a strategy with CE indicator

I want to add this: When CE (Chandelier Exit) indicator in buy --> Only Long Signals When CE (Chandelier Exit) indicator in sell --> Only Short Signals At my script: longcondition = rsi>80 and macd>0 shortcondition = rsi<20 and macd<0 In addition…
1
vote
1 answer

"Cannot call 'ta.rsi' with argument 'length'='lowers'. An argument of 'series float' type was used but a 'simple int' is expected"

I'm getting this error in pine script could someone help me to solve this code please Here is my code Cannot call 'ta.rsi' with argument 'length'='lowers'. An argument of 'series float' type was used but a 'simple int' is expected source =(high +…
0
votes
1 answer

How to obtain and plot the RSI data of 100 stocks at the same time

enter image description here I created an indicator called RSI Bitmap. I intended to provide users with a more intuitive perspective. The request.security function I used can only obtain the RSI data of 40 stocks at most. How can I get the RSI data…
0
votes
0 answers

Getting error while getting stock data using NSEPY library

ticker = "INFY" start_date = "2021-01-01" end_date = "2022-12-31" data = nsepy.get_history(symbol=ticker, start=start_date, end=end_date) while running the code getting TypeError: unsupported operand type(s) for -: 'str' and 'str' I just want to…
0
votes
0 answers

attempt to display RSI values across timeframes

My main objective is to display RSI of day, week and month across TF. While it comes correctly sometimes but when I move from day to week to month, the RSI of day displays incorrectly. part of code is given below: I can share entire code if…
0
votes
0 answers

"Issue with my Trading View Scripting RSI"

I would like to ask, how do I solve the following error> Error at 3:19 Syntax error at input 'rsi' The script is> //@version=5 strategy("VWAP, RSI, and ADX Mean Reversion Strategy", overlay=true) // Inputs vwap_length = input(20, "VWAP…
0
votes
0 answers

Issue with Rsi multiple timeframe #pinescipt #tradingview

I use this code for timeframe 5 minutes rsi5m = request.security(syminfo.tickerid, "5", ta.rsi(rsiSourceInput, rsiLengthInput)) rsi15m = request.security(syminfo.tickerid, "15", ta.rsi(rsiSourceInput, rsiLengthInput)) rsi30m =…
0
votes
0 answers

How to compile a list/dataframe of lowest 50 RSI's of NASDAQ Stocks for a Period? In R

Essentially what I am trying to do is return the names and RSI's of the companies with the lowest RSI's for that day (or period). I have tried the follwoing code: I am wanting to either get the lowest 30 values today, or the average over the last…
0
votes
1 answer

RSI line to show different colour at different levels

I'm using a basic RSI indicator that also has Bollinger bands on it as an overlay. I want my RSI line to show different colour at different levels. I want the line to be in green colour when it is above 60, red when it is below 40, and yellow when…
0
votes
0 answers

Connors RSI Calculation Python Not Calculating Correctly

I am trying to calculate the connors rsi in python using pandas and numpy. I want to calculate it with the default values of ConnorsRSI(3,2,100). The formula for the connors RSI is : [ RSI(Close,3) + RSI(Streak,2) + PercentRank(100) ] / 3 I start…
1
2 3