Closed Knightmare6890 closed 3 years ago
On a quick glance i'd say it's this section:
for key in dataframe.keys()[1:]:
dataframe[key] = normalize(dataframe[key])
On a glance, it seems to normalize ALL columns (including the ohlcv columns). By doing this, it'll raise this warning in live/dry. Worse - it'll also make backtesting unreliable / invalid - and will now use these "modified" prices.
ops yes thanks @xmatthias @Knightmare6890 change this [1:]to [6:] or [5:] to fix it
Thank you Matthias and mablue!
Changing the index to [5:] worked, it's now running normal.
Hello @xmatthias and @mablue, thanks a lot for your sharing on this project. Actually I'm new on python and coding too, but I have great interest learning it. I currently try to get an understanding of this GodStraNew strategy workflow, but many things I still understand. Could you please describe the meaning of this lines : god_genes_with_timeperiod = list() for god_gene in god_genes: for timeperiod in timeperiods: god_genes_with_timeperiod.append(f'{god_gene}-{timeperiod}')
Thank you very much.
Hello @xmatthias and @mablue, thanks a lot for your sharing on this project. Actually I'm new on python and coding too, but I have great interest learning it. I currently try to get an understanding of this GodStraNew strategy workflow, but many things I still understand. Could you please describe the meaning of this lines : god_genes_with_timeperiod = list() for god_gene in god_genes: for timeperiod in timeperiods: god_genes_with_timeperiod.append(f'{god_gene}-{timeperiod}')
Thank you very much.
this lines just make a list of strings that will be add to main dataframe. a list that have gene names with splited timeframes. for example if you setted timeframes to 7 and 14 and have a SMA gene than this lines append two strings to the list: SMA-7 and SMA-14 than we check all strings and findout which gene will calculate in which tf.and append it with specific name to the main dataframe
Thanks for your comment @mablue I will try to figure it out
I am using a customized GodStra by Mablue with ta. I am trying to check previous candles for a trend in "populate_indicators", but I suspect that somehow the index referencing is not returning the dataframe correctly, and in dry run it gives me above warning. In backtest and hyperopt it works fine.
Please see code below. If anyone has an idea how to fix this warning, please let me know.