The BREAKEVEN instruction in ProBuilder language is used to manage trading risk by adjusting the stop loss or take profit levels to the entry price of a current position. This functionality is crucial for traders looking to protect their positions from turning a profit into a loss or to minimize losses in adverse market movements.
Set Stop Breakeven
Set Target Breakeven
Example 1: Set Stop Breakeven
if longonmarket then
if high - tradeprice >= 10 * pointsize then
set stop breakeven
endif
endif
This example demonstrates how to set a stop loss to breakeven for a long position once the price has reached 10 points above the trade entry price.
Example 2: Set Target Breakeven
if longonmarket then
if tradeprice - low >= 10 * pointsize then
set target breakeven
endif
endif
This example shows how to set a take profit to breakeven for a long position if the price drops 10 points below the trade entry price, aiming to minimize potential losses.
Using the breakeven adjustments is a strategic decision in trade management that balances between locking in profits and allowing room for potential further gains. It is particularly useful in volatile markets where price swings can quickly turn profits into losses. The breakeven adjustments should be used in conjunction with a well-thought-out trading strategy and not as the sole method of risk management.