Move order settings to OrderSettings
This commit is contained in:
@@ -127,16 +127,10 @@ class StrategyForm(RestrictedFormMixin, ModelForm):
|
||||
"risk_model",
|
||||
"trading_times",
|
||||
"order_settings",
|
||||
# "order_type",
|
||||
# "time_in_force",
|
||||
"entry_signals",
|
||||
"exit_signals",
|
||||
"trend_signals",
|
||||
"enabled",
|
||||
# "take_profit_percent",
|
||||
# "stop_loss_percent",
|
||||
# "trailing_stop_loss_percent",
|
||||
# "trade_size_percent",
|
||||
)
|
||||
|
||||
help_texts = {
|
||||
@@ -147,16 +141,10 @@ class StrategyForm(RestrictedFormMixin, ModelForm):
|
||||
"risk_model": "The risk model to use for this strategy. Highly recommended.",
|
||||
"trading_times": "When the strategy will place new trades.",
|
||||
"order_settings": "Order settings to use for this strategy.",
|
||||
# "order_type": "Market: Buy/Sell at the current market price. Limit: Buy/Sell at a specified price. Limits protect you more against market slippage.",
|
||||
# "time_in_force": "The time in force controls how the order is executed.",
|
||||
"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.",
|
||||
"enabled": "Whether the strategy is enabled.",
|
||||
# "take_profit_percent": "The take profit will be set at this percentage above/below the entry price.",
|
||||
# "stop_loss_percent": "The stop loss will be set at this percentage above/below the entry price.",
|
||||
# "trailing_stop_loss_percent": "The trailing stop loss will be set at this percentage above/below the entry price. A trailing stop loss will follow the price as it moves in your favor.",
|
||||
# "trade_size_percent": "Percentage of the account balance to use for each trade.",
|
||||
}
|
||||
|
||||
entry_signals = forms.ModelMultipleChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user