Module: CoveredCallExpiryItmExit

Defined in:
lib/covered_call_expiry_itm_exit.rb

Instance Method Summary collapse

Instance Method Details

#explainObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/covered_call_expiry_itm_exit.rb', line 6

def explain
  template = <<-EOT
  Call Expires ITM
         Exercise %s (inc %s Assignment Fee)
=    Net Proceeds %s (%s per share)
-      Net Outlay %s
=          Profit %s

  EOT

  template % [
    exercise.to_money_s.rjust(12), 
    commission.option_assignment.to_money_s,
    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

#proceedsObject



2
3
4
# File 'lib/covered_call_expiry_itm_exit.rb', line 2

def proceeds
  exercise
end