Implement trailing stop loss
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.1.3 on 2022-11-15 15:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0026_trade_time_in_force'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='strategy',
|
||||
name='trailing_stop_loss_percent',
|
||||
field=models.FloatField(blank=True, default=1.0, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='trade',
|
||||
name='trailing_stop_loss',
|
||||
field=models.FloatField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user