Module: CoveredCallEarlyExit
- Defined in:
- lib/covered_call_early_exit.rb
Instance Method Summary collapse
Instance Method Details
#explain ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/covered_call_early_exit.rb', line 6 def explain template = <<-EOT Early Exit Stock Sale %s - Call Buyback %s = Net Proceeds %s (%s per share) - Net Outlay %s = Profit %s EOT template % [ stock_sale.to_money_s.rjust(12), option_sale.to_money_s.rjust(12), proceeds.to_money_s.rjust(12), proceeds_per_share.to_money_s, opening_position.net_outlay.to_money_s.rjust(12), profit.to_money_s.rjust(12) ] end |
#proceeds ⇒ Object
2 3 4 |
# File 'lib/covered_call_early_exit.rb', line 2 def proceeds stock_sale - option_sale end |