Add signals trading enabled

This commit is contained in:
2023-02-15 20:02:38 +00:00
parent 5c090433a3
commit 3854bdcc7d
4 changed files with 38 additions and 3 deletions

View File

@@ -130,6 +130,8 @@ class StrategyForm(RestrictedFormMixin, ModelForm):
"entry_signals",
"exit_signals",
"trend_signals",
"signal_trading_enabled",
"active_management_enabled",
"enabled",
)
@@ -144,6 +146,8 @@ class StrategyForm(RestrictedFormMixin, ModelForm):
"entry_signals": "Callbacks received to these signals will trigger a trade.",
"exit_signals": "Callbacks received to these signals will close all trades for the symbol on the account.",
"trend_signals": "Callbacks received to these signals will limit the trading direction of the given symbol to the callback direction until further notice.",
"signal_trading_enabled": "Whether the strategy will place trades based on signals.",
"active_management_enabled": "Whether the strategy will amend/remove trades on the account that violate the rules.",
"enabled": "Whether the strategy is enabled.",
}