EntryHandling
<< Click to Display Table of Contents >> EntryHandling |
Sets the manner in how entry orders will handle.
Note: This property ONLY applies to Managed order methods. When IsUnmanaged is set to true, Entry Handling properties will be hidden from the UI. |
An enum which sets how the entry orders are handled. Default value is EntryHandling.AllEntries. Possible values include:
EntryHandling.AllEntries |
NinjaScript will process all order entry methods until the maximum allowable entries set by the EntriesPerDirection property is reached while in an open position |
EntryHandling.UniqueEntries |
NinjaScript will process order entry methods until the maximum allowable entries set by the EntriesPerDirection property per each uniquely named entry |
Warning: This property should ONLY bet set from the OnStateChange() method during State.SetDefaults or State.Configure |
EntryHandling
Allow a maximum of two entries while a position is open |
---|
// Example #1 |
EnterLong() will be processed once for each uniquely named entry. |
---|
// Example #2 |