The SET instruction in ProBuilder language is used to define the parameters for trading orders, specifically targeting profit levels and setting stop loss levels. This instruction is mandatory when using STOP and TARGET instruction.
SET TARGET PROFIT value
SET STOP LOSS value
The SET TARGET and SET STOP commands allow the user to specify the price levels at which to take profits or cut losses, respectively.
// Setting a target and stop for a trade
SET TARGET PROFIT 120
SET STOP LOSS 100
In this example, a target is set at a price distance from entry of 120 and a stop loss is set at a price distance from entry of 100. This means that the trading system will automatically close the position when the price reaches 120 price units from its open (taking profit) or drops 100 price units from its open (stopping loss), depending on market movements.