I would like to close a trade after a candle closes. For example:
If the current candle breaks the high of previous candle, the trade would enter long at the broken high, but when the candle that entered closes, the trade should close with profit/loss. Basically the trade should last 1 candle only. I only need to know how to make it close at the end of the current candle period.