This is a One Candle Expiry logic.
created with 1 minute candle stick in mind
Use Martingale Strategy to get Good result
Buy => Once you see green arrow you can buy in end of current candle.
Sell => Once you see red arrow you can sell in end of current candle .
After Getting signal very next candle will be result candle where you will see the trade result.
Happy Trading ......
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.