Hello guys. I need a block that the bot considers the color of the last candle CLOSED, to make a call or put. I created a block with function below but the bot considers the current candle as closed. Can someone help me? Thank you all.



Hello Fruitfella, thank you for your time and dedication. I put the function I have here but it did not work. As soon as I play on the bot he considers the current candle as closed. I would like the bot to analyze the previous candle and open the order to the same direction as the candle previously closed. Sorry if I was not very clear. My English is not very good. Thank you.
you put that Purchase Rise in the wrong place!

My bot's name is GodFruit. Its working now.
Tks fella.