This is currently implemented in my two scripts:
// if net PnL is greater than $3000 or a loss of less than -$1500, then we need to close the strategy.
if (SystemPerformance.AllTrades.TradesPerformance.Cur rency.CumProfit > 3000
|| SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit < -1500)
{
CloseStrategy("My Custom Close");
}
The strategy disables on its own when either of these conditions are met which is great; however, I would like to change "CumProfit" with the total Net PnL of the two combined active strategies. What should be the correct syntax for the bots to gather the combined net PnL of all active strategies?
Thanks for the help in advance.
Comment