@AvinashKrishnappa @madankumar
This is the best method to calculate rsi
This method will give you RSI values which matches TRADINGVIEW RSI values.
def calc_RSI(series, period=14):
delta = series.diff().dropna()
ups = delta * 0
downs =…
@AvinashKrishnappa
I don't know why it cause this error for sure, it can't find the right route maybe because you're not providing all the information of your order, Incase if you have a trigger price you must include the trigger price also.
def …
@Hsadikot
Not a problem!
and you got a error for this code because I forgot to add the ","
paste the below code and it'll run just fine
for instrument in kite.instruments("NSE"):
print(instrument['name'],':', instrument['instrument_token'])…
@ Hsadikot
The above code will fetch data of all the symbols in NSE
and it will store the data of each symbol in individual csv file
You can store it to your SQL DataBase if you want
I made it simple so everybody can understand.
@Hsadikot
# Once you fetch the SYMBOLS from DataBase
# Convert the dataframe to a list
tickers = ticker["SYMBOL"].to_list()
# you'll have a list of symbols that you want to fetch Historical data
# Now at end of the code
for instrument in kite.i…
@Hsadikot
Just run this code and you'll get the exact idea what to do next
This code will return you name:token of the all the symbols in NSE
just like you asked
RELIANCE
Happy trading!
for instrument in kite.instruments("NSE"):
----print(instruem…
@mlearner I faced errors like this pykiteconnect with python 3.8
So this working for me fine:
create a new environment.
install python==3.7.7 version
and all the other packages you need
and everything will run just fine and most stable way.
10rs is too much variation
I just now calculated it using talib and numpy and the calculations matches the IQ chart
Make sure that you have selected Moving average type as "SIMPLE" and not as "EXPONENTIAL" on your IQ charts
and right timeframe
try…
Nope you cannot fetch even single day data without subscribing to Kite Historical Data.
If you want to save money by not subscribing to ktie historical data
You can save your tick data to a Database and resample the tick data to any timeframe like 1…
it's very simple to calculate sma
how much variation do you get from chart IQ?
paste your code so others can help too
try numpy mean()
list = [ fetch historical data ]
20SMA = np.mean(list[-20:])
50SMA = np.mean(list[-50:])
that's it.
incase if you automated your login
generate and assign the api_key access_token manually and if it worked then
definitely you're having issues with your automation code