Hi @ram_agrawal ,
Can you share the exact code snippet that is being called?
Hi @ram_agrawal ,
Can you share the exact code snippet that is being called?
@Tradehull_Imran Sir During TA-Lib package installation i am getting error. attaching the screenshot please help.
csv file not downloading
Hello,
This error usually comes when TA-Lib is installed on an unsupported Python version. TA-Lib works only up to Python 3.8.
Please check your Python version using:
python --version
If your version is 3.8 or below, just run:
pip install TA-Lib
If your Python version is higher (3.9+), TA-Lib wonât build. In that case, install Python 3.8 and then try the above command again.
Hello @LAVAKUSH_VISHWAKARMA, Can you elaborate more about issue please?
@Tradehull_Imran - The files seems to have be removed from the link .. could you please share the updated link where I can find the API upgrade fill which we are suppose to use now instead of older method ?
Hi @Dhan & @Tradehull_Imran ,
Do you have any plan of creating some content about back testing.
I was able to build some code for Option Selling Neutral strategy or got an idea how to scan data, calculate indicator, evaluate conditions and order placement using algorithmic trading approach.
However, I am not getting confidence since logic is not back tested. In advanced algorithmic series you explained about brute force methodology for generating all possible combinations of conditions.
Can you please share some references or sample code with at least basic strategy to get some idea about flow?
Looking forward for your response n this.
Thank you!
kindly reply imran sir, earlier what used to happen is while fetching option historical data only 5 trading data were used to appear , does tradehull current version 3.0.6 provides option historical data for 90 days or not .
@Tradehull_Imran Sir, Iâm new to this coding and all, but trying do the steps you taught, but getting error, Kindly help
Dear Team,
Provided code link not able to access
Kindly provide new link
Hi @JKK62 ,
To get the latest files, do update to our latest codebase version 3.0.6:
pip install Dhan-Tradehullpip show Dhan-TradehullGuide to use the updated codebase:
Refer the below pypi link for more details:
Video reference :
Hi @ROCKY2 ,
Currently in 3.0.6 version historical data for 90 days is not available. But you can make small modifications as belowâ
Open your command prompt
Dhan_Tradehull.py file is located:pip show Dhan-Tradehull
Location: in the output.Location: C:\Users\<username>\AppData\Local\Programs\Python\Python311\Lib\site-packages
Dhan_Tradehull.py
def get_start_date():
start_date = df.iloc[-2]['timestamp']
start_date = df.iloc[-90]['timestamp']
Dhan_Tradehull.py.Hi @Uma_Jagadeesan ,
Do update to our latest codebase version 3.0.6:
pip install Dhan-Tradehullpip show Dhan-TradehullHi @Siddhesh_Amrute ,
We will be conducting a backtesting session with Dhan soon.
will it surely work if u have not updated at your end how will it work ok let see
i have tried mam but its not working by changing from 2 to -90 please check at your end if its working
Hi @Tradehull_Imran Sir, I am facing the below error regularly. Pls give your comments.
NIFTY is in uptrend, Buy this Script
'Got exception in place_order as {âstatusâ: âfailureâ, âremarksâ: {âerror_codeâ: âDH-905â, âerror_typeâ: âInput_Exceptionâ, âerror_messageâ: âInvalid Priceâ}, âdataâ: {âerrorTypeâ: âInput_Exceptionâ, âerrorCodeâ: âDH-905â, âerrorMessageâ: âInvalid Priceâ}}
Message sent successfully
Error at getting order status as Check the order id, Error as None
[NIFTY] ERROR checking SL status: local variable âresponseâ referenced before assignment
error in sl order cheking
[0] > e[33;01mc:\users\administrator\desktop\2. session2 - installation\nce.pye[00m(e[36;01m210e[00m)()
â e[94mcontinuee[39;49;00me[90me[39;49;00m
Hi@this is krishna
I am getting below error while running my algo with rsi indicator
watchlist = ['360ONE','ABB','ABCAPITAL','ADANIENSOL','ADANIENT','ADANIGREEN']
traded_wathclist = []
while True:
for stock_name in watchlist:
print(stock_name)
chart = tsl.get_intraday_data(stock_name, 'NFO', 1)
chart['rsi'] = talib.RSI(chart['close'], timeperiod=14) #pandas
bc = chart.iloc[-2] #pandas breakout candle
ic = chart.iloc[-3] #pandas inside candle
ba_c = chart.iloc[-4] #pandas base candle
uptrend = bc['rsi'] > 30
downtrend = bc['rsi'] < 60
inside_candle_formed = (ba_c['high'] > ic['high']) and (ba_c['low'] < ic['low'])
upper_side_breakout = bc['high'] > ba_c['high']
down_side_breakout = bc['low'] < ba_c['low']
no_repeat_order = stock_name not in traded_wathclist
max_order_limit = len(traded_wathclist) <= max_trades
D:\Dhan\6. Session6- 1st Live Algo>py âDhan_codebase usage.pyâ
Codebase Version 2.8 : Solved - Strike Selection Issue
-----Logged into Dhan-----
reading existing file all_instrument 2025-12-10.csv
Got the instrument file
360ONE
{âstatusâ: âfailureâ, âremarksâ: {âerror_codeâ: âDH-905â, âerror_typeâ: âInput_Exceptionâ, âerror_messageâ: âSystem is unable to fetch data due to incorrect parameters or no data presentâ}, âdataâ: {âerrorTypeâ: âInput_Exceptionâ, âerrorCodeâ: âDH-905â, âerrorMessageâ: âSystem is unable to fetch data due to incorrect parameters or no data presentâ}}
Traceback (most recent call last):
File âD:\Dhan\6. Session6- 1st Live Algo\Dhan_Tradehull_V2.pyâ, line 569, in get_intraday_data
raise Exception(ohlc)
Exception: {âstatusâ: âfailureâ, âremarksâ: {âerror_codeâ: âDH-905â, âerror_typeâ: âInput_Exceptionâ, âerror_messageâ: âSystem is unable to fetch data due to incorrect parameters or no data presentâ}, âdataâ: {âerrorTypeâ: âInput_Exceptionâ, âerrorCodeâ: âDH-905â, âerrorMessageâ: âSystem is unable to fetch data due to incorrect parameters or no data presentâ}}
Traceback (most recent call last):
File âD:\Dhan\6. Session6- 1st Live Algo\Dhan_codebase usage.pyâ, line 26, in
chart[ârsiâ] = talib.RSI(chart[âcloseâ], timeperiod=14) #pandas
~~~~~^^^^^^^^^
TypeError: âNoneTypeâ object is not subscriptable