How to check the trading hours of the latest closed order?
-
For example: there are already completed orders in history, I need to know the transaction time of the most recent buy order, but from new to old orders, there may be multiple sell orders in succession. I need to skip these sell orders to find the last buy order.
How do I do this? From my new record to my old order, I have the following orders: 1. Sell order, 2. Sell order, 3. Sell order, 4. Sell order, 5. Sell order, ... 6. Buy order. 7. Buy order. I need to know the trading time of the 6th buy order -
You can use this loop configuration for your closed trades:

You can also filter there if you are looking for bouys or sells only. Don't forget to insert that number '1' on the bottom. That is the way for the block to look for the last closed trade and ignore all the previous ones.
-
Thank you very much i understand