3 Feb 2023, 15:01

The Block No Trade Nearby sometimes doesn't find trades that might actually exist nearby....
0_1675435943723_c26eec23-b562-49fa-a206-3037f2d91d4c-image.png

The reason why is that when the block is set to not use any time filters, in the source code, it is still using a time filter for the time (Time Now)... and then, sometimes, the tick data takes some time to be updated... and that causes a newly open position to have it's open time happening after the current server time that comes from the broker's data feed...

The result is the block doesn't identify the trades nearby...

The workaround is to actually use the time filters and filter for only trades that are open "1 day ahead of current time" ...

I hope this helps...
Here is how the block should look if the developer DOESN't want to use time filters... (Applying only range filters...)
0_1675436219598_c689b54f-2e4c-4194-bb70-6501fd938416-image.png