I'm developing a strategy and I would like to know the code that I should use to buy or sell on candle close. Basically I will have buy button and when clicked on it order will execute on candle close only similarly if sell button clicked sell order will execute on candle close only.
thanks

Comment