Class: Options::Strategies::LongCallLadder
- Inherits:
-
StrategyBuilder
- Object
- Strategy
- StrategyBuilder
- Options::Strategies::LongCallLadder
- Defined in:
- lib/options/strategies.rb
Instance Attribute Summary
Attributes inherited from Strategy
#ce_increment, #default_lot_size, #increment, #index_name, #input_lot_size, #legs, #option_type_klasses, #options_data, #pe_increment, #strike_price
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ LongCallLadder
constructor
A new instance of LongCallLadder.
Methods inherited from StrategyBuilder
Methods inherited from Strategy
#construct, #long=, #lot_size=, #merge_legs, #parse_option_type_klasses, #short=, #to_hash, #to_json
Constructor Details
#initialize(options = {}) ⇒ LongCallLadder
Returns a new instance of LongCallLadder.
303 304 305 306 |
# File 'lib/options/strategies.rb', line 303 def initialize( ={}) super() @strategy_type_klasses = {LongCall => [@strike_price - (2 * @increment)], ShortCall => [@strike_price, @strike_price + (2 * @increment)]} end |