Have been trying had to get along but facing issues.
Could you please help on the below.
How do I get the Index, and Stock Future Data both historical & live market feed (OHLCV, OI, PCR, on a 1 min time frame.
How can I get VIX data
Market Depth - you mentioned in the previouspost that this is no working.
I really want to move forward with this. Can u please help me.
Note:
I am not using the Excel thing I am doing it on the screen itself.
I keep refereing to your codes but it is always handy to have reference document. however Dhan reference doc is limited to Version 2 and this is were the challange is for me.
after running the commands in above line separately below is the output. why is completed orders portion throwing keyerror for ‘qty’ and how to fix it?
Blockquote
(Pdb++) orderbook_df[orderbook_df[‘qty’] > 0].shape[0]
0
(Pdb++) completed_orders_df[completed_orders_df[‘qty’] > 0].shape[0]
*** KeyError: ‘qty’
Traceback (most recent call last):
File “C:\Users\abcwin\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py”, line 3761, in getitem
indexer = self.columns.get_loc(key)
File “C:\Users\abcwin\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\range.py”, line 349, in get_loc
raise KeyError(key)
Hi @Tradehull_Imran sir,
maine pdb laga ke check kiya data aa raha hai but at the end program nahi chal raha. exception bhi add kr diya tab bhi nahi resolve ho raha
Else,
On the top of our script file we use the following line,
“from Dhan_Tradehull import Tradehull”
Here, you can click on from Dhan_Tradehull (VS Code Editor).
It will redirect to you to the file.
Hi for the “expiry” parameter of the atm_strike_selection function, we need to pass the exact date of expiry ? or provide values like 0,1,2 for current expiry and so on ? which i saw in another post.
Which is it?
@Tradehull_Imran Further, the tsl.get live pnl is returning some strange 10 digit high value which i am not able to relate back to my Dhan account. Kindly check & confirm.
/Users/raj/Desktop/workstation/personal/trading/algo/dhan/zerobot_v4.py:136: UserWarning: Converting to PeriodArray/Index representation will drop timezone information.
chart['vwap'] = pta.vwap(chart['high'], chart['low'], chart['close'], chart['volume'])
/Users/raj/Desktop/workstation/personal/trading/algo/dhan/zerobot_v4.py:136: UserWarning: Converting to PeriodArray/Index representation will drop timezone information.
chart['vwap'] = pta.vwap(chart['high'], chart['low'], chart['close'], chart['volume'])
/Users/raj/Desktop/workstation/personal/trading/algo/dhan/zerobot_v4.py:136: UserWarning: Converting to PeriodArray/Index representation will drop timezone information.
chart['vwap'] = pta.vwap(chart['high'], chart['low'], chart['close'], chart['volume'])
/Users/raj/Desktop/workstation/personal/trading/algo/dhan/zerobot_v4.py:136: UserWarning: Converting to PeriodArray/Index representation will drop timezone information.
Update:
It happens if I remove warnings.filterwarnings("ignore")
from the algo. Have added it back
@saurabha213
I have implemented Short Iron Butterfly Strategy using Algo for Nifty weekly expiry.
It is already explained in @Tradehull_Imran Advance Algo Trading Series available on YouTube.
This is just output of my ongoing trade. Whenever it will hit target or stop loss it will exit my trade.
Hi @Tradehull_Imran sir, Please see the below code
import pdb
import time
import datetime
import traceback
from Dhan_Tradehull_V2 import Tradehull
import pandas as pd
import pprint
import talib
import pandas_ta as pta
import pandas_ta as ta