The Price block is a trading block that allows a user to specify a valid price for an instrument using the display format, such as 150'20. During algo execution, when the user specifies a price in this block, the Price block ensures that the price is a tradable price for that instrument. The block provides an alternative to using the Number block for specifying an order price.
Example The Price block determines the price display format for the connected Instrument block, allowing the user to specify the price using that display format. The output price is then sent to the Order block.
When the algo is launched from the Algo Dashboard, the corresponding algo parameter also uses the price display format appropriate for the instrument. When a user right-clicks or left-clicks within the price field, the value decrements or increments only to the next valid prices. In this case, the contract's price ticks in 1/32nds so decrementing the value automatically changes it to 154'31.
To customize the block, update the Block Properties.
Property | Description |
---|---|
Name | Name to display beneath the block on the ADL canvas |
BodyColor | Background color of the block |
Variable Type |
Method to use to specify the price
|
Price |
Default value for the price block You can use the integrated price ladder to select a price or enter the price directly. |