app/models/iro/position.rb in iron_warbler-2.0.7.20 vs app/models/iro/position.rb in iron_warbler-2.0.7.21
- old
+ new
@@ -52,10 +52,10 @@
field :end_inner_price, type: :float
field :end_inner_delta, type: :float
def breakeven
- inner_strike - begin_outer_price + begin_inner_price
+ strategy.breakeven(self)
end
def current_underlying_strike
Iro::Stock.find_by( ticker: ticker ).last
end