Intrabar spike
Intrabar spike is an alert that checks every 1 hour and fires at most once per bar.
inside the bar
alert "Intrabar spike"check: every 1hrepeat: once per bar closeinner = intrabar(bars: 1m)spike = inner.high.max() - inner.low.min()when inner.len > 0 and spike > atr(14) * 1.5:notify "Minute-level spike of {spike:0.00} inside the hour on {market.symbol}"Sample data. Not a result. The real AlgoBarsX engine ran this exact script on made-up bars, and this replays what it drew and did. It shows no profit or loss, and it says nothing about how the script would do in a real market.
Replay of this script on 150 sample bars: 10 alerts sent.
Intrabar spike is an alert that checks every 1 hour and fires at most once per bar.
It calculates inner as the bars inside this bar (bars 1 minute) and spike as inner.high.max() minus inner.low.min().
When the number of inner is above 0 and spike is above 1.5 × the 14-bar ATR, it sends the notification "Minute-level spike of {spike:0.00} inside the hour on {market.symbol}".