if stop_date null in config it would use current date
This commit is contained in:
parent
cb576a9dfc
commit
969e011d48
@ -1,6 +1,6 @@
|
||||
{
|
||||
"start_date": "2025-03-01",
|
||||
"stop_date": "2025-03-15",
|
||||
"stop_date": null,
|
||||
"initial_usd": 10000,
|
||||
"timeframes": ["15min"],
|
||||
"strategies": [
|
||||
|
||||
9
main.py
9
main.py
@ -10,10 +10,8 @@ import json
|
||||
from cycles.utils.storage import Storage
|
||||
from cycles.utils.system import SystemUtils
|
||||
from cycles.backtest import Backtest
|
||||
from cycles.Analysis.supertrend import Supertrends
|
||||
from cycles.charts import BacktestCharts
|
||||
from cycles.Analysis.strategies import Strategy
|
||||
from cycles.strategies import StrategyManager, create_strategy_manager
|
||||
from cycles.strategies import create_strategy_manager
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
@ -274,7 +272,10 @@ if __name__ == "__main__":
|
||||
exit(1)
|
||||
|
||||
start_date = config['start_date']
|
||||
stop_date = config['stop_date']
|
||||
if config['stop_date'] is None:
|
||||
stop_date = datetime.datetime.now().strftime("%Y-%m-%d")
|
||||
else:
|
||||
stop_date = config['stop_date']
|
||||
initial_usd = config['initial_usd']
|
||||
timeframes = config['timeframes']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user