Pending order buttons for next candle open price
-
I created 2 buttons. One is for sell at next candle open price. Another one is for buying at next candle open price. It didn't work as I planned. Each click on either sell or buy created 2 pending orders. I don't know what I did wrong. Please, if anyone could help? Thank you.

-
Button details

-
@kk-6 I don't understand the logic behinfd that. Do you want to click on a button at any moment on the chart so that, regardless how much time is left, at the opening of a new bar a pending order is programmed? So can you click on the button ten seconds or three hours before a 4H candle is expected to be open and get the same result?