Set Stop Profit

Category: ProBacktest

The Set Stop Profit command in ProBuilder language is used to automatically set a stop order at a specified profit level from the entry price of a trade. This feature is crucial for managing risk and locking in profits without manually adjusting stop orders as the market moves.

Syntax:

SET STOP PPROFIT X value
SET STOP %PROFIT X value
SET STOP $PROFIT X value
SET STOP PROFIT X value

The syntax varies depending on the type of profit measurement you choose:

  • PPROFIT: Sets the stop order at a specified number of points above the entry price for a buy order, or below for a sell order.
  • %PROFIT: Sets the stop order at a specified percentage above the entry price for a buy order, or below for a sell order.
  • $PROFIT: Sets the stop order at a specified monetary amount above the entry price for a buy order, or below for a sell order.
  • PROFIT: Sets the stop order at a specified number of price units above the entry price for a buy order, or below for a sell order.

Example:

SET STOP PPROFIT 10

This example sets a stop order to lock in a profit of 10 points above the entry price for a buy order. If the entry price was 100, the stop order would be placed at 110.

Additional Information:

Using the Set Stop Profit command helps traders secure profits by automatically adjusting the stop order to a favorable position as the market price moves. This is particularly useful in volatile markets where quick changes in price can erode profits rapidly. It is important to choose the right type of profit measurement (points, percentage, or dollar amount) based on your trading strategy and risk management practices.

Related Instructions:

  • Set Target Loss probacktest
  • Logo Logo
    Loading...