Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STX Issue in Supertrend while trying to run it. #5

Closed
rex3992 opened this issue Nov 8, 2021 · 5 comments
Closed

STX Issue in Supertrend while trying to run it. #5

rex3992 opened this issue Nov 8, 2021 · 5 comments

Comments

@rex3992
Copy link

rex3992 commented Nov 8, 2021

Hi,
Can you please let me know why am I getting this issue, also if you have done some update to the code can you please share.
STX contains NaN as assigned in ab_lib.py from the supertrend function.

Traceback (most recent call last):
File "C:/Users/Rex/Desktop/Trading/alice_blue-main_Rajesh/ab_options.py", line 1368, in
strMsg="BankNifty: #={}, ST_LOW={}, ST_LOW_SL={}, ATR={}, ST_MED={}, ST_MED_SL={}, ltp_bank_ATM_CE={}, ltp_bank_ATM_PE={}".format(df_bank_cnt, super_trend_bank[-1], round(df_bank.ST.iloc[-1]), round(df_bank.ATR.iloc[-1],1), df_bank_med.STX.iloc[-1], round(df_bank_med.ST.iloc[-1]), ltp_bank_ATM_CE, ltp_bank_ATM_PE)
File "C:\Users\Rex\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\generic.py", line 5487, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'STX'

@RajeshSivadasan
Copy link
Owner

This issue has been fixed. Kindly pick the latest version

@sachuc
Copy link

sachuc commented Jan 18, 2022

Hardly anybidy has errors I get 50 errors in triple quotes Indention errors while running your code in jupyter notebook Please help me I am doing something wrong

@RajeshSivadasan
Copy link
Owner

I am not using jupyter notebook instead I am using vscode on linux. Please make sure that the code indentation is not lost/mismatched while running the code in jupyter notebook.

@raviyellani
Copy link

Hi, may i know have you tested this algo in realtime market if so what is the accuracy range i.e TGT/SL hitting percentage

@RajeshSivadasan
Copy link
Owner

RajeshSivadasan commented Mar 18, 2022

@raviyellani , Not tracking the accuracy till now. Wanted to get this working in all the scenarios. This algo was halted for some time due to an AWS issue. I am planning to start it again and post the trades/results. Basically a lot depends on the parameters you are setting to get this worked based on the learnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants