summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/trading/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/trading/models.py b/app/trading/models.py
index 837300b..2a71fb3 100644
--- a/app/trading/models.py
+++ b/app/trading/models.py
@@ -297,7 +297,7 @@ class LuxOptionsTrade(models.Model):
if self.call_put == 0:
self.pl = round(((self.contract_close_price*self.number_contracts)*100) - ((self.contract_price*self.number_contracts)*100), 2)
else:
- self.pl = round(((self.contract_price*self.number_contracts)*100) - ((self.contract_close_price*self.number_contracts)*100), 2)
+ self.pl = round(((self.contract_close_price*self.number_contracts)*100) - ((self.contract_price*self.number_contracts)*100), 2)
if self.notes:
self.notes_html = markdown_to_html(self.notes)