Added two extra unit tests to Portfolio

This commit is contained in:
Michael Halls-Moore
2015-02-02 18:57:02 +00:00
parent e223aa5751
commit 30c995f76d
3 changed files with 131 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class Position(object):
return mult * (self.cur_price - self.avg_price)
def calculate_profit_base(self):
pips = self.calculate_pips()
pips = self.calculate_pips()
return pips * self.exposure / self.cur_price
def calculate_profit_perc(self):