diff --git a/v2realbot/ENTRY_ClassicSL_v01.py b/v2realbot/ENTRY_ClassicSL_v01.py index 4ce1728..53361dc 100644 --- a/v2realbot/ENTRY_ClassicSL_v01.py +++ b/v2realbot/ENTRY_ClassicSL_v01.py @@ -1244,7 +1244,11 @@ def next(data, state: StrategyState): #POKUD je nastaven MIN PROFIT, zkontrolujeme ho a az pripadne pustime CONDITIONY directive_name = "exit_cond_min_profit" - exit_cond_min_profit = get_override_for_active_trade(directive_name=directive_name, default_value=safe_get(state.vars, directive_name, None)) + exit_cond_min_profit_nodir = get_override_for_active_trade(directive_name=directive_name, default_value=safe_get(state.vars, directive_name, None)) + + directive_name = "exit_cond_min_profit_" + str(smer) + exit_cond_min_profit = get_override_for_active_trade(directive_name=directive_name, default_value=exit_cond_min_profit_nodir) + #máme nastavený exit_cond_min_profit # zjistíme, zda jsme v daném profit a případně nepustíme dál diff --git a/v2realbot/controller/services.py b/v2realbot/controller/services.py index c0c9058..af0e68d 100644 --- a/v2realbot/controller/services.py +++ b/v2realbot/controller/services.py @@ -823,8 +823,8 @@ def delete_archived_runners_byID(id: UUID): print("log deleted",resl.rowcount) conn.commit() print("commit") - if resh.rowcount == 0 or resd.rowcount == 0: - return -1, "not found "+str(resh.rowcount) + " " + str(resd.rowcount) + " " + str(resl.rowcount) + # if resh.rowcount == 0 or resd.rowcount == 0: + # return -1, "not found "+str(resh.rowcount) + " " + str(resd.rowcount) + " " + str(resl.rowcount) return 0, str(resh.rowcount) + " " + str(resd.rowcount) + " " + str(resl.rowcount) except Exception as e: diff --git a/v2realbot/static/index.html b/v2realbot/static/index.html index 3515627..c7b1fa7 100644 --- a/v2realbot/static/index.html +++ b/v2realbot/static/index.html @@ -17,12 +17,12 @@ + + - - @@ -45,7 +45,25 @@ - + + + + + + @@ -176,12 +194,12 @@
-->
- - + + - +
@@ -282,7 +300,8 @@
- + + @@ -355,9 +374,9 @@
-
+ @@ -411,6 +430,33 @@
+