From 67819657d90914ec5fa277cc4d10b37f2b1d3186 Mon Sep 17 00:00:00 2001 From: David Brazda Date: Mon, 17 Apr 2023 15:59:46 +0200 Subject: [PATCH] bugfix --- v2realbot/ENTRY_backtest_strategyVykladaci.py | 1 + v2realbot/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/v2realbot/ENTRY_backtest_strategyVykladaci.py b/v2realbot/ENTRY_backtest_strategyVykladaci.py index 6b600c4..b16404c 100644 --- a/v2realbot/ENTRY_backtest_strategyVykladaci.py +++ b/v2realbot/ENTRY_backtest_strategyVykladaci.py @@ -242,6 +242,7 @@ def next(data, state: StrategyState): state.vars.limitka = None for o in orderlist: if o.side == OrderSide.SELL: + print("Nalezena LIMITKA") state.vars.limitka = o.id if o.side == OrderSide.BUY: pendingbuys_new[str(o.id)]=float(o.limit_price) diff --git a/v2realbot/main.py b/v2realbot/main.py index a22ffa3..52a6cca 100644 --- a/v2realbot/main.py +++ b/v2realbot/main.py @@ -31,7 +31,7 @@ ic.configureOutput(includeContext=True) def threadName(): return '%s |> ' % str(current_thread().name) ic.configureOutput(prefix=threadName) -ic.disable() +#ic.disable() """"" Main entry point of the bot. Starts strategies according to config file, each in separate thread.