A simple situation. I got an algo and I'd like to add it this simple condition:
IF I got the daily profit goal THEN Stop the Algo for the rest of the day
I searched in help and I think this procedure could accomplish my objective:
protected override void OnBarUpdate()
{
if (GetAccountValue(AccountItem.RealizedProfitLoss) > 25000)
Return;
}
Will this stop the algo totally ?
Is there any other simpler way to accomplish what I want ?
Thanks
Comment