RightEdge - The Ultimate Backtesting and Trading System Development Platform
Setting a Profit Target
Profit targets can be set one of two ways in RightEdge. The first method involves setting the value at the system level within the trading system project settings. Once a trading system is open, click on the top most tree item in the Trading System pane. This will display the global properties for this trading system. If the Properties pane does not appear, force it to the visible state by selecting Properties Window from the View menu.
The profit target field is indicated in red. Note that this is represented as a decimal. So in the case demonstrated above, a 3% profit target has been set. Set the profit target field to 0 if no profit target order is desired.
Profit targets can also be set in code where they can be controlled more dynamically.
The samples above show the profit target being set in the startup function. This is identical to setting the profit target in the system properties. However, the ProfitTarget variable can be set in any function and it is honored whenever a new position is opened (not necessarily when it is submitted).