Class: Options::Strategies::LongIronFly

Inherits:
IronStrategy show all
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

Methods inherited from IronStrategy

#build

Methods inherited from Strategy

#construct, #long=, #lot_size=, #merge_legs, #parse_option_type_klasses, #short=, #to_hash, #to_json

Constructor Details

#initialize(options) ⇒ LongIronFly

Returns a new instance of LongIronFly.



225
226
227
228
# File 'lib/options/strategies.rb', line 225

def initialize(options)
  super(options)
  @strategy_type_klasses = {LongStraddle => @strike_price, ShortHedge => @strike_price}
end