which is the most optimal to place the block: once per bar?
-

-
@luisjunior1224 From programmatically view the aim is to let conditions check be done only if it's required as they consume CPU power and maybe other resources.
Hence placing the filter in the logic of how to reduce the cycles you put in the reight order in the screenshot.
- Hours filter filters out 1 to 23 hours a day depending on what you speciefied in it. Perfect! That will reduce the cycles to the allowed times.
- No trade - Filters only for times that there is no trade happening
- Once per bar. Absolutely right place here.
Hence 1 in your screenshot is the right place from my opinion. However, there might be times where your business logic will require more cycle runs than you'd like from the programmatically view. But in the given exampke everything appears to be right.
-
@trader-philipps thanks