How can I apply this code to stop trading each day when profit is reached and then restart for next day.
protected override void OnBarUpdate()
{
// If the profit on real-time trades is > $1000 stop trading
if (Performance.RealtimeTrades.TradesPerformance.Curr ency.CumProfit > 1000)
return;
}
thanks
shane
Comment