OPEN-SOURCE SCRIPT
A+ Setup Strategy

Trendline Features Added:
1. Automatic Trendline Detection
Support Trendline (green) - Connects swing lows
Resistance Trendline (red) - Connects swing highs
Uses pivot points to identify key swing levels
Validates trendlines by counting touches (minimum 3 touches required)
2. Trendline Settings
Show Trendlines - Toggle on/off
Lookback Period - How far back to look for pivots (default: 50 bars)
Min Touches - How many touches needed for valid trendline (default: 3)
3. Trendline Break Detection
Bullish Break - Price breaks above support trendline (marked with small green circle)
Bearish Break - Price breaks below resistance trendline (marked with small red circle)
Generates signals when breaks occur
4. Enhanced A+ Setups
Now includes ULTRA setups - the absolute best trades:
ULTRA BUY Setup (Aqua label):
Bullish FVG + BOS + Volume Spike + Uptrend
PLUS: Support trendline break OR near key support
PLUS: Trendline breakout confirmation
ULTRA SELL Setup (Fuchsia label):
Bearish FVG + BOS + Volume Spike + Downtrend
PLUS: Resistance trendline break OR near key resistance
PLUS: Trendline breakdown confirmation
5. Confluence Integration
The strategy now considers price near trendlines as additional confluence, similar to how it uses daily S/R levels.
6. Additional Alerts
Support Trendline Break
Resistance Trendline Break
ULTRA BUY/SELL Setup alerts
This gives you multiple tiers of signal quality:
Standard A+ Setup - All conditions met
ULTRA A+ Setup - All conditions + trendline break (highest probability)
The trendlines will help you identify major trend reversals and breakouts for even better entry timing!
1. Automatic Trendline Detection
Support Trendline (green) - Connects swing lows
Resistance Trendline (red) - Connects swing highs
Uses pivot points to identify key swing levels
Validates trendlines by counting touches (minimum 3 touches required)
2. Trendline Settings
Show Trendlines - Toggle on/off
Lookback Period - How far back to look for pivots (default: 50 bars)
Min Touches - How many touches needed for valid trendline (default: 3)
3. Trendline Break Detection
Bullish Break - Price breaks above support trendline (marked with small green circle)
Bearish Break - Price breaks below resistance trendline (marked with small red circle)
Generates signals when breaks occur
4. Enhanced A+ Setups
Now includes ULTRA setups - the absolute best trades:
ULTRA BUY Setup (Aqua label):
Bullish FVG + BOS + Volume Spike + Uptrend
PLUS: Support trendline break OR near key support
PLUS: Trendline breakout confirmation
ULTRA SELL Setup (Fuchsia label):
Bearish FVG + BOS + Volume Spike + Downtrend
PLUS: Resistance trendline break OR near key resistance
PLUS: Trendline breakdown confirmation
5. Confluence Integration
The strategy now considers price near trendlines as additional confluence, similar to how it uses daily S/R levels.
6. Additional Alerts
Support Trendline Break
Resistance Trendline Break
ULTRA BUY/SELL Setup alerts
This gives you multiple tiers of signal quality:
Standard A+ Setup - All conditions met
ULTRA A+ Setup - All conditions + trendline break (highest probability)
The trendlines will help you identify major trend reversals and breakouts for even better entry timing!
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.