The LOT keyword in ProBuilder language is used to specify the quantity of lots to be traded in a buy or sell order. In trading terms, a lot represents a standardized number of units of the traded asset. In ProBuilder, the LOT keyword functions similarly to specifying the number of shares in stock trading.
LOT
IF NOT ONMARKET AND validsetup THEN
BUY 1 LOT AT MARKET NextBarOpen
ENDIF
This example demonstrates the use of the LOT keyword in a conditional trading strategy. The script checks if the trading instrument is not currently in the market and if a valid setup condition (defined elsewhere in the script) is true. If both conditions are met, it places an order to buy one lot of the instrument at the market price at the opening of the next bar.
BUY AT MARKET places an order for “1” at the market).SELL AT MARKET closes the entire position).This keyword simplifies the process of specifying order size, making it easier for traders to manage their positions according to predefined trading strategies.