I truly appreciate the opportunity to learn backtesting. Dhan is the only Indian broker actively guiding its clients towards the future of algorithmic trading, and it’s inspiring to see such dedication.
As traders, we also have a responsibility to put in our best individual efforts to make this initiative successful.
My plan is to go through each session carefully, bringing in real-life scenarios, challenges, and practical problems for discussion. By sharing and engaging with others, we can make our learning experience truly meaningful and worthwhile.
This way, we can ensure our learning has lasting value!
Can you please guide me how can I backtest or replay historic option chain.
I am unable to find historic options related information in instruments file
orderid = tsl.order_placement(
tradingsymbol='NIFTY 19 DEC 23300 CALL',
exchange='NFO',
quantity=75,
price=0, # Generally BO orders are MARKET or small LIMIT
trigger_price=0,
order_type='MARKET', # or 'LIMIT' if you want
transaction_type='BUY',
trade_type='BO',
bo_profit_value=30, # Target points (example 30 points)
bo_stop_loss_value=15 # Stop Loss points (example 15 points)
)
print(orderid)
Please check the code for Bracket Order — is it correct? If not, kindly suggest the correct one.
Also, for modifying a Bracket Order, should we use the same format or use our regular modify order format?
hello sir ,mujhe apne algo ke liye ek sample code chahiye jo live market ka ohlc de nifty ka… jab chahe… like 12 baje tak ka ohlc…aaj ka(live market me)
Hi so we no longer need the “Dhan_TradeHull_V2” file to be added by us manually to the codebase and imported? I dont see it anywhere in these files.
My tsl.cancel_all_orders function as per previous setup is not at all working so checked to upgrade the dhan_tradehull library and it latest but I see now the file “Dhan_TradeHull_V2” is not even there. PLease confirm asap.
Very Good Morning Sir, Can you please clarify the difference in data between NSE & Dhan, with regards to the OptionChain.
NSE Gives OI & Change in OI both for Call & Put Strikes.
But at Dhan, I have noticed that it gives OI & Change in OI% for Call & Put Strikes.
I am not able to correlate the Change in OI% (Dhan) with Change in OI (NSE), of course this is not % Based.
But even that Percentage Provided on Dhan Platform is not understandable.
Can you please clarify this sir.
@Tradehull_Imran sir, thanks for your reply , but when i use this structure i got error sometimes for trigger price, , sl , target . pls check the image attached