Live off your portofolio (decumulate)This indicator simulates living off your portofolio consisting of a single security or stock such as the SPY etf or even Bitcoin. The simulation starts at a certain point on the chart (which you input as year and month).
Withrawals from the portofolio are made each month according to the yearly withdrawal rate you enter, such as the 4% SWR. The monthly withdrawal income is calculated in USD at the beginning of the retirement period and then adjusted according to the US inflation (CPI) on 01/01 of each year.
The blue graph represents the USD value of the remaining portofolio.
This indicator is meant to be used on daily, weekly or monthly time frame. It may not work properly (and makes little sense to use) on intraday timeframe or larger time frames such as quarterly (3M).
When withdrawing, the indicator considers that fractional stock values can be used (the portofolio value is kept as a float). This may not be true, as most stock brokers currently don't allow this.
It does not explicitly take into account dividends. In order to do this you will have to enable "Adjust for dividends" by clicking on "adj" in the lower right corner of the screen, or by using the indicator on a Total Return (TR) index such as DAX. Unfortunately SPX does not have dividend data, you will have to use the SPY etf (which doesn't have a long history)
Cerca negli script per "spy"
Random Entries Work!" tHe MaRkEtS aRe RaNdOm ", say moron academics.
The purpose of this study is to show that most markets are NOT random! Most markets show a clear bias where we can make such easy money, that a random number generator can do it.
=== HOW THE INDICATOR WORKS ===
The study will randomly enter the market
The study will randomly exit the market if in a trade
You can choose a Long Only, Short Only, or Bidirectional strategy
=== DEFAULT VALUES AND THEIR LOGIC ===
Percent Chance to Enter Per Bar: 10%
Percent Chance to Exit Per Bar: 3%
Direction: Long Only
Commission: 0
Each bar has a 10% chance to enter the market. Each bar has a 3% to exit the market . It will only enter long.
I included zero commission for simplification. It's a good exercise to include a commission/slippage to see just how much trading fees take from you.
=== TIPS ===
Increasing "Percent Chance to Exit" will shorten the time in a trade. You can see the "Avg # Bars In Trade" go down as you increase. If "Percent Chance to Exit" is too high, the study won't be in the market long enough to catch any movement, possibly exiting on the same bar most of the time.
If you're getting the red screen, that means the strategy lost so much money it went broke. Try reducing the percent equity on the Properties tab.
Switch the start year to avoid/minimize black swan events like the covid drop in 2020.
=== FINDINGS ===
Most markets lose money with a "Random" direction strategy.
Most markets lose ALL money with a "Short Only" strategy.
Most markets make money with a "Long Only" strategy.
Try this strategy on: Bitcoin (BTCUSD) and the NASDAQ (QQQ).
There are two popular memes right now: "Bitcoin to the moon" and "Stocks only go up". Both are seemingly true. Bitcoin was the best performing asset of the 2010's, gaining several billion percent in gains. The stock market is on a 100 year long uptrend. Why? BECAUSE FIAT CURRENCIES ALWAYS GO DOWN! This is inflation. If we measure the market in terms of others assets instead of fiat, the Long Only strategy doesn't work anymore (or works less well).
Try this strategy on: Bitcoin/GLD (BTCUSD/GLD), the Eurodollar (EURUSD), and the S&P 500 measured in gold (SPY/GLD).
Bitcoin measured in gold (BTCUSD/GLD) still works with a Long Only strategy because Bitcoin increased in value over both USD and gold.
The Eurodollar (EURUSD) generally loses money no matter what, especially if you add any commission. This makes sense as they are both fiat currencies with similar inflation schedules.
Gold and the S&P 500 have gained roughly the same amount since ~2000. Some years will show better results for a long strategy, while others will favor a short strategy. Now look at just SPY or GLD (which are both measured in USD by default!) and you'll see the same trend again: a Long Only strategy crushes even when entering and exiting randomly.
=== " JUST TELL ME WHAT TO DO, YOU NERD! " ===
Bulls always win and Bears always lose because fiat currencies go to zero.
You're not underperforming a random number generator, are you?
EMA_cumulativeVolume_crossover[Strategy V2]This is variation of EMA_cumulativeVolume_crossover strategy.
instead of cumulative volume crossover, I have added the EMA to cumulative volume of same EMA length.
when EMA crossover EMACumulativeVolume , BUY
when already in LONG position and price crossing over EMACumulativeVolume*2 (orange line in the chart) , Add more
Partial Exit , when RSI 5 crossdown 90
Close All when EMA cross down EMACumulativeVolume
Note
Black Line on the chart is the historical value of EMACumulativeVolume . when EMA area is green and price touch this line closes above it , you can consider consider BUY
I have tested it on SPY , QQQ and UDOW on hourly chart.
EMA setting 25 is working for all of these.
but SPY produces better results on EMA 35 setting
warning
This strategy is published educational purposes only.
Divergence of Stocks Above MA50 v.s. US-Stock MarketEnglish:
This indicator has been developed as an early warning tool to estimate the probability of correction in the US stock market. It works best in the daily chart.
Function:
1.) "Index-line"
The underlying stock index is converted to a scale between 0% and 100% based on its 52-week highs and lows. Where 100% is closing price at 52-week high and 0% is closing price at 52-week low.
2nd) "Stocks Above MA50".
For each major stock index, there is an index that determines the percentage of stocks above its 50 moving average. For example, for the S&P 500, this is the S5FI.
3) "Divergence
In an efficient market, both lines (index and number of stocks above the 50 MA) would run more or less in sync. A new high in the index would also mean a new high in the stocks trading above the 50 moving average. Often, however, a correction in the index is announced when the number of stocks trading above their 50 MA do not make a new, or even a lower, high while the underlying index marks a new high. The divergence signal measures this divergence of the indices. The higher the bar, the more pronounced the divergence.
How to read the indicator?
If a divergence occurs, then the stops should be tightened. As with any indicator, false signals can occur because a divergence does not automatically lead to a correction. The higher the divergence is indicated, the higher the probability. The strength of a correction cannot be predicted with the indicator.
For which symbols does the indicator work?
The indicator works exclusively for the following symbols:
S&P500: SPX, SPY, ES1!, US500 Index above MA50: S5FI
Russel2000: IWM, US2000, RTY1!, RUT, IWO Index above MA50: R2FI
NASDAQ100: NDX, NAS100, NQ1!, US100, QQQ Index above MA50: NDFI
NASDAQ: IXIC, ONEQ, QCN1!, NDAQ Index above MA50: NCFI
NYSE: XAX, NYA Index above MA50: MMFI
DowJones100: DJX, DJI, DIA, MYM1!, YM1! Index above MA50: DIFI
DowJonesComp: DOW, IYY Index above MA50: DCFI
Deutsch:
Dieser Indikator ist als Frühwarninstrument zur Einschätzung der Korrekturwahrscheinlichkeit im US-Aktienmarkt entwickelt worden. Er funktioniert am besten im Tages-Chart.
Funktion:
1.) „Index-line“
Der zugrunde liegende Aktienindex wird bezogen auf seine 52Wochen Hochs und Tiefs in eine Skala zwischen 0% und 100% umgerechnet. Dabei sind 100% Schlusskurs auf 52-Wochen Hoch und 0% Schlusskurs auf 52-Wochen Tief.
2.) „Stocks Above MA50“
Zu jedem Hauptaktienindex gibt es einen Index, der den Prozentwert der Aktien über Ihrem 50 gleitenden Durchschnitt ermittelt. Beim S&P 500 ist das z.B. der S5FI.
3.) „Divergence“
In einem effizienten Markt würden beide Linien (Index und Anzahl Aktien über dem 50 MA) mehr oder weniger synchron laufen. Ein neues Hoch im Index würde auch ein neues Hoch bei den Aktien, die über dem 50 gleitenden Durchschnitt notieren, bedeuten. Oft jedoch kündigt sich eine Korrektur im Index an, wenn die Anzahl der Aktien, die über ihrem 50 MA notieren kein neues, oder sogar ein niedrigeres Hoch machen, während der zu Grunde liegende Index ein neues Hoch markiert. Das Divergenz-Signal misst diese auseinanderlaufen der Indices. Je höher der Balken, umso stärker ist die Divergenz ausgeprägt.
Wie ist der Indikator zu lesen?
Wenn eine Divergenz auftritt, dann sollten die Stopps enger herangezogen werden. Es kann wie bei jedem Indikator zu Fehlsignalen kommen, da eine Divergenz nicht automatisch zu einer Korrektur führen muss. Die Wahrscheinlichkeit ist um so höher, je höher die Divergenz angezeigt wird. Die Stärke einer Korrektur kann mit dem Indikator nicht prognostiziert werden.
Für welche Symbole funktioniert der Indikator?
Der Indikator funktioniert ausschließlich für folgende Symbole:
S&P500: SPX, SPY, ES1!, US500 Index über MA50: S5FI
Russel2000: IWM, US2000, RTY1!, RUT, IWO Index über MA50: R2FI
NASDAQ100: NDX, NAS100, NQ1!, US100, QQQ Index über MA50: NDFI
NASDAQ: IXIC, ONEQ, QCN1!, NDAQ Index über MA50: NCFI
NYSE: XAX, NYA Index über MA50: MMFI
DowJones100: DJX, DJI, DIA, MYM1!, YM1! Index über MA50: DIFI
DowJonesComp: DOW, IYY Index über MA50: DCFI
Indices trendsAccording to the Dow theory, indices must confirm each other. Based on this idea, I develop an indices trends indicator, including SPY, DIA, and QQQ. The indices trends were calculated based on the average of the short- (blue) and intermediate-term (orange) changes of indices moving average slopes. In addition, IWM trends are shown as a reference in gray color.
Use this indicator together with one of SPY, DIA, QQQ, or IWM to show the overall market conditions.
Trendflex - Another new Ehlers indicatorSource: Stocks and Commodities V38
Hooray! Another new John Ehlers indicator!
John claims this indicator is lag-less and uses the SPY on the Daily as an example.
This indicator is a slight modification of Reflex, which I have posted here
I think it's better for Stocks and ETFs than Reflex since it factors in long trends. It tends to keep you in winning trades for a long time.
I believe this indicator can be used for entries or exits, potentially both.
Entry
1. Entering Long positions at the pivot low points (Stocks and ETFs)
2. Entering Long when the Reflex crosses above the zero lines (Stocks, ETFs, Commodities )
Exit
1. Exiting Long positions at a new pivot high point (Stocks and ETFs)
2. Exiting Long when the Reflex crosses below the zero lines (Stocks, ETFs, Commodities )
In this example, I place a Long order on the SPY every time the Reflex crosses above the zero level and exit when it crosses below or pops my stop loss, set at 1.5 * Daily ATR.
2/3 Wins
+16.05%
Let me know in the comment section if you're able to use this in a strategy.
Reflex - A new Ehlers indicatorSource: Stocks and Commodities V38
Hooray! A new John Ehlers indicator!
John claims this indicator is lag-less and uses the SPY on the Daily as an example.
He states that drawing a line from peak to peak (or trough to trough) will correspond perfectly with the Asset.
I have to say I agree! There is typically one bar of lag or no lag at all!
I believe this indicator can be used for either entries or exits, but not both.
Entry
1. Entering Long positions at the pivot low points (Stocks and ETFs)
2. Entering Long when the Reflex crosses above the zero lines (Stocks, ETFs, Commodities)
Exit
1. Exiting Long positions at a new pivot high point (Stocks and ETFs)
2. Exiting Long when the Reflex crosses below the zero lines (Stocks, ETFs, Commodities)
In this example, I place a Long order on the SPY every time the Reflex crosses above the zero level and exit when it crosses below or pops my stop loss, set at 1.5 * Daily ATR.
4/6 Wins
+10.76%
For me, that's good enough to create a strategy and backtest on several Indices and ETFs, which is what I have a hunch this will work on.
I think there is a lot of promise from a single Indicator!
Let me know in the comment section if you're able to use this in a strategy.
Hide Extended Hours/non-intraday American BarsOnly works with American bar style.
Not works with Candles.
--------
This script can hide the extended hours/non-intraday bars and leave the intraday bars only, especially for future users, such as ES/NQ/RTY/YM, etc.,.
Now you can find the intraday support/resistance quite easily!
Example, as a ES investor, you can easily find the intraday support/resistance level ,which is almost equal to SPY / SPX , no longer need to check SPY / SPX separately again, saving your time a lot.
--------
IMPORTANT INSTRUCTION
In order to make the script work, you have to bring it to the most top visual layer.
Please do as the following steps:
Add the script to chart
Hover mouse on the script name, and tap the right-most 'more' button (which appears as 3 dots)
Select "Visual Order", then select "Bring to front".
Done!
Also, in order to have a better view effect and make the bars COMPLETELY "Hidden", you can adjust the hidden bar color in the "setting" menu to the exact color of your chart background.
Swing-Trade-Stocks SystemThis is a simple swing trade system inspired by sources on the internet. The rules are as follows:
Buy when first green arrow appears after 10ma above 30ma
Set stop-loss below most recent support
Set take-profit below most recent swing point high or wait until price closes below 30ma (red)
Short when first purple arrow appears after 10ma below 30ma
Set stop-loss above most recent resistance
Set take-profit above most recent swing point low or wait until price closes above 30ma (red)
The background color changes based on the direction of SPY. If SPY is going down (10ma < 30ma) the
background will be red and only short indicators (purple arrows) will appear. If SPY is going up (10ma > 30ma),
the background will be green and only long indicators (green arrows) will appear.
Happy trading!
Market Internals [Makit0] MARKET INTERNALS INDICATOR v0.5beta
Market Internals are suitable for day trade equity indices, named SPY or /ES, please do your own research about what they are and how to use them
This scripts plots the NYSE market internals charts as an indicator for an easy and full visualization of market internal structure all in one chart, useful for SPY and /ES trading
Description of the Market Internals
- TICK: NYSE stocks ticking up vs stocks ticking down, extreme values may point to trend continuation on trending days or reversal in non trending days, example of extreme values can be 800 and 1000
- ADD: NYSE stocks going up vs stocks going down, if price auctions around the zero line may be a non trend day, otherwise may be a trend day
- VOLD: NYSE volume of stocks up vs volume of stocks going down, identify clearly where the volume is going, as example if volume is flowing down may be a good idea no to place longs
- TRIN: NYSE up stocks vs down stocks ratio divided by up volume vs down volume ratio. A value of 1 indicates parity, below that the strength is on the long side, above the strength is in the short side.
A basic use of market internals may be looking for divergences, for example:
- /ES is trading in a range but ADD and VOLD are trending up nonstop, may /ES will break the range to the upside
- /ES is trading in a range and ADD and VOLD are trading around the zero line but got an extreme reading on TICK, may be a non trending day and the TICK extreme reading is at one of the extremes of the /ES range, may be a good probability trade to fade that move
- /ES is trading in a trend to the downside, ADD and VOLD too, you catch a good portion of the move but are fearful to flat and miss more gains, you see in the TICK a lot of extreme values below -800 so your're confident in the continuation of the downtrend, until the TICK goes beyond -1000 and you use that signal to go flat
Market internals give you context and confirmation, price in /ES may be trending but if market internals do not confirm the move may a reversal is on its way
Price is an advertise, you can see the real move in the structure below, in the behavior of the individual components of the market, those are the real questions:
- How many stocks are going up/down (ADD)
- How many volume is flowing up/down (VOLD)
- How many stocks are ticking up/down (TICK)
- What is the overall volume breath of the market (TRIN)
FEATURES:
- Plot one of the four basic market internal indices: TICK, ADD, VOLD and TRIN
- Show labels with values beyond an user defined threshold
- Show ZERO line
- Show user defined Dotted and Dashed lines
- Show user defined moving average
SETTINGS:
- Market internal: ticker to plot in the indicator, four options to choose from (TICK, ADD, VOLD and TRIN)
- Labels threshold: all values beyond this will be ploted as labels
- Dot lines at: two dotted lines will be plotted at this value above and below the zero line
- Dash lines at: two dashed lines will be plotted at this value above and below the zero line
- MA type: two options avaiable SMA (Simple Moving Average) or EMA (Exponential Moving Average)
- MA length: number of bars to calculate the moving average
- Show zero line: show or hide zero line
- Show dot line: show or hide dotted lines
- Show dash line: show or hide dashed lines
- Show labels: show or hide labels
GOOD LUCK AND HAPPY TRADING
Hide extended hours/non-intraday barsEspecially for future users, such as ES/NQ/RTY/YM, etc., this script can hide the extended hours/non-intraday bars and leave the intraday bars only.
With this script , you can find the intraday support/resistance quite easily!
Example, if you are a ES investor, you can easily find the intraday support/resistance level ,which is almost equal to SPY, with this script, and no need to check SPY separately again , saving your time a lot.
Note: Please couple this script with American Bars. If you use candle charts, the upper/lower pins of the candle can't be hidden with the bars together, which is restricted by the code editor itself...
Kozlod - RSI Strategy - 1 minuteStarted to play with very simple strategies. Trying to find ones with optimal parameters which work well for certain symbols/timeframe.
Found that basic RSI strategy without any position management with high RSI length (65 in this script) works pretty good for 1m chart for few stocks.
It's also not bad for AAPL , SPY .
It might not work very good on it's not but can give you a pretty good base for more complicated indicators.
And remember:
Past performance does not guarantee future results.
Willams %RwEMAspy
Was looking for something else when surfed into an old question
wanting %R 21 period with EMA 13 period of the %R signal
and being a rookie at this, made this code to post for them.
Tried to comment the script in such a way that other rookies
like me could make better sense of what is being done. Hope
this helps someone. I find it useful as one of my indicators for
trading.
Pinescript for tradingview.com user Tom1trader
All time frames.
Interpretation:
%R (Red) crosses above it's average (Blue) - bull
%R crosses below it's average - bear. Background
color changes green-up red-down with above crossings.
Most but not all of serious price movement takes place
from the time the %R (red) goes into oversold (or bought) and
exits again.
%R centerline crosses can also be useful.
I use various indicators and want all of the confirmation
that I can get for expectations BUT I never know what the
next bar will do and define my risks accordingly.
Sectors Relative Strength Normal DistributionI wrote this indicator as an attempt to see the Relative Strengths of different sectors in the same scale, but there is also other ways to do that.
This indicator plots the normal distribution for the 10 sectors of the SPY for the last X bars of the selected resolution, based on the selected comparative security. It shows which sectors are outperforming and underperforming the SPY (or any other security) relatively to each other by the given deviation.
MarketRSThe strength of a stock relative to the market (SPY) is an import indicator accumulation of a stock by institutionan funds, especially during a market decline. This indicator plot the ratio of a security/SPY and plots a fast (5 period) and slow (21 period) EMA.
Fed Balance Sheet (Candles)Fed Balance Sheet (Candles) - TradingView Description
📊 OVERVIEW
Fed Balance Sheet (Candles) transforms the Federal Reserve's total assets into an intuitive candlestick visualization, allowing you to track monetary policy changes with the same visual language you use for price action.
This indicator pulls real-time data directly from FRED (Federal Reserve Economic Data) and displays the Total Assets of All Federal Reserve Banks as dynamic candles on your chart, making it effortless to correlate central bank liquidity with market movements.
🎯 WHY THIS MATTERS
The Federal Reserve's balance sheet is one of the most powerful leading indicators in global markets. When the Fed expands its balance sheet (Quantitative Easing), it injects liquidity into the financial system, historically correlating with:
Rising asset prices (stocks, crypto, commodities)
Lower volatility
Risk-on sentiment
Currency devaluation
When the Fed contracts its balance sheet (Quantitative Tightening), liquidity drains from markets, often leading to:
Asset price pressure
Increased volatility
Risk-off sentiment
Dollar strength
By visualizing this as candles, you can instantly see:
The pace of change (candle size)
The direction (green = expansion, red = contraction)
Acceleration or deceleration (consecutive candles in same direction)
Pivots in monetary policy (color changes from green to red or vice versa)
🔧 HOW IT WORKS
Data Source
Source: Federal Reserve Economic Data (FRED)
Metric: Total Assets of All Federal Reserve Banks
Unit: Displayed in Trillions of USD for easy reading
Frequency: Weekly updates (every Wednesday)
Candlestick Construction
Since balance sheet data is reported as a single number each week (not traditional open-high-low-close), this indicator creates candles by comparing each period to the previous one:
Open = Last week's balance sheet value
Close = This week's balance sheet value
High = The higher of the two values
Low = The lower of the two values
This captures directional movement and magnitude of change, making it intuitive for traders accustomed to candlestick analysis.
Color Scheme
🟢 GREEN CANDLES (Expanding Balance Sheet)
When this week's value is higher than last week's
Interpretation: Fed is adding liquidity (Quantitative Easing)
Historically bullish for risk assets
🔴 RED CANDLES (Contracting Balance Sheet)
When this week's value is lower than last week's
Interpretation: Fed is removing liquidity (Quantitative Tightening)
Historically bearish or neutral for risk assets
Value Label
A floating label displays the current balance sheet value in trillions (e.g., "$8.75T") so you always know the exact figure at a glance.
📈 PRACTICAL APPLICATIONS
1. Market Regime Identification
Strings of green candles = Liquidity-driven bull markets
Strings of red candles = Tightening-induced bear markets or corrections
Color transitions = Potential market inflection points
2. Correlation Analysis
Overlay on stock indices (SPY, QQQ, IWM)
Overlay on crypto (BTC, ETH)
Overlay on commodities (Gold, Silver)
Observe how asset prices react to Fed liquidity changes in real-time
3. Macro Timing
Large green candles = Aggressive easing (crisis response)
Large red candles = Aggressive tightening (inflation fighting)
Small candles = Neutral policy (Fed on hold)
4. Risk Management
Shift portfolio allocation based on liquidity environment
Reduce leverage during red candle trends
Increase exposure during green candle trends
Use as confirmation for other technical signals
5. Multi-Timeframe Context
Daily charts: See how daily price action relates to weekly Fed data
Weekly charts: Perfect alignment with data release frequency
Monthly charts: Visualize long-term monetary cycles spanning years
⚙️ SETTINGS
Zero configuration needed. Simply add the indicator to any chart and it works immediately.
The indicator automatically:
Overlays on your main chart
Uses the left price scale (won't interfere with asset prices)
Updates with the latest Fed data
Displays values in trillions for clean readability
🎨 VISUAL DESIGN PHILOSOPHY
The indicator uses semi-transparent candle bodies with vibrant borders to maintain visibility without obscuring your price action. The color scheme follows universal chart conventions where green represents growth/expansion and red represents decline/contraction.
It's designed to blend seamlessly into any chart theme while providing immediate visual clarity about the Fed's monetary stance.
📚 WHAT YOU NEED TO KNOW
Data Availability
Historical data available from December 2002 (over 20 years of Fed policy)
Updates every Wednesday (Federal Reserve's reporting schedule)
Typically published with a 1-week lag
How the Data Appears
On weekdays: Shows the most recent Wednesday's data
On weekends: Shows Friday's data (which is the prior Wednesday's figure)
Updates automatically when new data is released
Scale Considerations
The Fed's balance sheet is measured in trillions, while most assets are priced much lower. The indicator uses the left price scale by default to avoid conflicts with your main asset's price scale. You can easily move it to a separate pane if you prefer.
🧠 INTERPRETATION GUIDE
Historical QE Phases (Green Candles)
2008-2014: Financial Crisis Response
The Fed's balance sheet expanded from under $1T to ~$4.5T to stabilize markets after the mortgage crisis.
2020: COVID-19 Response
Rapid expansion to ~$7T as the Fed stepped in during pandemic lockdowns.
2020-2022: Extended Support
Balance sheet reached historic peak of ~$9T.
Historical QT Phases (Red Candles)
2017-2019: First Modern QT Attempt
The Fed tried to normalize its balance sheet, reducing it from ~$4.5T to ~$3.8T before pivoting.
2022-Present: Inflation-Fighting QT
The Fed began shrinking its balance sheet to combat inflation, letting bonds mature without replacement.
Key Insights
Size matters, but rate of change matters MORE.
A $9T balance sheet growing slowly has different implications than a $5T balance sheet growing rapidly.
Watch for acceleration.
Increasingly large candles (up or down) signal a policy shift that markets will notice.
Plateaus mean "wait and see."
Tiny candles indicate the Fed is holding steady and watching economic data.
Reversals are major events.
When candles switch from green to red (or vice versa), the Fed has changed course—these are critical market turning points.
🎓 EDUCATIONAL VALUE
This indicator helps you understand:
The mechanics of monetary policy through visual learning
The lag between Fed actions and market reactions by observing temporal correlation
The scale of modern central banking (trillions put into perspective)
The relationship between liquidity and asset prices (cause and effect in action)
Many traders talk about "don't fight the Fed" but never actually track what the Fed is doing. Now you can see it as clearly as you see price action.
🔗 RELATED CONCEPTS
For comprehensive macro analysis, consider also tracking:
Fed Funds Rate (short-term interest rates)
M2 Money Supply (broader measure of money in circulation)
Treasury Yield Curves (bond market expectations)
Dollar Index (DXY) (currency strength)
VIX (market fear/volatility)
The Fed's balance sheet is just one piece of the puzzle, but it's arguably the most important one for understanding liquidity conditions.
⚠️ DISCLAIMER
This indicator displays publicly available economic data from the Federal Reserve. It is for informational and educational purposes only and does not constitute financial advice.
Important considerations:
Past monetary policy does not guarantee future market outcomes
Correlation does not equal causation
Asset prices are influenced by many factors beyond Fed liquidity
Always use proper risk management
Consult with qualified financial professionals before making investment decisions
Trading involves substantial risk of loss and is not suitable for everyone.
📜 VERSION HISTORY
Version 1.0 - Initial Release
Fed balance sheet visualized as candlesticks
Real-time FRED data integration
Automatic display in trillions
Dynamic color coding (green/red)
Current value label with exact figure
💡 WHY CANDLES?
You might wonder: "Why show the Fed's balance sheet as candles instead of a line?"
Because candles tell stories that lines can't.
A line shows you where we are
Candles show you how we got here, how fast we're moving, and what momentum looks like
Candles make the Fed's actions feel immediate and tangible
Candles connect macro data to the chart language you already speak
When you see three big green candles in a row on the Fed balance sheet while your crypto or stock portfolio is rallying, you feel the connection. When you see the candles turn red and shrink, you understand the headwinds forming.
It transforms dry economic data into actionable market intelligence.
📞 SUPPORT & FEEDBACK
If you find this indicator valuable:
⭐ Like and favorite to help others discover it
📝 Comment with your use cases and insights
🔔 Follow for updates and new macro indicators
Your feedback drives improvements and helps build better tools for the trading community.
🚀 THE BOTTOM LINE
The Fed's balance sheet is the tide that lifts or lowers all boats.
Whether you're trading stocks, crypto, forex, or commodities—whether you're a day trader or long-term investor—understanding the Fed's liquidity operations gives you an edge.
This indicator makes that understanding visual, immediate, and actionable.
Stop guessing about macro conditions. Start seeing them.
"Don't fight the Fed" - Wall Street Wisdom
Now you can see exactly what they're doing—in the same language you use to read price action.
May your trades ride the tide of liquidity. 🌊📈
Minervini Ultimate +VCPMinervini Ultimate Suite (SEPA Dashboard)
This indicator implements Mark Minervini's "Trend Template" criteria combined with a Volatility Contraction Pattern (VCP) detector and a custom Relative Strength rating. It is designed to help traders visualize the technical health of a stock based on stage analysis concepts.
This indicator serves as a complete Control System (Dashboard) for Mark Minervini's SEPA trading strategy. Instead of manually checking five different metrics on every chart, this indicator performs the mathematical calculations and presents the "bottom line" in a single, organized table.
1. What This Indicator Does
The goal is to ensure you never enter a trade blindly. It verifies the stock against Minervini's strict requirements:
Trend: Is the stock in a healthy Stage 2 Uptrend?
Relative Strength: Is it stronger than the general market?
Buy Risk: Is it the right time to buy, or is the price extended?
Pressure: Are institutions accumulating or distributing?
VCP: Is there a breakout opportunity (volatility contraction) right now?
2. Key Benefits
Time-Saving: Instead of drawing lines and calculating percentages manually, you get immediate visual feedback (Green/Red).
Discipline: The indicator will flag "Extended" (Red) if you attempt to buy a stock that has run up too much, saving you from late entries and unnecessary losses.
Precision Timing: The VCP feature (Blue Dots) helps you identify the "calm before the storm"—the exact moment volatility contracts, which often precedes a major breakout.
3. Indicator Parameters & Features
A. Minervini Pressure (Buying vs. Selling)
What it checks: Money flow over the last 20 days.
Calculation: Sums up volume on "Up Days" (Green) versus volume on "Down Days" (Red).
Meaning:
🟢 Buying: More money is entering than leaving. A sign of institutional accumulation.
🔴 Selling: Selling pressure dominates. The price may be rising, but without strong volume backing.
B. Buy Risk (Price Extension)
What it checks: The distance of the current price from the 50-Day Moving Average. Minervini strictly warns against "chasing" stocks.
Signals:
🟢 Low Risk: Price is within 0% – 15% of the 50MA. This is the ideal "Buy Zone".
🟡 Caution: Price is 15% – 25% away. Buy with increased caution.
🔴 Extended: Price is >25% from the MA. Do not buy. The probability of a pullback is high.
⚪ Broken: Price is below the 50MA. The short-term trend is damaged.
C. TPR - Trend Template (Trend Power Rating)
What it checks: Is the stock in a Stage 2 Uptrend?
Strict Rules (All must be true for a PASS):
Price > 50MA > 150MA > 200MA.
The 200MA is trending UP (positive slope).
Price is near the 52-Week High (within 25%).
Price is above the 52-Week Low (at least 25%).
Meaning:
🟢 PASSED: Technically healthy and ready to move.
🔴 FAILED: The trend structure is broken (e.g., MAs are entangled).
D. RPR Score (Relative Performance Rating)
What it checks: How strong the stock is compared to the general market (S&P 500 / SPY).
Calculation: Weighted performance over 3, 6, 9, and 12 months vs. the SPY. The score ranges from 1 to 99.
Meaning:
🟢 80-99: Market Leader. These are the stocks Minervini targets.
🟡 70-80: Good, but not elite.
⚪ Below 70: Laggard (weaker than the market).
E. VCP Action (Volatility Contraction Pattern)
What it checks: Monitors price tightness. It calculates the range between the highest close and lowest close over the last 5 days.
Meaning:
🔵 SQUEEZE (Blue Text + Blue Dot on Chart): The price range has contracted to less than 2.5%.
Why it matters: When a stock stops moving wildly and trades in a tight range ("Flat Line"), it indicates supply has dried up. A high-volume breakout often follows immediately.
Daily Gap + Pre-Market Zones + EMA 9Intraday Gap Zones & Pre-Market Range
Description
Concept & Overview This indicator is designed for intraday traders (Indices and Equities) who focus on structural price action at the market open. The script automates the drawing of two critical liquidity zones:
The Gap Zone: The empty space between the previous Regular Trading Hours (RTH) Close and the current day's Open.
The Pre-Market Range: The High and Low established between 04:00 AM and 09:30 AM ET.
By visualizing these levels automatically, traders can instantly see if the market is opening inside value or gapping out of range. It also includes an EMA 9 to assist with trend determination.
Key Features
Automated Gap Visualization: Automatically draws a box from yesterday's 4:00 PM Close to today's 9:30 AM Open. This box extends to the right, creating a visual reference for potential "Gap Fill" plays.
Pre-Market High/Low: Captures the full range of the pre-market session. Once the market opens, these levels are locked and extended as key Support/Resistance levels for the day.
Timezone Intelligence: The script is hardcoded to America/New_York time. This ensures accurate level detection regardless of your local timezone or chart settings.
Smart Alerts (Context Aware): Unlike standard EMA alerts, this script utilizes specific logic. Alerts are only triggered if an EMA crossover occurs inside the Gap Zone. This filters out noise and focuses on reversals or continuations specifically within the gap.
How it Works
Session Tracking: The script distinguishes between Pre-Market (04:00-09:30 ET) and RTH (09:30-16:00 ET).
Level Locking: At 09:30 AM ET, the script takes a snapshot of the pre-market high/low and the calculated gap. It draws the boxes and locks them for the remainder of the trading day.
EMA Filter: A standard 9-period EMA runs continuously.
Signal Generation: If price is strictly trading inside the Gap Box during RTH, and it crosses the EMA 9, a signal is generated.
Settings & Customization
Gap Zone Color: Customize the color and transparency of the Gap box.
Pre-Market Zone Color: Customize the look of the pre-market range.
EMA Length: Adjust the moving average period (Default: 9).
Best Practices
Timeframe: Best used on intraday timeframes (1m, 3m, 5m, 15m).
Markets: Optimized for US Equities and Indices (SPY, QQQ, NVDA, TSLA, etc.) due to the specific RTH logic.
Disclaimer & Risk Warning
For Educational Purposes Only This script and the indicators generated are for educational and informational purposes only. They do not constitute financial advice, investment recommendations, or a solicitation to buy or sell any securities.
Risk Warning Trading financial markets involves a high level of risk and may not be suitable for all investors. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.
No Guarantee: Past performance of any trading system or methodology is not necessarily indicative of future results.
Software Limitations: While every effort has been made to ensure the accuracy of the calculations in this script, technology failures, data feed errors, or bugs may occur. Always verify levels manually before executing trades.
Usage By using this script, you acknowledge that you are solely responsible for your own trading decisions and results.
Trend Speed Analyzer with Entries (Zeiierman)📈 Trend Speed Analyzer with Entry Signals (Zeiierman – Modified)
🔹 Overview
This indicator is a trend-following momentum system built around an adaptive (dynamic) moving average and a proprietary trend speed / wave strength engine.
It is designed to identify high-quality continuation entries after price confirms direction, not to predict tops or bottoms.
Best suited for:
Index futures (ES, NQ)
ETFs (SPY, QQQ)
Strongly trending stocks
Intraday or swing trading
🔹 Core Concepts
1️⃣ Dynamic Trend Line (Adaptive EMA)
Instead of using a fixed EMA length, this script dynamically adjusts:
EMA length based on normalized price movement
EMA responsiveness using an accelerator factor
Result:
Fast reaction during strong trends
Smooth behavior during choppy markets
Fewer false flips compared to traditional EMAs
This trend line acts as the primary regime filter.
2️⃣ Trend Speed & Wave Analysis
The indicator tracks trend speed, which represents cumulative directional pressure over time.
It also records:
Bullish wave sizes
Bearish wave sizes
Average vs maximum wave strength
Bull/Bear dominance
These statistics are displayed in an optional table to help assess:
Market bias
Momentum asymmetry
Whether the current move is weak, average, or exceptional
🔹 Entry Signal Logic (One Signal per Trend Shift)
Signals are not spammy.
Only one entry signal is allowed per crossover.
Long Entry Conditions
A long signal is generated when:
Price crosses above the dynamic trend line
A bullish candle forms
The candle body is at least X% of ATR (filters weak/doji candles)
The entire candle body is above the trend line
(Optional) Trend speed is positive
Short Entry Conditions
A short signal is generated when:
Price crosses below the dynamic trend line
A bearish candle forms
The candle body is at least X% of ATR
The entire candle body is below the trend line
(Optional) Trend speed is negative
📌 Once a signal fires, no additional signals will appear until a new crossover occurs.
🔹 What this indicator is NOT
❌ Not a mean-reversion system
❌ Not a prediction tool
❌ Not meant for sideways markets
This tool assumes structure → confirmation → continuation.
🔹 How to Trade It (Suggested Use)
Use higher timeframes (5m–30m) for cleaner signals
Trade in the direction of higher-timeframe bias
Combine with:
VWAP
Key levels (PDH / PDL / PMH / PML)
Market session context
🔹 Customization
Adjust Maximum Length for smoother vs faster trends
Adjust Accelerator Multiplier for sensitivity
Enable/disable speed filter for stricter momentum confirmation
ATR candle filter removes weak signals automatically
⚠️ Disclaimer
This indicator provides technical signals only and does not include trade management, stops, or targets.
Always apply proper risk management.
Ultimate Auto Trendlines Improved No lag, No Repaint with TableA major update - cleanest, most accurate non-repainting trendline tool.
What's new in this version:
• Connects MULTIPLE recent pivots (not just consecutive) → stronger, more reliable levels
• Solid lines extended far right → instant future S/R projection
• Built-in table (top-right): Price + EMA 10/20/50 (Above/Below) + MACD (Bull/Bear) + RSI (Bull/Bear) + ADX (Strong/Weak)
• Alerts for new trendlines — get notified the moment a fresh level forms
• Optional "R"/"S" pivot labels — clean visual swing confirmation
• Max 8 lines total → keeps your chart readable and focused
Why traders are adding this right now:
• 100% non-repainting – safe for live entries & alerts
• 80–85%+ touch/bounce rate in trending markets (SPY/QQQ/NASDAQ daily & 4H backtests)
• Angle filter kills flat/noise lines
• Works killer on stocks, indices, forex majors, crypto
Best settings to start:
Pivot Left/Right: 5/5
Min Angle: 12–15°
Max Trendlines: 8
Line Extension: 100–200 bars
Show Labels: On
Want the latest updates, settings tweaks, or new versions first?
Please Follow me on X → @TrendRiderPro1
Drop a like/favorite/comment if you add it – I read every one and reply to as many as I can.
Any feedback (bugs, ideas, your best settings) is super welcome!
Happy trading – let’s catch those clean bounces & big moves! 🚀📈
If you add it, drop a like/favorite/comment — I read every one and reply to as many as I can.
Any feedback (settings, bugs, ideas) is super welcome — helps me keep improving it.
Happy trading — let’s catch those clean bounces & big moves! 🚀
Ripster Clouds (EMA + MTF)v6 EnhancedThis is the most complete, modern, and user-friendly version of the classic Ripster EMA Clouds indicator yet — fully updated for Pine Script @version
=6 (January 2026 compliant).What It DoesPlots up to 5 local timeframe EMA clouds (8-9, 5-12, 34-50, 72-89, 180-200) with authentic Ripster coloring and transparency.
Adds 3 higher-timeframe (MTF) clouds pulled from a user-defined resolution (default Daily): 50-55, 20-21, and 34-50 — perfect for big-picture bias on intraday charts.
Clouds dynamically change color based on which EMA is on top (bullish green/blue/teal/purple → bearish red/orange/yellow).
Optional slope-colored lines for short/long EMAs.
Clean, grouped inputs with intuitive toggles.
Why This Version Is Better Than Prior OnesFeature
Older Versions (v4/v5 originals & early ports)
This v6 Enhanced Version
Pine Version
v4 or v5 (some no longer fully supported)
Fully v6 compliant – compiles cleanly today
MTF Clouds
Either none or only 2, often no color flip
3 MTF clouds with full color flipping for clear higher-TF bias
Usability
Limited toggles, cluttered defaults
"Show All Clouds & Lines" quick toggle + per-cloud on/off + sensible defaults (clouds 4/5 off)
Visual Clarity
Mixed transparency, sometimes too busy
Optimized transparency & modern color palette (works great in dark/light themes)
Flexibility
Fixed source (usually hl2)
Choice of source (close, hl2, hlc3, ohlc4, etc.)
Alerts
Usually none
Built-in alerts on tightest cloud (8-9) cross – great for momentum entries
Performance
No limits set
max_lines_count, max_labels_count, max_bars_back for smooth operation
Code Quality
Older syntax, scattered inputs
Clean, well-commented, grouped sections – easy to read/modify
Best Use CasesIntraday (10–30 min): Local clouds for entries/pullbacks, MTF for daily bias.
Swing trading (1H, 4H, Daily): Wider clouds + MTF weekly for multi-day holds.
Works beautifully on QQQ, SPY, TSLA, NVDA and any liquid stock/ETF/index.
This script combines the best of the original Ripster local clouds with powerful multi-timeframe context — all in one clean, publish-ready indicator.Copy-paste ready for TradingView public library. Enjoy the edge! Here are examples of how this enhanced version looks on charts (rich layered clouds with MTF overlay):
Power Hour Trendlines [LuxAlgo]The Power Hour Trendlines indicator is based on Power Hours detection, and includes up to three displayed trendlines derived from the closing prices of all the bars within the last user-selected Power Hours.
Users can edit the time of Power Hours, choose how many sessions to take into account, enable or disable any trendlines, and change their colors.
🔶 USAGE
The Power Hour is defined as the last hour of the trading session and is set by default from 3:00 p.m. to 4:00 p.m. New York time. During this period, volume and volatility enter the market. Traders using higher timeframes may use this period to enter or exit positions by placing MOC (Market on Close) orders.
This tool works under the hypothesis that prices made during power hours (periods with high trading activity) are more relevant when used for the construction of trendlines.
An initial trendline is fit using linear regression; prices from power hours located above this initial fit are used for the upper trendline, while the ones below the fit are used for the lower one.
As with any trendline, traders can analyze the slope to determine the market's direction:
Positive slope: The market is trending up.
Negative slope: The market is trending down.
No slope: The market is trending sideways.
As we can see in the image, Nasdaq and Bitcoin are clearly in downtrends, gold is clearly in an uptrend, and the euro/U.S. dollar is in a sideways market over the last visible sessions.
As you can see, the trend lines may or may not be parallel to each other. The wider the area, the more volatile the data. The narrower the area, the less volatile the data. Let's look at an example.
In the image, the Dow30 and the euro/U.S. dollar have opposite behaviors. The volatility above the middle trendline is growing in the first case but shrinking in the second. In both cases, the volatility in the bottom area seems steady, so there are no big surprises there.
Traders can adjust the number of sessions for calculations, making the tool ideal for analyzing price behavior over different time frames.
As the image shows, we can clearly see how the market behaves over different time periods. XLY has been moving down over the last 10, 20, and 40 sessions, with a steeper decline over shorter periods. However, it has been moving sideways over the last 70 sessions.
One of the main uses of trendlines is to provide key support and resistance. In the image, SPY is shown with trendlines over the last 20 sessions. These lines provide excellent reference points for trading and observing price behavior in those areas, such as whether prices are accepted or rejected, which may trigger a response from other traders.
🔹 Not Allowed Timeframes
For obvious reasons, timeframes larger than 1H are not allowed. The Power Hour is defined as the last hour of the trading session. The tool will display a warning message if the timeframe is longer than 60 minutes.
🔶 SETTINGS
Power Hour (NY Time): Choose a custom Power Hour in New York time
Sessions Memory: Select how many Power Hours to take into account for calculations.
🔹 Style
Top: Enable or disable the top line and choose the line and background colors.
Middle: Enable or disable the middle line and choose the line color.
Bottom: Enable or disable the bottom line and choose the line and background colors.
Background: Enable or disable the background color for top and bottom lines.
Mashrab | Momentum X-RayStop guessing if a stock is strong or weak. The Momentum X-Ray is a professional Heads-Up Display (HUD) that tells you the truth about a stock in seconds.
Most indicators just look at price. This dashboard looks at the Context:
Relative Strength (The "King of the Hill" Check):
It doesn't just compare stocks to the S&P 500.
It automatically detects the stock's specific industry (e.g., Semiconductors, Regional Banks, Gold Miners) and compares it against its actual peers.
Green = The stock is a Leader (Beating its sector).
Red = The stock is a Laggard (Losing to its sector).
Fundamental Health (The "Engine" Check):
Instantly see Revenue Growth (QoQ and YoY) and Net Profit Margins.
Filters out "junk" stocks that are moving up on hype but have no real business growth.
Volatility Scanner:
Calculates the ADR (Average Daily Range) to help you size your positions correctly.
How to Read the Signals:
Top Table (Momentum): Look for Double Green. If a stock is beating the SPY and its Sector, it is an "Alpha Leader."
Bottom Table (Context): Check the "Industry" row to see exactly which ETF the script is using for comparison (e.g., SMH for Chips, KRE for Banks).






















