2022-01-08 00:05:36 +01:00
|
|
|
# #%%
|
|
|
|
|
# import pandas as pd
|
|
|
|
|
# import pandas_ta as ta
|
2022-01-09 17:21:06 +01:00
|
|
|
# from config.config import get_default_ensemble_config
|
2022-01-08 00:05:36 +01:00
|
|
|
# from config.preprocess import preprocess_config
|
|
|
|
|
# from data_loader.load_data import load_data
|
|
|
|
|
|
|
|
|
|
# # %%
|
2022-01-09 17:21:06 +01:00
|
|
|
# model_config, training_config, data_config = get_default_ensemble_config()
|
2022-01-08 00:05:36 +01:00
|
|
|
# model_config, training_config, data_config = preprocess_config(model_config, training_config, data_config)
|
|
|
|
|
|
|
|
|
|
# data_config['target_asset'] = data_config['assets'][0]
|
|
|
|
|
# X, y, target_returns = load_data(**data_config)
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.donchian()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.ema()
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.adjusted = "ADA_USD_returns"
|
|
|
|
|
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.sma(length=10)
|
|
|
|
|
|
|
|
|
|
# # %%
|
|
|
|
|
# X
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.categories
|
|
|
|
|
|
|
|
|
|
# # %%
|
|
|
|
|
# ind_list = X.ta.indicators(as_list=True)
|
|
|
|
|
|
|
|
|
|
# # %%
|
|
|
|
|
# ind_list
|
|
|
|
|
# # %%
|
|
|
|
|
# X.ta.ao('ADA_USD_returns', length=10)
|
|
|
|
|
# # %%
|
|
|
|
|
# ta.ao()
|