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
	<<-HERE
	US-Futures only
	----------------------------
	A Stop with Protection order combines the functionality of a stop limit order 
	with a market with protection order. The order is set to trigger at a specified 
	stop price. When the stop price is penetrated, the order is triggered as a 
	market with protection order, which means that it will fill within a specified 
	protected price range equal to the trigger price +/- the exchange-defined protection 
	point range. Any portion of the order that does not fill within this protected 
	range is submitted as a limit order at the exchange-defined trigger price +/- 
	the protection points.
	HERE
end