Close position within OnPositionClosed event
Created at 06 Jun 2017, 18:33
Close position within OnPositionClosed event
06 Jun 2017, 18:33
Hey Guys :)
I would like to close other positions inside OnPositionClosed event.
EXAMPLE:
protected override void OnPositionClosed(Position closedPosition) { foreach (var p in Positions) { if(closedPosition.SymbolCode == p.SymbolCode) { CloseOldPosition(p.Id); } } }
Would it be good practice?
Mikro
09 Jun 2017, 16:50
That's totaly dependent on your Trading Plan. Technicaly this is no Problem.
@Mikro