how to determine min quantity for Symbol
Created at 16 Nov 2021, 21:18
BL
how to determine min quantity for Symbol
16 Nov 2021, 21:18
Is there a way for cBOT to determine the minimum quantity required for a purchase of specific Symbol.
This way when I run the bot on stock vs. commodity vs etf etc it can automatically update the min quantity for buy orders without me having to set it manually in code.
amusleh
17 Nov 2021, 07:46
Hi,
Each symbol has a minimum and maximum volume properties that you can use for checking the symbol minimum and maximum allowed trading volume.
The properties are in in volume units not lots, you can use the symbol VolumeInUnitsToQuantity method to change the volume units to lots.
@amusleh