OPEN-SOURCE SCRIPT
FX Alex G Multi-TF Alignment & Engulfing Screener with Icons

This is FXAlexG inspired, 4 timeframes alignment:-
Add to TradingView:
Open TradingView (tradingview.com) and go to the Pine Editor (bottom panel).
Copy-paste the provided Pine Script code into the editor.
Click "Save" (name it, e.g., "FX Alex G Screener").
Click "Add to Chart" to apply it to a 15-minute (15M) chart.
Select Chart:
Use a 15M timeframe chart for any asset (crypto, forex, stocks, e.g., BTC/USD, EUR/USD).
Ensure the chart has sufficient historical data (at least 100 bars) for accurate swing detection.
Interpret Alignment Signals:
4TF Bull Align (4B): Green diamond above bar = all 4 timeframes (Daily, 4H, 1H, 15M) are bullish (close > EMA50), price near swing low, high volume.
4TF Bear Align (4S): Red diamond below bar = all 4 TFs bearish (close < EMA50), price near swing high, high volume.
3TF Bull Align (3B): Lime triangle above bar = 3 TFs bullish, near swing low, high volume.
3TF Bear Align (3S): Maroon triangle below bar = 3 TFs bearish, near swing high, high volume.
2TF Bull Align (2B): Yellow circle above bar = 2 TFs bullish, near swing low, high volume.
2TF Bear Align (2S): Orange circle below bar = 2 TFs bearish, near swing high, high volume.
Identify Entry Signals:
Bull Entry: Green triangle below bar = bullish engulfing candle at a swing low, at least 2 TFs bullish, price within 2% of swing low, high volume.
Bear Entry: Red triangle above bar = bearish engulfing candle at a swing high, at least 2 TFs bearish, price within 2% of swing high, high volume.
Use for Screening:
Manually apply to multiple assets on 15M charts to check for alignment/entry signals.
For automated screening, publish the script publicly (in Pine Editor, click "Publish Script"), then use TradingView’s Screener with custom script filters (select your published script).
Filter for assets showing "4B", "3B", "2B", "Bull Entry" (bullish) or "4S", "3S", "2S", "Bear Entry" (bearish).
Visual Aids:
Orange line: EMA(50) on 15M chart for trend context.
Blue dashed line: Recent swing low level.
Red dashed line: Recent swing high level.
Customize (Optional):
Adjust EMA length (default 50) or swing lookback (default 5 bars) in the script’s code.
Modify proximity threshold (default 2%) or volume multiplier (default 1.5x) by editing the script.
Trading Notes:
Use signals as a starting point; confirm with your own analysis (e.g., support/resistance, market structure).
Set stop-losses below swing lows (bullish) or above swing highs (bearish) as per FX Alex G’s risk management.
Test on historical data before live trading.
Troubleshooting:
No signals? Ensure the 15M chart is active and has enough data. Check if volume is low or price is far from swings.
Too many signals? Increase proximity threshold (e.g., from 2% to 1%) or swing lookback (e.g., from 5 to 7) in the code.
Add to TradingView:
Open TradingView (tradingview.com) and go to the Pine Editor (bottom panel).
Copy-paste the provided Pine Script code into the editor.
Click "Save" (name it, e.g., "FX Alex G Screener").
Click "Add to Chart" to apply it to a 15-minute (15M) chart.
Select Chart:
Use a 15M timeframe chart for any asset (crypto, forex, stocks, e.g., BTC/USD, EUR/USD).
Ensure the chart has sufficient historical data (at least 100 bars) for accurate swing detection.
Interpret Alignment Signals:
4TF Bull Align (4B): Green diamond above bar = all 4 timeframes (Daily, 4H, 1H, 15M) are bullish (close > EMA50), price near swing low, high volume.
4TF Bear Align (4S): Red diamond below bar = all 4 TFs bearish (close < EMA50), price near swing high, high volume.
3TF Bull Align (3B): Lime triangle above bar = 3 TFs bullish, near swing low, high volume.
3TF Bear Align (3S): Maroon triangle below bar = 3 TFs bearish, near swing high, high volume.
2TF Bull Align (2B): Yellow circle above bar = 2 TFs bullish, near swing low, high volume.
2TF Bear Align (2S): Orange circle below bar = 2 TFs bearish, near swing high, high volume.
Identify Entry Signals:
Bull Entry: Green triangle below bar = bullish engulfing candle at a swing low, at least 2 TFs bullish, price within 2% of swing low, high volume.
Bear Entry: Red triangle above bar = bearish engulfing candle at a swing high, at least 2 TFs bearish, price within 2% of swing high, high volume.
Use for Screening:
Manually apply to multiple assets on 15M charts to check for alignment/entry signals.
For automated screening, publish the script publicly (in Pine Editor, click "Publish Script"), then use TradingView’s Screener with custom script filters (select your published script).
Filter for assets showing "4B", "3B", "2B", "Bull Entry" (bullish) or "4S", "3S", "2S", "Bear Entry" (bearish).
Visual Aids:
Orange line: EMA(50) on 15M chart for trend context.
Blue dashed line: Recent swing low level.
Red dashed line: Recent swing high level.
Customize (Optional):
Adjust EMA length (default 50) or swing lookback (default 5 bars) in the script’s code.
Modify proximity threshold (default 2%) or volume multiplier (default 1.5x) by editing the script.
Trading Notes:
Use signals as a starting point; confirm with your own analysis (e.g., support/resistance, market structure).
Set stop-losses below swing lows (bullish) or above swing highs (bearish) as per FX Alex G’s risk management.
Test on historical data before live trading.
Troubleshooting:
No signals? Ensure the 15M chart is active and has enough data. Check if volume is low or price is far from swings.
Too many signals? Increase proximity threshold (e.g., from 2% to 1%) or swing lookback (e.g., from 5 to 7) in the code.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.