Close all positionos at once
Created at 30 Jul 2018, 17:41
Close all positionos at once
30 Jul 2018, 17:41
Dear Panagiotis,
In cTrader when I push button "CloseAll", all the positions are closed almost immediately
when I use a code like
"
foreach (var position in Positions)
{
ClosePosition(position);
}
"
it takes a lot of time
Is there a way to close all the postions at once?
Regards,
Sasha
PanagiotisCharalampous
30 Jul 2018, 17:45
Hi Sasha,
Use ClosePositionAsync.
Best Regards,
Panagiotis
@PanagiotisCharalampous