Class: Options::Strategies::IronFly
- Inherits:
-
IronStrategy
- Object
- Strategy
- IronStrategy
- Options::Strategies::IronFly
- 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) ⇒ IronFly
constructor
A new instance of IronFly.
Methods inherited from IronStrategy
Methods inherited from Strategy
#construct, #long=, #lot_size=, #merge_legs, #parse_option_type_klasses, #short=, #to_hash, #to_json
Constructor Details
#initialize(options) ⇒ IronFly
Returns a new instance of IronFly.
211 212 213 214 |
# File 'lib/options/strategies.rb', line 211 def initialize() super() @strategy_type_klasses = {ShortStraddle => @strike_price, Hedge => @strike_price} end |