Calculate price slippage more reliably and allow specifying order type and time in force
This commit is contained in:
@@ -64,11 +64,14 @@ class StrategyForm(ModelForm):
|
||||
"name",
|
||||
"description",
|
||||
"account",
|
||||
"order_type",
|
||||
"time_in_force",
|
||||
"hooks",
|
||||
"enabled",
|
||||
"take_profit_percent",
|
||||
"stop_loss_percent",
|
||||
"price_slippage_percent",
|
||||
"callback_price_deviation_percent",
|
||||
"trade_size_percent",
|
||||
)
|
||||
|
||||
@@ -84,6 +87,7 @@ class TradeForm(ModelForm):
|
||||
"account",
|
||||
"symbol",
|
||||
"type",
|
||||
"time_in_force",
|
||||
"amount",
|
||||
"price",
|
||||
"stop_loss",
|
||||
|
||||
Reference in New Issue
Block a user