Module: IB::StopProtected

Extended by:
OrderPrototype
Defined in:
lib/ib/order_prototypes/stop.rb

Class Method Summary collapse

Methods included from OrderPrototype

aliases, alternative_parameters, defaults, optional, order, parameters, requirements

Class Method Details

.aliasesObject



71
72
73
# File 'lib/ib/order_prototypes/stop.rb', line 71

def aliases
  SimpleStop.aliases
end

.defaultsObject



67
68
69
# File 'lib/ib/order_prototypes/stop.rb', line 67

def defaults
    super.merge order_type: :stop_protected 
end

.requirementsObject



75
76
77
# File 'lib/ib/order_prototypes/stop.rb', line 75

def requirements
  SimpleStop.requirements
end

.summaryObject



80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/ib/order_prototypes/stop.rb', line 80

def summary
  "  US-Futures only\n  ----------------------------\n  A Stop with Protection order combines the functionality of a stop limit order \n  with a market with protection order. The order is set to trigger at a specified \n  stop price. When the stop price is penetrated, the order is triggered as a \n  market with protection order, which means that it will fill within a specified \n  protected price range equal to the trigger price +/- the exchange-defined protection \n  point range. Any portion of the order that does not fill within this protected \n  range is submitted as a limit order at the exchange-defined trigger price +/- \n  the protection points.\n  HERE\nend\n"