Getting Error at OTM strike Selection as '<' not supported between instances of 'int' and 'str'
None
Enter valid Script Name
'Got exception in place_order as 'NoneType' object has no attribute 'upper'
That’s a very great news. Have also started looking into AWS setup. If you are planning to cover in the upcoming session then will park it.
Thanks again appreciate it
Hello @Tradehull_Imran Sir,
How to scan indices [“NIFTY”,‘BANKNIFTY’,‘NIFTYIT’,‘NIFTYAUTO’,‘NIFTYFMCG’]
for RSI and ADX, Its giving error
Exception in Getting OHLC data as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-907’, ‘error_type’: ‘Data_Error’, ‘error_message’: ‘System is unable to fetch data due to incorrect parameters or no data present’}, ‘data’: {‘errorType’: ‘Data_Error’, ‘errorCode’: ‘DH-907’, ‘errorMessage’: ‘System is unable to fetch data due to incorrect parameters or no data present’}}
watchlist = ["NIFTY", "BANKNIFTY"]
traded_watchlist = []
for index_exchange in watchlist:
time.sleep(1)
chart_1 = tsl.get_historical_data(tradingsymbol=index_exchange, exchange='INDEX', timeframe="1")
chart_5 = tsl.get_historical_data(tradingsymbol=index_exchange, exchange='INDEX', timeframe="5") # Updated to get_historical_data call
chart_15 = tsl.get_historical_data(tradingsymbol=index_exchange, exchange='INDEX', timeframe="15") # Updated to get_historical_data call
if chart_1 is None or chart_5 is None or chart_15 is None:
continue
if chart_1.empty or chart_5.empty or chart_15.empty:
continue
# Conditions that are on the 1-minute timeframe
chart_5['rsi'] = talib.RSI(chart_5['close'], timeperiod=14) # Calculate RSI on the 5-minute timeframe
cc_5 = chart_5.iloc[-1] # Get the last completed candle of the 5-minute timeframe
print(index_exchange, "RSI on 5 Min Time Frame is", cc_5['rsi'])
print(chart_1)
print(chart_5)
print(chart_15)
Also for “NIFTYIT”, “NIFTYAUTO”, “NIFTYFMCG”, there seems to be some issue , I will have to check on that
for simultaneously managing call and put together, we need to study “how to manage multiple position together”, the same topic is covered in great detail in upcoming advance algo trading series.