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
Comments
This issue has been fixed. Kindly pick the latest version |
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 |
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. |
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 |
@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. |
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'
The text was updated successfully, but these errors were encountered: