Closed wupeng1211 closed 4 years ago
if ((df['tenkan'] > df['kijun']) and (df['tenkan'] < df['kijun'])):
Please name issues according to the problem you have, and not just "help".
Each of these are dataframe columns - you cannot use "if" on them - and this is why your'e getting an error.
Best get familiar with how pandas dataframes work (e.g. with 10 minutes to pandas) - otherwise you will struggle greatly while writing strategies.
Please note that since we're a open source project with people donating their free time to support and develop things further, giving support on basic things like "How pandas work" are not within our possibilities - so we'll have to point you to either the pandas documentation, or encourage self-paced learning through other online resources (no, we do not give recommendations for such resources - as everyone learns differently).
Thanks for your understanding.
thks
` def Ichimoku_Score(self, dataframe, conversion_line_period = 9, base_line_periods = 26, laggin_span = 52, displacement = 26): df = dataframe.copy()