CE - 42MACRO Fixed Income and Macro This is Part 2 of 2 from the 42MACRO Recreation Series
However, there will be a bonus Indicator coming soon!
The CE - 42MACRO Fixed Income and Macro Table is a next level Macroeconomic and market analysis indicator.
It aims to provide a probabilistic insight into the market realized GRID Macro regimes,
track a multiplex of important Assets, Indices, Bonds and ETF's to derive extra market insights by showing the most important aggregates and their performance over multiple timeframes... and what that might mean for the whole market direction.
For traders and especially investors, the unique functionalities will be of high value.
Quick guide on how to use it:
docs.google.com
WARNING
By the nature of the macro regimes, the outcomes are more accurate over longer Chart Timeframes (Week to Months).
However, it is also a valuable tool to form an advanced,
market realized, short to medium term bias.
NOTE
This Indicator is intended to be used alongside the 1nd part "CE - 42MACRO Equity Factor"
for a more wholistic approach and higher accuracy.
Methodology:
The Equity Factor Table tracks specifically chosen Assets to identify their performance and add the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below Assets:
Convertibles ( AMEX:CWB )
Leveraged Loans ( AMEX:BKLN )
High Yield Credit ( AMEX:HYG )
Preferreds ( NASDAQ:PFF )
Emerging Market US$ Bonds ( NASDAQ:EMB )
Long Bond ( NASDAQ:TLT )
5-10yr Treasurys ( NASDAQ:IEF )
5-10yr TIPS ( AMEX:TIP )
0-5yr TIPS ( AMEX:STIP )
EM Local Currency Bonds ( AMEX:EMLC )
BDCs ( AMEX:BIZD )
Barclays Agg ( AMEX:AGG )
Investment Grade Credit ( AMEX:LQD )
MBS ( NASDAQ:MBB )
1-3yr Treasurys ( NASDAQ:SHY )
Bitcoin ( AMEX:BITO )
Industrial Metals ( AMEX:DBB )
Commodities ( AMEX:DBC )
Gold ( AMEX:GLD )
Equity Volatility ( AMEX:VIXM )
Interest Rate Volatility ( AMEX:PFIX )
Energy ( AMEX:USO )
Precious Metals ( AMEX:DBP )
Agriculture ( AMEX:DBA )
US Dollar ( AMEX:UUP )
Inverse US Dollar ( AMEX:UDN )
Functionalities:
Fixed Income and Macro Table
Shows relative market Asset performance
Comes with different Calculation options like RoC,
Sharpe ratio, Sortino ratio, Omega ratio and Normalization
Allows for advanced market (health) performance
Provides the calculated, realized GRID market regimes
Informs about "Risk ON" and "Risk OFF" market states
Visuals - for your best experience only use one (+ BarColoring) at a time:
You can visualize all important metrics:
- GRID regimes of the currently chosen calculation type
- Risk On/Risk Off with background colouring and additional +1/-1 values
- a smoother GRID model
- a smoother Risk On/ Risk Off metric
- Barcoloring for enabled metric of the above
If you have more suggestions, please write me
Fixed Income and Macro:
The visualisation of the relative performance of the different assets provides valuable information about the current market environment and the actual market performance.
It furthermore makes it possible to obtain a deeper understanding of how the interconnected market works and makes it simple to identify the actual market direction,
thus also providing all the information to derive overall market health, market strength or weakness.
Utility:
The Fixed Income and Macro Table is divided in 4 Columns which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Fixed Income/ Macro Factors:
Are the values green for a specific Column?
If so then the market reflects the corresponding GRID behavior.
Bottom 5 Fixed Income/ Macro Factors:
Are the values red for a specific Column?
If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
******
This Indicator again is based to a majority on 42MACRO's models.
I only brought them into TV and added things on top of it.
If you have questions or need a more in-depth guide DM me.
GM
Cerca negli script per "场内etf交易规则"
RSI - S&P Sector ETFsThe script displays RSI of each S&P SPDR Sector ETF
XLB - Materials
XLC - Communications
XLE - Energy
XLF - Financials
XLI - Industrials
XLK - Technology
XLP - Consumer Staples
XLRE - Real Estate
XLU - Utilities
XLV - Healthcare
XLY - Consumer Discretionary
It is meant to identify changes in sector rotation, compare oversold/overbought signals of each sector, and/or any price momentum trading strategy applicable to a trader.
InfoPanel - SeasonalityThis panel will show which is the best month to buy a stock, index or ETF or even a cryptocurrency in the past 5 years.
Script to use only with MONTHLY timeframe.
Thanks to: RicardoSantos for his hard work.
Please use comment section for any feedback.
Key LevelsKey levels marked out for the day.
Week, 4 hour, 1 hour, PM, and OR levels marked out for each session.
EMA Cloud + AlertsThe only EMA indicator you'll ever need.
- Flexible EMAs: Customize EMA lengths (e.g., 9, 21) to match your trading style.
- Dynamic Cloud: Auto-shades bullish (green) or bearish (red) clouds between EMAs for clear trend signals.
- Trend Change Alerts: Auto-alerts that signal when a trend change (EMA crossover) happens on the timeframe you're currently viewing.
- Timeframe Lock: Lock EMAs to a specific timeframe (e.g., 5m on a 1m chart) for consistent analysis.
- Personalized Design: Adjust EMA colors, thickness, and cloud transparency for optimal visibility.
A friendly reminder that no tool or indicator guarantees success. Integrate this into a robust trading plan.
Trend Candles Full ColorThe coloring over the candle sticks isn't showing up on the picture for some reason but when you click on the indicator the color coding will appear on the chart.
Trend Candles Full Color Indicator Explanation The "Trend Candles Full Color" indicator, designed for TradingView, visually enhances candlestick charts by coloring candles based on their position relative to a simple moving average (SMA). Here's how it works and how it can benefit traders: How It Works Input : Adjust the SMA period (default is 20) to define the trend length.
Logic : The indicator compares the closing price of each candle to the SMA: Green Candle : Close is above the SMA (indicating an uptrend).
Red Candle : Close is below the SMA (indicating a downtrend).
Gray Candle : Close equals the SMA (neutral/no clear trend).
Output : Candles (body, wick, and border) are colored green, red, or gray based on the trend, overlaid directly on your price chart.
Benefits and Use Cases Trend-Following Strategies Benefit: Clearly identifies bullish (green) or bearish (red) trends, helping traders ride momentum.
Example: A swing trader using a 20-period SMA can enter long positions when candles turn green (price above SMA) and exit or short when candles turn red, confirming trend reversals.
Reversal Trading Benefit: Gray candles signal indecision near the SMA, often a precursor to reversals.
Example: A day trader might watch for gray candles after a prolonged uptrend (green candles) to anticipate a potential bearish reversal, combining with other indicators like RSI for confirmation.
Scalping Benefit: Quick visual cues for short-term trend changes on lower timeframes.
Example: A scalper on a 5-minute chart can use green candles to confirm quick bullish moves and red candles to avoid counter-trend trades, enhancing decision speed.
Position Sizing or Risk Management Benefit: Color changes highlight trend strength, aiding in adjusting trade size or stops.
Example: A trader might increase position size during strong green candle sequences (sustained uptrend) and tighten stops when gray candles appear, signaling potential trend weakness.
Tips for Use Adjust the MA Length to suit your trading style (e.g., shorter for scalping, longer for swing trading).
Combine with other indicators (e.g., support/resistance, MACD) for better accuracy.
Test on different timeframes to match your strategy.
Recommended MA Length for 1-Minute Charts Short-Term/Scalping (1-5 minute trades):10-period SMA : Very sensitive, ideal for capturing quick price movements in fast markets. May produce more noise (false signals).
20-period SMA : A balanced choice for 1-minute charts, smoothing minor fluctuations while reacting to short-term trends. A great starting point for scalpers.
Intraday Trend Trading (10-30 minute holds):50-period SMA : Captures broader intraday trends, reducing noise but lagging slightly. Suitable for larger moves within a session.
This indicator simplifies trend identification, making it a versatile tool for traders of all styles, from beginners to advanced users!
Recommended MA Length for Swing Trading / Higher Timeframes Swing Trading (holding trades for days to weeks):50-period SMA : A popular choice for swing traders on higher timeframes (e.g., 1-hour or 4-hour charts). It smooths out short-term fluctuations while identifying medium-term trends. Ideal for capturing multi-day swings.
100-period SMA : Slightly longer, this MA is great for confirming stronger, more sustained trends. It’s useful on 4-hour or daily charts for swing traders aiming to ride larger price moves.
Longer-Term Trend Trading (holding for weeks to months):200-period SMA : A classic choice for higher timeframes like daily or weekly charts. It highlights major market trends and is widely used by swing and position traders to filter out noise and focus on long-term direction.
150-period SMA : A middle ground between the 100 and 200 SMA, suitable for daily charts when you want a balance between responsiveness and trend reliability.
Glork-SMA20D
50D
200D
200W
50W
Works on all time frames. Prints to the current candle
Colors are adjustable
Stop point MMAAn indicator that determines an important stopping area by overcoming the blue candle. The overriding party is determined by buyers or sellers, as it must be confirmed by two candles closing below
ADR Color CodedAbove 1 is green, below 1 is red.
Color coded to provide better visibilty when identifying divergences with volume and price
Renko Entry Alerts Limit +0.08Simple renko 1 block reversal strategy Adds +0.08 to 1 block during pre a=market and after hours for more successful fills.
Signal vs. Noise Have been working on this to get a better feel for market conditions. Am generally a pretty shit trader so just wanted to give this a go. Any feedback is appreciated.
Portfolio Strategy TesterThe Portfolio Strategy Tester is an institutional-grade backtesting framework that evaluates the performance of trend-following strategies on multi-asset portfolios. It enables users to construct custom portfolios of up to 30 assets and apply moving average crossover strategies across individual holdings. The model features a clear, color-coded table that provides a side-by-side comparison between the buy-and-hold portfolio and the portfolio using the risk management strategy, offering a comprehensive assessment of both approaches relative to the benchmark.
Portfolios are constructed by entering each ticker symbol in the menu, assigning its respective weight, and reviewing the total sum of individual weights displayed at the top left of the table. For strategy selection, users can choose between Exponential Moving Average (EMA), Simple Moving Average (SMA), Wilder’s Moving Average (RMA), Weighted Moving Average (WMA), Moving Average Convergence Divergence (MACD), and Volume-Weighted Moving Average (VWMA). Moving average lengths are defined in the menu and apply only to strategy-enabled assets.
To accurately replicate real-world portfolio conditions, users can choose between daily, weekly, monthly, or quarterly rebalancing frequencies and decide whether cash is held or redistributed. Daily rebalancing maintains constant portfolio weights, while longer intervals allow natural drift. When cash positions are not allowed, capital from bearish assets is automatically redistributed proportionally among bullish assets, ensuring the portfolio remains fully invested at all times. The table displays a comprehensive set of widely used institutional-grade performance metrics:
CAGR = Compounded annual growth rate of returns.
Volatility = Annualized standard deviation of returns.
Sharpe = CAGR per unit of annualized standard deviation.
Sortino = CAGR per unit of annualized downside deviation.
Calmar = CAGR relative to maximum drawdown.
Max DD = Largest peak-to-trough decline in value.
Beta (β) = Sensitivity of returns relative to benchmark returns.
Alpha (α) = Excess annualized risk-adjusted returns relative to benchmark.
Upside = Ratio of average return to benchmark return on up days.
Downside = Ratio of average return to benchmark return on down days.
Tracking = Annualized standard deviation of returns versus benchmark.
Turnover = Average sum of absolute changes in weights per year.
Cumulative returns are displayed on each label as the total percentage gain from the selected start date, with green indicating positive returns and red indicating negative returns. In the table, baseline metrics serve as the benchmark reference and are always gray. For portfolio metrics, green indicates outperformance relative to the baseline, while red indicates underperformance relative to the baseline. For strategy metrics, green indicates outperformance relative to both the baseline and the portfolio, red indicates underperformance relative to both, and gray indicates underperformance relative to either the baseline or portfolio. Metrics such as Volatility, Tracking Error, and Turnover ratio are always displayed in gray as they serve as descriptive measures.
In summary, the Portfolio Strategy Tester is a comprehensive backtesting tool designed to help investors evaluate different trend-following strategies on custom portfolios. It enables real-world simulation of both active and passive investment approaches and provides a full set of standard institutional-grade performance metrics to support data-driven comparisons. While results are based on historical performance, the model serves as a powerful portfolio management and research framework for developing, validating, and refining systematic investment strategies.
Market Sentiment Suite: PCCE + VIX + Signals📊 Market Sentiment Suite: PCCE + VIX + Signals
Identify fear, greed, and turning points in the market.
This script combines the CBOE Put/Call Ratio (PCCE) with the VIX volatility index percentile to visualize crowd sentiment and highlight potential market tops and bottoms.
🔍 Key Features
Dual-indicator design: PCCE + normalized VIX percentile
Color-coded zones for Greed (<0.6) and Fear (>1.2)
Automatic alert signals when sentiment reaches extremes
Live sentiment table displaying real-time PCCE and VIX data
Works seamlessly on SPX, SPY, QQQ, or any major index
🧠 How to Use
When PCCE > 1.2 and VIX percentile > 80%, fear is extreme → possible market bottom
When PCCE < 0.6 and VIX percentile < 20%, greed is extreme → possible market top
Perfect for contrarian traders, sentiment analysts, and swing traders
✨ Best Timeframe: Daily
⚙️ Markets: SPX / SPY / QQQ / Global Indexes
📈 Type: Contrarian Sentiment Indicator
Tristan's Devil Mark (Short / Long, with W%R)The Devil’s Mark indicator is a visual tool designed to help traders identify potential short and long opportunities based on candle structure and market momentum. It combines price action analysis with the Williams %R (W%R) oscillator to highlight candles with high potential for reversal or continuation.
Can be used on any timeline, from scalping day trades to swing trades on daily and higher timelines. Know that the higher the timeline the less likely the indicator will show. (Asia and London sessions tend to show many indicators. I find this more useful for NY session.)
How the script works
Candle Structure Conditions
Short (Sell) Wedge: Plotted above green candles that have no bottom wick, indicating that inside that candle there was strong upward momentum without downside hesitation .
Long (Buy) Wedge: Plotted below red candles that have no top wick, indicating that inside that candle there was strong downward momentum without upside hesitation .
These candles are visually emphasized as wedges to mark potential turning points.
Williams %R Filter
The indicator uses Williams %R to measure overbought and oversold conditions:
Proximity to 0 (nearZeroThresh): Determines how close W%R must be to 0 (overbought) to trigger a Sell Wedge. This acts as a “Sell sensitivity” filter.
Proximity to -100 (nearHundredThresh): Determines how close W%R must be to -100 (oversold) to trigger a Buy Wedge. This acts as a “Buy sensitivity” filter.
When the candle meets both the candle structure and the W%R condition, the wedge is plotted in purple (“Within W%R Range”).
When the "ignore W%R filter" toggle is on, all eligible candles are plotted regardless of W%R. Wedges that normally would not meet W%R criteria are plotted in light purple (“Outside W%R Range”) to distinguish them. #YOLO (🚫 I recommend leaving "Ignore W%R Filter" OFF)
Settings Explained
Williams %R Length: The number of bars used to calculate the W%R oscillator. Shorter lengths make it more sensitive; longer lengths smooth the readings.
Proximity to 0 / 100: Controls how “strict” the indicator is in requiring overbought or oversold W%R conditions to trigger. Lower values mean closer to extreme zones, higher values are more permissive.
Ignore W%R Toggle: Option to show Devil’s Marks on every eligible candle regardless of W%R. Useful for visualizing purely price-action-based signals.
What the trader sees
Purple wedges: Candles meeting both candle structure and W%R conditions.
Light purple wedges: Candles meeting candle structure but ignored W%R (when toggle is on). #YOLO (🚫 I recommend leaving "Ignore W%R Filter" OFF)
Short opportunities are wedges above bars (green candles with no bottom wick).
Long opportunities are wedges below bars (red candles with no top wick).
Trading Insight
The Devil’s Mark is a momentum and reversal alert tool:
Look for purple downward-pointing wedges when W%R is near overbought. This is a potential shorting opportunity. Buying at the close of that candle may improve your short trades.
Look for purple upward-pointing wedges when W%R is near oversold. This is a potential
long opportunity. Buying at the close of that candle may improve your long trades.
Light purple wedges show the same price-action cues without W%R confirmation—useful for aggressive traders who want every potential setup. #YOLO #YMMV #noFullPort
Settings / Security
The “Output values” checkbox appears for each plotted series (like a plot or plotshape) and controls whether the series will also be exposed numerically in the Data Window or used by other indicators/scripts.
Here’s what it means in practice:
1. Checked (true)
The series values (like candle high, low, or any computed value) are exported to the Data Window and can be read by other scripts using request.security() or ta functions.
Example: You can see the exact numerical value of each plotted point in the Data Window when you hover over the chart.
Useful if you want to backtest or reference these plotted values programmatically.
2. Unchecked (false)
The series is plotted visually only.
The numeric values are hidden from the Data Window and cannot be accessed by other scripts.
Makes the chart cleaner if you don’t need the numeric outputs.
Simple Keltner ChannelsThis script is just a fun little project I decided to do. It serves as a way for me to practice my coding and was not made with the intent of making money.
Whales buy & sell🐋 Whales on Wall Street — Buy & Sell Signal Indicator
The Whales on Wall Street Signal Indicator is a precision-built trading tool designed to simplify your decision-making and give you real-time clarity in the market.
It automatically identifies high-probability reversal zones, momentum shifts, and trend confirmations — marking exact Buy (green) and Sell (red) signals based on price action, volume confirmation, and momentum strength.
Built for day traders and scalpers, this indicator eliminates the guesswork by combining multiple technical confluences such as:
EMA & RSI alignment for trend direction
Smart volume spikes for institutional activity
Volatility filters to reduce false signals
Dynamic alerts for entries and exits in real time
Whether you’re trading SPY, QQQ, NVDA, or Tesla, this indicator adapts to any ticker and timeframe — giving you crystal-clear entries, cleaner exits, and the confidence to trade like a whale.
Tristan's Devil Mark (Short)"Devil's Mark" in trading refers to a specific candlestick pattern where a candle opens and moves significantly in one direction without creating a wick on that side. This creates an "inefficiency" in the market, and traders use this as a signal that price will likely return to that level to "rebalance" the imbalance and print the missing wick.
This strategy marks every green candle with no bottom wick using a purple downward wedge above the candle. This is highlighting a candle where buyers dominated from the open, but creating inefficiency below.
The purple wedge marks candles that opened at their lowest point and closed higher.
These candles indicate buyer dominance from the start of the period. In downtrends, a green candle with no bottom wick may indicate a potential short-term reversal.
Wait for the candle to close, and short it. Wait for the price to go below the bottom of the body of the marked candle.
Combine with Trend Analysis
Look for these candles in uptrends to confirm continuation momentum.
In downtrends, a green candle with no bottom wick may indicate a potential short-term reversal.
Support/Resistance Filters
Use horizontal support/resistance levels or moving averages to filter trades.
A green no-wick candle bouncing off support is a stronger bullish signal.
Timeframe Consideration
Works on any timeframe; adjust your strategy accordingly.
For intraday scalping, use 1–15 minute charts; for swing trades, use daily or 4-hour charts.
Backtesting and Pattern Recognition
Since the indicator works on historical bars, review past setups to identify patterns where this candle type reliably predicts price movement.
SMA乖離率This script plots the percentage distance between the current price and a Simple Moving Average (SMA) as a line in a separate sub-window (not on the main chart).
It helps you see whether price is over-extended (overbought/oversold) relative to its SMA.
Position Size ToolPosition Size Tool
What it does:
Shows a small on-chart table that converts per-ticker dollar amounts into share counts (shares = amount ÷ current price) for up to 4 configurable tickers.
Inputs (indicator settings)
Ticker 1–4 — select the symbol (TradingView will show the exchange-qualified form like BATS:TQQQ in the settings).
Ticker N $ Amount — dollar amount to convert into shares for that ticker.
Show Ticker N — toggle each row on/off.
Table Text Color — color of the table text.
Table Position — screen location (Top/ Middle/ Bottom × Left/Center/Right).
Font Size — Small / Medium / Large.
Show Empty Top Row — optional spacer row.
What the table displays
Left column: the ticker symbol only (the script strips the exchange prefix for display, so BATS:TQQQ appears as TQQQ in the table).
Right column: the calculated share count, formatted to two decimal places (or "—" if price is not available or zero).
Table updates on the chart’s timeframe using live/last bar prices.
How to use
Add the indicator to a chart.
Open the indicator’s settings panel.
In Ticker 1–4, type/select the symbols you want (you may see the exchange prefix there; that’s TradingView’s UI).
Enter the dollar amounts for each ticker.
Use Show Ticker N to hide/show rows.
Adjust text color, font size, and table position as desired.
Notes
The settings field will always show the exchange-qualified symbol (TradingView behavior); the script strips the exchange only for the on-chart display.
If the selected symbol has no price data on the chart/timeframe, the table shows "—".
Shares are computed as amt ÷ current close from the requested symbol and timeframe.
Example of how to use this tool:
Monitor an index and execute trades on leveraged derivative products. This tool will determine the quantity of shares that can be purchased with a pre-determined dollar amount. Ex: Monitor SPX for entry/exit signals and execute trades on UPRO/SPXU/SPXL/SPXS.
Input a ticker and a dollar amount for position size, shares that can be purchased will be calculated based on the current asset price.
This tool can be helpful for those that use multiple platforms simultaneously to monitor and execute trades.
US Construction Spending & Manufacturing Employment YoY % ChangeUsage Notes: Timeframe: Use a monthly chart, as TTLCONS and MANEMP are monthly data. Other timeframes result in interpolation.
Data Availability: As of October 2025, TTLCONS is available until July 2025 and MANEMP until August 2025 (automatically via TradingView).
The Unsung Heroes: Why C&M Are the True Indicators
Imagine the economy is a highly sensitive vehicle. Quarterly reported GDP is like a quarterly glance at the odometer—it's slow, often delayed, and clearly refers to the past. Anyone who wants to predict future developments needs something much faster.
This is where construction and manufacturing come into play. These two sectors are the machine builders of the economy and provide us with real-time feedback. They form the backbone of economic forecasting for several important reasons:
1. Monetary policy indicators: Both sectors are highly sensitive to monetary policy developments, such as interest rate changes. If developers are unable to finance large residential or commercial projects and manufacturers postpone capital-intensive factory expansions, for example, declines in construction demand would quickly affect other sectors.
2. The backbone of the secondary sector: These industries constitute the secondary sector of the economy, meaning they are concerned with the actual transformation and production of goods, not just the extraction of raw materials or the provision of intangible services. One could argue that while they only account for about 15% of GDP in the US, their impact is massive and cyclical.
3. The timeliness advantage: Forget quarterly lags. Both construction output and manufacturing employment data are released monthly. This timely, frequent data allows analysts to assess economic momentum much more quickly than if they had to wait for delayed GDP reports.
In the US, some analysts have even titled their articles with the bold claim: "Housing construction is the business cycle." Fluctuations in housing construction are frequent and large, and a decline in activity is almost always accompanied by a subsequent decline in GDP.
Smart Weekly Lines — Clean & Scroll-Proof (Pine v6)Because your chart deserves structure. Elegant weekly dividers that stay aligned, scroll smoothly, and project future weeks using your wished UTC offset.
Smart Weekly Lines draws precise, full-height vertical lines marking each new week — perfectly aligned to your local UTC offset. It stays clean, smooth, and consistent no matter how far you scroll.
Features
• Accurate weekly boundaries based on your local UTC offset (supports half-hour zones like India +5.5)
• Clean, full-height lines that never cut off with zoom or scroll
• Adjustable color, opacity, width, and style (solid, dashed, dotted)
• Future week projection for planning and alignment
• Optional visibility: show only on Daily and Intraday charts
Works with any market — stocks, crypto, forex, or futures.
Built for traders who value clarity, structure, and precision.
Developed collaboratively with the assistance of ChatGPT under my direction and testing.
ADX Scanner with IndicatorsA screener that will allow you to enter up to 10 stocks. The goal is to see clearly in front of you what stocks are moving and the momentum leveraging the ADX and RSI. The return for the day shows the growth or loss of those moves.






















