GetPeg (Reserved Word)
Identifies the current state of the ”Peg” advanced order setting as set by SetPeg
Usage
GetPeg
Return
An Integer for the state of the Peg feature. A return value of PEGDisable indicates the ”Peg” advanced order is disabled, otherwise the return value indicates the peg order is enabled and the peg type:
There a re also EasyLanguage constants to help identify and compare the Peg type return value, these are defined as follows:
0 = PegDisable (Peg Feature Disabled)
1 = PegBest (Enabled at: Best Bid for a Buy, Best Ask for a Sell Short)
2 = PegMid (Enabled at: Mid Price for both Buy and Sell Short)
Inputs
None
Example
Value1 = GetPeg;