Possibility of filter trades by bars?
-
Hi,
We can filter trades by age but is it possible to filter trades by bars? That is, if trade was opened this bar only close next bar if criteria is met?
Thanks,
PG
-
Trade has "Open Time" parameter, candles also have Time parameter, which is some rounded number. But if you know the current timeframe and how long is one candle, you can ask for the trade age. If the period is 5 minutes, every trade that is not older than 5 minutes belongs to the current candle.