Open trade if last n candles don't have any trades
-
Hello,
I've recently registered and still am a newbie.. I have tried searching for the answer to this question, but I wasn't able to find it..
I would like to know how to set up the project so it looks at the "last x number of candles" and only proceed if the candles don't have any trades.
Please help, thank you!
-
Get the time of the x candle and then compare it with the last closed trade
-
@sktsec Okay... so how do I do that?

-
Here is a shared copy of my project
Basically I want everything to be the same but it needs to check the last few candles and see there were no trades closed...
Basically, I tried to find a solution but it's not working...
-
Try this:
