private bool ChangePositions(PositionInfo position) { var r = _updateOrNotRandom.NextDouble(); if (r < 0.5) { position.Update(); UpdatePosition(position); } else if (r >= 0.5 && r <= 0.65) { position = new PositionInfo { Symbol = "AUDUSD", Ticket = (long)(r * 1000), Lots = 0.02, Profit = 0.0 }; InsertPosition(position); return(false); } else if (r >= 0.9 && r < 1.0) { RemovePosition(position.Ticket); return(false); } return(true); }