Ive been having some issues implementing daily risk stops, i programmed these a while back and some of the behaviour is not as expected, also if there was way to implement the solution in a more elegant manner becuase this seems to work on the backtests but not in live mode
basically when the realized and open position together reaches -500euros i want it to flatten positions and actually terminate the strategy also i want it to constantly check this rather than just do it onbarupdate
any help would be greatly appreciated
thanks in advance
Arilano
if (priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit > 500)
return;
elseif(priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit < 500)
{

Comment