how check "pips away from open-price" of various trades, or group of trades, not only the last trade
-
I want to open an operation if the price is far from the "open price" of several open operations.
i have tried everything
please help -
Do you mean a distance based on the avarage proce of all your current open trades?
-
No, a distance from the "open price" of each open operation.
If the current price is near the level or "open price" of any of the operations that are open, I don't want to execute an order.
So I need to check the open level or "open price" of all open trades. -
And homw many open trades can be active simultaneously?
-
@l-andorrà said in how check "pips away from open-price" of various trades, or group of trades, not only the last trade:
And homw many open trades can be active simultaneously?
It depends.
Perhaps one of the ways would be to reflect the price level when a trade is opened in a variable, and then compare the current price with that data.
But I would like to know if with some block, for example, "for each trade" or "check group number" can be done to make it simpler and shorter, I have tried with those blocks but it doesn't work. -
A 'For each trade' block should do the job. It's a llop block. It can search for all open trades right now (not only the last one) an apply any condition block connected to it. Can you please share your project?