How get Pips in real time
Created at 27 Apr 2021, 19:19
How get Pips in real time
27 Apr 2021, 19:19
Hi,
I need to get pips on tick and after pips go to under -10 then open new trade (do not close trade with negative pips).
I have tried with Positions.Pips on tick but not works.
With function
private void OnPositionsClosed(PositionClosedEventArgs args)
{
only works if trade will closed.
amusleh
28 Apr 2021, 09:57
Hi,
You should iterate over your positions by using the Positions collection in OnTick method, not in OnPoisitionClosed event handler.
@amusleh