Lean
$LEAN_TAG$
|
Provides extension methods for handling brokerage operations. More...
Static Public Member Functions | |
static bool | OrderCrossesZero (decimal holdingQuantity, decimal orderQuantity) |
Determines if executing the specified order will cross the zero holdings threshold. More... | |
Provides extension methods for handling brokerage operations.
Definition at line 22 of file BrokerageExtensions.cs.
|
static |
Determines if executing the specified order will cross the zero holdings threshold.
holdingQuantity | The current quantity of holdings. |
orderQuantity | The quantity of the order to be evaluated. |
true
if the order will change the holdings from positive to negative or vice versa; otherwise, false
. This method checks if the order will result in a position change from positive to negative holdings or from negative to positive holdings.
Definition at line 35 of file BrokerageExtensions.cs.