Calculate price slippage more reliably and allow specifying order type and time in force

This commit is contained in:
2022-11-15 07:20:17 +00:00
parent c8f776e2a8
commit 5c68191e5b
8 changed files with 176 additions and 43 deletions

View File

@@ -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",