OPEN-SOURCE SCRIPT
GBPUSD Weekly Cross Lines

This indicator tracks 20/50 EMA crossovers on GBPUSD (Weekly timeframe) and displays the crossover points across all symbols and timeframes, allowing traders to visually align current price action with key historical turning points in GBPUSD.
The script works by detecting bullish (20 EMA crossing above 50 EMA) and bearish (20 EMA crossing below 50 EMA) signals since 2010, using request.security() to source data from GBPUSD weekly candles, even if the indicator is applied to AAPL, EURJPY, BTCUSD, or any other asset.
Each crossover is marked with a vertical line that persists across all charts, offering a powerful way to:
Compare current market context with GBPUSD’s historical trend shifts
Observe intermarket correlations
Align trading timing across multiple assets
Spot macro trend transitions that ripple across global markets
The script works by detecting bullish (20 EMA crossing above 50 EMA) and bearish (20 EMA crossing below 50 EMA) signals since 2010, using request.security() to source data from GBPUSD weekly candles, even if the indicator is applied to AAPL, EURJPY, BTCUSD, or any other asset.
Each crossover is marked with a vertical line that persists across all charts, offering a powerful way to:
Compare current market context with GBPUSD’s historical trend shifts
Observe intermarket correlations
Align trading timing across multiple assets
Spot macro trend transitions that ripple across global markets
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.