Class: Options::Strategies::IronCondor

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) ⇒ IronCondor

Returns a new instance of IronCondor.



204
205
206
207
# File 'lib/options/strategies.rb', line 204

def initialize(options)
  super(options)
  @strategy_type_klasses = {ShortStrangle => @strike_price, Hedge => @strike_price}
end