Federal Funds Rate and Overnight Bank Fund RateAMEX:SPY
Comparison of the Overnight Bank Fund Rate and the Effective Federal Funds Rate.
The Fed sets a discount rate of 100 basis points above the effective federal funds rate to discourage ("penalize") banks from borrowing from its reserves. If lending banks have excess in their reserves, the borrowing banks have ease in negotiating a lower rate overnight to maintain its requirements. For this reason its a good indicator of the economy. If it becomes more difficult for banks to maintain the required reserve amount they may charge borrowing banks higher rates.
Both the Effective Federal Funds Rate and Overnight Bank Fund Rate use the same data. Except, the OBFR includes overnight Eurodollar transaction data and certain overnight “selected deposit” transactions that are placed at domestic bank branches controlled by a U.S. banking office.
The indicator includes the lower and upper bound target rate set by the Federal Reserve.
An interesting note:
Notice the jump in the Overnight Bank Rate followed by Fed buying to provide liquidity and lower rates in Sept 2019.
Cari dalam skrip untuk "spy"
Naked Bar Upward ReversalAMEX:SPY
The Naked Bar Upward Reversal is a three bar candlestick pattern with an inside candle as a entry point. This pattern is bullish since it has a candle closing red from the previous candle; the most bearish pattern possible. The following inside candle is a reversal of its previous candle with an open above the previous candle's close. Look to buy the next open above the inside candle's close.
This is a bullish reversal pattern and should be used in this context. Successful entries are found in corrections along an upward trend, or buying into a dip. Performance drops when the pattern appears at tops. To improve profitability, use a cluster of evidence to enhance the performance of this pattern. The intended time frame is within the daily and weekly.
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)
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.
Leader Stock ScannerLeader Stock Scanner, Testing using AI
✅ How it works:
Relative Strength (RS) vs SPY – RS above 80 marks strong leaders.
Trend Alignment – 50 EMA > 150 EMA > 200 EMA and price above all EMAs.
Liquidity Filter – 20-day average volume > 500k.
Price Filter – avoids low-priced microcap traps (< $10).
Output – signals a “triangle up” on chart and can trigger alerts.
Relative Strength Leadership Engine v2.0Relative Strength Leadership Engine v2.0OverviewThe Relative Strength Leadership Engine v2.0 is a context-first diagnostic tool designed to identify true market leadership. Instead of simple ratio lines, this script employs a multi-layered scoring model to determine if a symbol is truly outperforming its benchmark (e.g., SPY) or simply riding market beta.The Problem It SolvesMany relative strength indicators fail to distinguish between idiosyncratic leadership and market correlation. A stock might look strong simply because it is a high-beta names moving in lockstep with a rising index. This engine uses Pearson Correlation Filtering and Volatility Normalization to decouple these factors.How It Works (The Math)To ensure full transparency for the TradingView community, the "Leadership Score" (0–100) is calculated based on four proprietary technical pillars:Baseline Alignment (30 pts): Measures if the $Price / Benchmark$ ratio is above its 21-period EMA.Volatility-Normalized Momentum (25 pts): We calculate a Z-score of the RS slope and divide it by the asset's ATR % of price. This ensures momentum is measured by "clean" price action rather than high-beta volatility spikes.Beta-Decoupling (20 pts): Using ta.correlation, the script penalizes "Market Huggers." Points are awarded when a stock shows strength independent of the benchmark's immediate fluctuations.Freshness & Highs (25 pts): Points are awarded for proximity to 252-day relative strength highs, identifying stocks entering a "Power Zone" of leadership.Interpreting the StatesThe dashboard in the bottom-right identifies three distinct permission states:ENGAGE (Score 80+): Full leadership permission. The asset is outperforming with idiosyncratic strength and clean momentum (See FDX example in the gallery).OBSERVE (Score 50–79): Leadership is present but aging or overly correlated to the market (See MU example in the gallery).STAND DOWN (Score <50): Leadership is broken; the asset is a relative laggard (See CBLL example in the gallery).Technical FeaturesMulti-Timeframe Validation: Optional Weekly/Monthly RS confirmation to filter out "noise."Benchmark Timing Filter: A built-in gate that checks if the broader market (Benchmark) is in a "Risk-Off" regime.Non-Repainting: All security calls use lookahead=barmerge.lookahead_off to ensure historical accuracy.Customizable UI: Toggle the dashboard on/off via the "Style" menu for a cleaner workspace.DisclaimerThis script is an informational diagnostic tool and does not generate trade signals, entries, or exits. Educational use only.
ICT ORG with EightsICT ORG with Eights
What It Does
Plots the RTH overnight gap (4:15pm close → 9:30am open) with eighth-level divisions instead of just quartiles.
Gap Levels:
0.000 (Low) | 0.125 | 0.250 | 0.375 | 0.500 (Mid) | 0.625 | 0.750 | 0.875 | 1.000 (High)
Key Features
Visual gap box between previous close and current open
6 additional levels beyond standard quartiles (0.125, 0.375, 0.625, 0.875)
Customizable labels with dates for each level
Auto SPY detection (adjusts close time to 4:00pm)
Historical gaps - show 1-10 previous days
Extend right - project levels forward with buffer bars
Quick Setup
Best on 5min charts or lower
Start with 1-2 historical boxes for clean charts
Toggle eighth lines on/off as needed
Use labels to track which gap/date you're looking at
Use Cases
Gap fill trading - precise entry/exit at eighth levels
S/R levels - eighths often act as support/resistance
Profit targets - use 0.125/0.875 for extreme reversals, 0.375/0.625 for partial fills
Settings
Time offsets for international indices
No plot session to pause drawing during specific hours
Full customization of colors, styles, widths, labels
Why Eighths?
More granularity = better entries. The 0.125/0.875 and 0.375/0.625 levels provide additional confluence zones where price frequently reacts during gap fills.
Gei-IndicatorFor trading and for fundaTradingView, combining three critical layers of market data into a single, high-level summary.
Key Features:
Fundamental Analysis: It pulls real-time financial data (P/E Ratio, Free Cash Flow, Revenue, EBIT, and Dividend Yield) to evaluate the company's health. It even includes a "Tech Mode" toggle to adjust valuation expectations for growth stocks.
Technical Indicators: It monitors price momentum and trend direction using the RSI (14) and a Moving Average crossover (MA20/MA50).
Market Benchmarking: It calculates and displays the Year-To-Date (YTD) performance of the SPY (S&P 500 ETF), allowing you to see at a glance if the current stock is outperforming the broader market.
Dynamic UI: All data is neatly organized in a color-coded table (Green/Orange/Red) at the top-right of your chart, making it easy to perform a "quick health check" without leaving the main price action.mental analysis
ORB + Expected Move + Trade Bias RWCORB + Expected Move + Trade Bias v3
Overview
A comprehensive 0DTE SPX options trading indicator designed to identify optimal credit spread and iron condor setups based on Opening Range Breakout (ORB) analysis, Expected Move calculations, VWAP dynamics, and multi-factor confidence scoring. The indicator provides specific strike suggestions, real-time position management signals, and exit warnings.
Who This Is For
This indicator is built for traders who sell 0DTE SPX credit spreads (put spreads, call spreads, or iron condors) and want a systematic, data-driven approach to:
Determine trade direction (bullish, bearish, or neutral)
Select appropriate strikes based on market conditions
Manage positions with clear exit signals
Core Components
1. Opening Range Breakout (ORB)
The ORB establishes the initial trading range after market open, serving as the foundation for trade bias determination.
Settings:
ORB Period: Choose 15, 30, 45, or 60 minutes
Shorter periods (15-30 min) = more signals, more noise
Longer periods (45-60 min) = fewer signals, more reliable ranges
ORB Breakout Buffer %: Percentage buffer beyond ORB high/low before confirming breakout (default 0.1%)
Colors: Customize ORB high (green), low (red), and fill colors
How It Works:
Tracks the high and low during the ORB period
After ORB completes, monitors for breakouts above/below with buffer
Counts consecutive bars above/below ORB for confirmation
2. Expected Move (EM)
Calculates the statistically expected daily range based on Average True Range (ATR).
Settings:
ATR Length: Lookback period for ATR calculation (default 14)
ATR Multiplier: Scale the expected move (default 1.0)
Colors: Customize expected move lines and fill
How It Works:
Pulls daily ATR from the previous session
Projects expected move boundaries from session open
Used for strike distance calculations and range containment analysis
3. VWAP Analysis
Volume Weighted Average Price with standard deviation bands provides trend confirmation and stretch detection.
Settings:
Show VWAP: Toggle VWAP line visibility
Show VWAP StdDev Bands: Toggle ±1 standard deviation bands
VWAP Band Multiplier: Adjust band width (default 1.0)
VWAP Slope Lookback: Bars to measure VWAP slope (default 10)
Key Metrics:
VWAP Slope: Normalized slope indicating trend strength
Strong Up (↑↑): > 0.5
Up (↑): 0.3 to 0.5
Flat (—): -0.3 to 0.3
Down (↓): -0.5 to -0.3
Strong Down (↓↓): < -0.5
Stretched Detection: Warns when price is >1.5 standard deviations from VWAP
4. Prior Day Levels (PDH/PDL)
Yesterday's high and low serve as key support/resistance levels where institutional orders often cluster.
Settings:
Show Prior Day High/Low: Toggle PDH/PDL lines
Show Prior Day Close: Optional PDC line
Colors: Customize PDH (teal), PDL (orange), PDC (gray)
Why It Matters:
Price above PDH = strong bullish continuation signal
Price below PDL = strong bearish continuation signal
Price between PDH/PDL = range-bound, favors iron condors
Strikes are adjusted to respect these levels as potential support/resistance
Trade Signal System
Signal Time
Settings:
Signal Time (ET): Choose when the indicator evaluates and locks in the trade signal
1100 = 8:00 AM PT / 11:00 AM ET
1115 = 8:15 AM PT / 11:15 AM ET (default)
1130 = 8:30 AM PT / 11:30 AM ET
1145 = 8:45 AM PT / 11:45 AM ET
1200 = 9:00 AM PT / 12:00 PM ET
Recommendation: Later signal times (8:30-9:00 AM PT) provide more data and reduce morning fakeout signals, but leave less time for theta decay.
Confidence Scoring (9 Factors)
The indicator calculates three scores: Iron Condor (IC), Bullish, and Bearish. The highest score determines the signal.
Factor 1: Price Position vs ORB (max 40 pts)
Inside ORB → +35-40 IC points
Above ORB (confirmed breakout) → +40 Bull points
Below ORB (confirmed breakout) → +40 Bear points
Factor 2: VWAP Slope (max 30 pts)
Flat slope → +25 IC points
Strong positive slope → +30 Bull points
Strong negative slope → +30 Bear points
Factor 3: Price vs VWAP Position (max 20 pts)
Above upper band → +20 Bull points
Below lower band → +20 Bear points
Near VWAP → +12 IC points
Factor 4: VWAP Consistency (max 15 pts)
70%+ bars above VWAP → +15 Bull points
70%+ bars below VWAP → +15 Bear points
Mixed → +10 IC points
Factor 5: Move from Open (max 20 pts)
30% of EM up → +20 Bull points
30% of EM down → +20 Bear points
<12% move either way → +15 IC points
Factor 6: Trend Structure (max 15 pts)
Higher highs + higher lows → +15 Bull points
Lower lows + lower highs → +15 Bear points
No clear structure → +8 IC points
Factor 7: Day Range Containment (max 15 pts)
Range <35% of EM → +15 IC points
Range <50% of EM → +8 IC points
Range >65% of EM → Points to directional score
Factor 8: Gap Behavior (max 12 pts)
Gap up, unfilled, above ORB → +12 Bull points
Gap down, unfilled, below ORB → +12 Bear points
Gap filled, inside ORB → +8 IC points
Factor 9: Prior Day High/Low (max 20 pts)
Above PDH → +20 Bull points
Below PDL → +20 Bear points
Between PDH/PDL → +15-20 IC points
Alignment Bonuses (max 25 pts)
Additional points when multiple factors align in the same direction.
Signal Types
SignalMeaningTradeIRON CONDORRange-bound conditionsSell both put and call credit spreadsPUT SPREADBullish conditionsSell put credit spread onlyCALL SPREADBearish conditionsSell call credit spread onlyNO TRADEConflicting signals or low confidenceStay out
Confidence Levels
ConfidenceColorStrike Mode75%+Green🍆 AGGRESSIVE (tighter strikes, more premium)60-75%Lime/Yellow🌶️ NORMAL (balanced strikes)45-60%Yellow/Orange🐢 CONSERVATIVE (wider strikes, safer)<45%Orange/RedNO TRADE triggered
Strike Suggestions
Base Calculation
For Iron Condors: Strikes are calculated from current price at signal time as the midpoint, ensuring symmetric risk on both sides.
For Directional Spreads: Strikes are calculated from session open, betting on continuation.
Put Strike = Midpoint - (Expected Move × Distance)
Call Strike = Midpoint + (Expected Move × Distance)
Distance Settings:
High Confidence (75%+): 0.60 EM (default) - Tighter strikes, more premium
Mid Confidence (60-75%): 0.70 EM (default) - Balanced
Low Confidence (<60%): 0.80 EM (default) - Wider strikes, safer
Skew Adjustments
When Auto-Adjust for Skew is enabled, strikes are asymmetrically adjusted based on:
VIX Level:
VIX > 20: Puts pushed wider (-0.05), Calls pulled tighter (+0.05)
VIX < 15: Opposite adjustment
2-Day Momentum:
Strong down move: Puts pushed wider
Strong up move: Calls pushed wider
Prior Day Levels:
Below PDL: Puts pushed wider (more downside protection)
Above PDH: Calls pushed wider (more upside protection)
PDH/PDL Strike Reference
If the calculated strike is too close to PDH or PDL, the indicator adjusts to place strikes 10 points beyond these key levels (maximum 20 point adjustment).
Exit Signal System
Three-Stage Warning System
Stage 1: EARLY ⚠️ (Yellow)
Trigger: Price moves against position with:
Below VWAP AND in lower fib zones (for put spreads/IC downside)
Above VWAP AND in upper fib zones (for call spreads/IC upside)
Action: Heightened awareness. Consider reducing position or tightening mental stops.
Note: Only fires once per direction per day to avoid alert fatigue.
Stage 2: CAUTION (Orange)
Trigger:
2+ consecutive bars beyond ORB
Price has traveled 25%+ of the distance to short strike
Action: Actively manage position. Prepare to exit.
Stage 3: EXIT (Red)
Trigger:
3+ consecutive bars beyond ORB (configurable)
Price has traveled 40%+ of the distance to short strike
VWAP slope confirms the move (if enabled)
Action: Close position immediately.
Exit Settings
Exit Confirmation Bars: Consecutive bars required for EXIT signal (default 3)
CAUTION Distance %: How far toward strike before CAUTION (default 25%)
EXIT Distance %: How far toward strike before EXIT (default 40%)
Require VWAP Confirmation: EXIT only fires if VWAP slope confirms direction
Fibonacci Retracement Levels
After signal fires, fib levels are drawn between key price points:
For Iron Condors:
0% = Put Strike
100% = Call Strike
For Put Spreads:
0% = Put Strike (danger zone)
100% = Day High at signal
For Call Spreads:
0% = Day Low at signal
100% = Call Strike (danger zone)
Fib Levels Shown:
0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Fib Zone Tracking: The left table shows current fib zone, color-coded:
Red: Near strikes (danger)
Orange: Approaching strikes
Green: Safe middle zones
Information Tables
Left Table (Position Management)
RowDescriptionSIGNALCurrent trade signal with confidence colorConfConfidence percentageEXITCurrent exit status (HOLD/EARLY/CAUTION/EXIT)Fib ZoneCurrent price position in fib structurePDHPrior day high valuePDLPrior day low valuevs PDPosition relative to prior day rangeModeStrike mode (🍆/🌶️/🐢)PutSuggested short put strikeCallSuggested short call strikeCall Dist% distance traveled toward call strikePut Dist% distance traveled toward put strike
Right Table (Market Factors)
RowDescriptionStructureOverall market structure (BULLISH/BEARISH/RANGE/MIXED)PricePosition relative to ORBVWAPVWAP slope direction and strengthStretchedWarning if price extended from VWAPMoveCurrent move from open as % of EMEM UsedDay range as % of expected moveGapGap status (up/down, filled/unfilled)ReversalV-top or V-bottom detectionConflictAny conflicting signals detectedVIXCurrent VIX levelSkewMomentum-based skew direction
Alerts
The indicator includes pre-configured alerts:
AlertDescriptionEntry: Iron CondorIC signal firedEntry: Put SpreadBullish signal firedEntry: Call SpreadBearish signal firedHigh Confidence EntryAny signal with 75%+ confidenceNo TradeNO TRADE signal firedEARLY WARNINGEarly warning triggeredCAUTIONPosition under pressureEXIT NOWExit signal triggered
Recommended Settings
Conservative (New Traders)
ORB Period: 60 minutes
Signal Time: 1130 (8:30 AM PT)
Min Confidence: 50%
Strike Distances: 0.65 / 0.75 / 0.85
Balanced (Default)
ORB Period: 30-45 minutes
Signal Time: 1115 (8:15 AM PT)
Min Confidence: 45%
Strike Distances: 0.60 / 0.70 / 0.80
Aggressive (Experienced)
ORB Period: 30 minutes
Signal Time: 1100 (8:00 AM PT)
Min Confidence: 40%
Strike Distances: 0.55 / 0.65 / 0.75
Important Notes
This indicator does not guarantee profits. It provides a systematic framework for trade selection and management.
Paper trade first. Test the indicator on historical data and paper trade before using real capital.
Position sizing matters. Never risk more than you can afford to lose on any single trade.
Exits are suggestions. Use the exit signals as guidance, but always apply your own judgment.
Market conditions vary. The indicator performs best in normal volatility environments. Use extra caution during major news events, FOMC days, and earnings season.
SPX/SPY focused. While the indicator may work on other instruments, it was designed specifically for SPX 0DTE options trading.
Version History
v3.0
Added 45/60 minute ORB options
Added configurable signal time (8:00-9:00 AM PT)
Added stretched detection (VWAP distance warning)
Added Prior Day High/Low as scoring factor
Iron Condor strikes now centered on current price (symmetric risk)
Split table UI (left: position, right: factors)
PDH/PDL reference for strike adjustments
Credits
Developed for the 0DTE SPX options trading community. Inspired by SMB Capital's ORB methodology, VWAP analysis techniques, and real-world credit spread trading experience.
Disclaimer: This indicator is for educational and informational purposes only. It is not financial advice. Trading options involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results.
Simplified Zones + Styled CALL/PUT TP/SL + Fixed Scoreboardaarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice aarons practice






















