"Once Per Bar" Block Does Not Activate During a Trade
-
Hi,
I have an "Once Per Bar" block that is working, once every bar, except when there is an active trade, it stops working for each candle that occurs while the trade is live. As soon as the trade closes the "Once Per Bar" block activates again.
I have the "Once Per Bar" block connected to an hours filter and nothing else.
Anyone know why this is happening?
Thanks
-
This doesn't happen to me, share your project link so block set up can be looked at
-
@jstap Sorry for the delay. Here is an example of what I am trying to do and it stops counting with the pass once the trade is put on. I looked into it further and it seems it is not the once per bar that is the problem, as it stops the count even without the once per bar on.
https://fxdreema.com/shared/JZ4099bP
I am just trying to count CID from a previous candle so I can use that candle later in the future. I dont know of any other way to keep CID from a past candle.
Thanks for the help
-
@lemans455
You have no position at the top. That may explain -
Separate your trees so the hours filter starts the tree:

-
@jstap I did this and when the buy is put on it still stops counting during the trade and resumes once the trade is closed.
Any idea on how to overcome that problem? I have tried a bunch of different combos and I can not get the count to keep counting bars during any trades.
-

change pass block with formula or modify block
-
@Byens Thanks for the suggestion but that stops counting as soon as the trade is put on and it does not count again until the trade is closed.
There has to be a way to get the blocks to function once a trade is on. I do not get it, but its not working.
-
@sktsec Thanks!!! I think this is the problem, since this turns false once a trade is on, I moved this out and it seems to be counting now!!
-
@lemans455
You are welcome