PROTECTED SOURCE SCRIPT
AVAX Bot-Safe SuperTrend FastConfirm v1 (No Repaint for BOT)

BETA version - (still in testing)
AVAX Bot-Safe SuperTrend FastConfirm v1 is a TradingView indicator designed to generate stable, non-repainting trade signals for automated execution, while also offering optional visual “early” cues for discretionary monitoring. The script combines a SuperTrend trend engine with a FastConfirm mechanism based on lower-timeframe closes, plus optional confirmation via Hull Moving Averages (HMAs) and risk overlays (ATR-based SL/TP) for execution planning.
1) Core Trend Engine (SuperTrend)
The indicator computes a SuperTrend using ATR (Wilder ATR via ta.atr() by default, optional SMA-TR alternative).
It tracks a binary trend state:
* Trend = bullish when price is above the trailing bearish band.
* Trend = bearish when price is below the trailing bullish band.
“Early” SuperTrend flips (trend change points) can be shown as visual-only markers, intended for human observation rather than bot execution.
2) Hull Moving Averages (Context / Optional Confirmation)
* Two Hull MAs are calculated:
* Fast Hull (short length)
* Slow Hull (longer length)
* Hull alignment is used as an optional confirmation layer (recommended for AVAX) to reduce whipsaws:
* Bullish bias when Fast Hull > Slow Hull
* Bearish bias when Fast Hull < Slow Hull
* Hull lines can be plotted for trend structure and momentum context.
3) Momentum Burst (Visual Only)
* The script includes a momentum “burst / continuation” visual module:
* Measures impulse using either ATR-normalized movement (default) or percentage change.
* Flags continuation patterns (e.g., consecutive rising/falling closes after a burst).
* These markers are not used for bot execution, and are intended to assist human interpretation.
4) Optional Filters (Only Applied to BOT if Enabled)
The script contains optional execution filters that can be applied to bot signals (toggleable):
* Volume filter: compares current volume to a volume moving average.
* RSI filter: avoids entries in overstretched conditions.
* ADX filter: requires a minimum trend strength.
A dedicated switch (“BOT: apply Volume/RSI/ADX if enabled”) determines whether these filters impact automated entries.
5) Bot-Safe Signal Logic (No Repaint)
The indicator’s primary purpose is to produce bot-safe entries that do not “blink” intrabar:
A. Candidate trigger (stable bands + buffer)
* Uses previous bar SuperTrend levels and an ATR-based buffer to avoid micro-touch signals.
* Detects whether price action meaningfully penetrates the relevant band.
B. FastConfirm via lower timeframe closes
* Pulls lower-TF closes inside the current candle (e.g., 1m confirmations) and requires N consecutive closes beyond the threshold level.
* This is intended to reduce false flips while still entering earlier than pure bar-close logic.
C. Two execution modes
* FastConfirm: faster entries, confirmation from lower timeframe closes (recommended for latency-sensitive automation).
* BarClose: waits for bar close confirmation (slowest but maximally conservative).
D. Latching + cooldown
* Signals are latched per bar so they do not disappear within the same candle.
* A direction lock and cooldown prevents immediate opposite signals in rapid chop.
6) Risk Levels (ATR-Based SL/TP + JSON Payload)
* On each bot signal, the indicator calculates:
* Stop Loss = ATR-multiple away from price
* Take Profit = based on a configurable risk:reward ratio
* SL/TP lines can be plotted for a limited number of bars after the signal for clarity.
* For automation, the script can send dynamic JSON alerts via alert() including:
* action (BUY/SELL), symbol, timeframe, confirmation TF, suggested entry, SL, TP, and latency cushion.
A configurable latency cushion (%) adjusts the “entry” field to account for real execution delay/slippage (useful when routing signals to bots/exchanges with a few seconds latency).
Recommended Usage (TradingView + Bot Execution)
Best practice for bot safety
* Use Bot Signal Mode = FastConfirm for earlier entries while keeping confirmations.
* Keep FastConfirm TF = 1m and start with Confirm Bars = 2 (then tune to 3 if too many false signals).
* Maintain a modest ATR buffer (e.g., 0.10–0.20 × ATR[1]) to reduce noise triggers.
How to set alerts
* For bot routing that expects structured data: enable Send JSON via alert(), and create the TradingView alert using:
* “Any alert() function call”
* For simpler setups: use the built-in alertcondition() alerts (“AVAX BOT BUY/SELL”).
Filter policy (risk control)
* If you trade during choppy ranges, consider enabling ADX and/or Hull alignment.
* Enable Volume/RSI/ADX filters for the bot only if you accept fewer trades in exchange for higher selectivity.
Operational notes
* Prefer lower chart timeframes (e.g., 1m–5m) with FastConfirm to limit reaction time.
* Calibrate latency cushion (%) to match your observed end-to-end delay (TradingView → webhook → bot → exchange).
* Always validate settings in BarClose mode first to benchmark “safest behaviour,” then switch to FastConfirm and tune confirm bars/buffer.
!!!! - The algorithm was designed with ChatGPT 5.2 Pro
AVAX Bot-Safe SuperTrend FastConfirm v1 is a TradingView indicator designed to generate stable, non-repainting trade signals for automated execution, while also offering optional visual “early” cues for discretionary monitoring. The script combines a SuperTrend trend engine with a FastConfirm mechanism based on lower-timeframe closes, plus optional confirmation via Hull Moving Averages (HMAs) and risk overlays (ATR-based SL/TP) for execution planning.
1) Core Trend Engine (SuperTrend)
The indicator computes a SuperTrend using ATR (Wilder ATR via ta.atr() by default, optional SMA-TR alternative).
It tracks a binary trend state:
* Trend = bullish when price is above the trailing bearish band.
* Trend = bearish when price is below the trailing bullish band.
“Early” SuperTrend flips (trend change points) can be shown as visual-only markers, intended for human observation rather than bot execution.
2) Hull Moving Averages (Context / Optional Confirmation)
* Two Hull MAs are calculated:
* Fast Hull (short length)
* Slow Hull (longer length)
* Hull alignment is used as an optional confirmation layer (recommended for AVAX) to reduce whipsaws:
* Bullish bias when Fast Hull > Slow Hull
* Bearish bias when Fast Hull < Slow Hull
* Hull lines can be plotted for trend structure and momentum context.
3) Momentum Burst (Visual Only)
* The script includes a momentum “burst / continuation” visual module:
* Measures impulse using either ATR-normalized movement (default) or percentage change.
* Flags continuation patterns (e.g., consecutive rising/falling closes after a burst).
* These markers are not used for bot execution, and are intended to assist human interpretation.
4) Optional Filters (Only Applied to BOT if Enabled)
The script contains optional execution filters that can be applied to bot signals (toggleable):
* Volume filter: compares current volume to a volume moving average.
* RSI filter: avoids entries in overstretched conditions.
* ADX filter: requires a minimum trend strength.
A dedicated switch (“BOT: apply Volume/RSI/ADX if enabled”) determines whether these filters impact automated entries.
5) Bot-Safe Signal Logic (No Repaint)
The indicator’s primary purpose is to produce bot-safe entries that do not “blink” intrabar:
A. Candidate trigger (stable bands + buffer)
* Uses previous bar SuperTrend levels and an ATR-based buffer to avoid micro-touch signals.
* Detects whether price action meaningfully penetrates the relevant band.
B. FastConfirm via lower timeframe closes
* Pulls lower-TF closes inside the current candle (e.g., 1m confirmations) and requires N consecutive closes beyond the threshold level.
* This is intended to reduce false flips while still entering earlier than pure bar-close logic.
C. Two execution modes
* FastConfirm: faster entries, confirmation from lower timeframe closes (recommended for latency-sensitive automation).
* BarClose: waits for bar close confirmation (slowest but maximally conservative).
D. Latching + cooldown
* Signals are latched per bar so they do not disappear within the same candle.
* A direction lock and cooldown prevents immediate opposite signals in rapid chop.
6) Risk Levels (ATR-Based SL/TP + JSON Payload)
* On each bot signal, the indicator calculates:
* Stop Loss = ATR-multiple away from price
* Take Profit = based on a configurable risk:reward ratio
* SL/TP lines can be plotted for a limited number of bars after the signal for clarity.
* For automation, the script can send dynamic JSON alerts via alert() including:
* action (BUY/SELL), symbol, timeframe, confirmation TF, suggested entry, SL, TP, and latency cushion.
A configurable latency cushion (%) adjusts the “entry” field to account for real execution delay/slippage (useful when routing signals to bots/exchanges with a few seconds latency).
Recommended Usage (TradingView + Bot Execution)
Best practice for bot safety
* Use Bot Signal Mode = FastConfirm for earlier entries while keeping confirmations.
* Keep FastConfirm TF = 1m and start with Confirm Bars = 2 (then tune to 3 if too many false signals).
* Maintain a modest ATR buffer (e.g., 0.10–0.20 × ATR[1]) to reduce noise triggers.
How to set alerts
* For bot routing that expects structured data: enable Send JSON via alert(), and create the TradingView alert using:
* “Any alert() function call”
* For simpler setups: use the built-in alertcondition() alerts (“AVAX BOT BUY/SELL”).
Filter policy (risk control)
* If you trade during choppy ranges, consider enabling ADX and/or Hull alignment.
* Enable Volume/RSI/ADX filters for the bot only if you accept fewer trades in exchange for higher selectivity.
Operational notes
* Prefer lower chart timeframes (e.g., 1m–5m) with FastConfirm to limit reaction time.
* Calibrate latency cushion (%) to match your observed end-to-end delay (TradingView → webhook → bot → exchange).
* Always validate settings in BarClose mode first to benchmark “safest behaviour,” then switch to FastConfirm and tune confirm bars/buffer.
!!!! - The algorithm was designed with ChatGPT 5.2 Pro
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.