Chop and explodeThe purpose of this script is to decipher chop zones from runs/movement/explosion
The chop is RSI movement between 40 and 60
tight chop is RSI movement between 45 and 55. There should be an explosion after RSI breaks through 60 (long) or 40 (short). Tight chop bars are colored black, a series of black bars is tight consolidation and should explode imminently. The longer the chop the longer the explosion will go for. tighter the better.
Loose chop (whip saw/yellow bars) will range between 40 and 60.
the move begins with blue bars for long and purple bars for short.
Couple it with your trading system to help stay out of chop and enter when there is movement. Use with "Simple Trender."
Best of luck in all you do. Get money.
在脚本中搜索"市值60亿的股票"
Build A BotThis is the Robot we built during the 60 Minute Build-A-Bot webinar on September 12, 2018. We had a great time, and a lot of participation and the best part was that we finished up this robot and even ran a backtest in exactly 60 minutes! We built this robot based on recommendations and suggestions from those who were attending live. Lots of pieces in this robot, but you can always tinker with it, remove stuff, add things, whatever you want!
This version uses the CCI as a trigger for trade entry. The other version uses the Hull Moving Average as a trigger for trade entry.
Volume Zone Oscillator and Price Zone (VZO/PZO) [NeoButane]" Volume Precedes Price is the conceptual idea for the oscillator."
"The main idea of the VZO was to try to change the OBV to look like an oscillator rather than an indicator, also to include time; primarily to identify which zone the volume is located in during a specific period "
How to read this indicator:
Positive reading -> bullish
Negative reading -> bearish
-60 or 60 is seen as the limit of the oscillator range, and a pullback should be expected from there.
Plus and minus signs have been added to the top and bottom for VZO and PZO, with an adjustable threshold to trigger.
Alert conditions have been added to this indicator for ease of use.
Volume Zone Oscillator, write-up by the author (recommended reading)
http:capitalsynergy.com/resources/IFTA09VZO.pdf
Volume Zone Oscillator, uses and formula
https:www.investopedia.com/articles/active-trading/072815/how-interpret-volume-zone-oscillator.asp
Price Zone Oscillator, uses and formula
https:www.investopedia.com/terms/p/price-zone-oscillator.asp
Fib,Guppy Multiple MA(FGMMA)(A/D & Volume Weight,SMA,EMA)[cI8DH]Features:
- 3 + 12 MAs (12 is chosen because Guppy has 12 MAs)
- MA types can be set to Simple, Exponential, Weighted, and Smoothed
- Volume weight can be applied to all available MAs (the built-in VWMA uses Simple MA)
- It is possible to count in only effective portions of the volume in the equation by using Accum/Dist Volume Weight
- Secondary smoothing (useful when volume weight is enabled)
- Predefined MA sets based on Fibonacci sequence (2,3,5,8,.., 377), Guppy (3,5,8,10,12,15 &30,35,40,45,50,60), and cI8DH (2,3,5,8,12,17 & 30,34,39,45,52,60)
Recommended settings:
- hlc3 as input source captures all the essential information encapsulated in a candle. I'd use hlc3 as the default option. In uptrend, "low" and in downtrend, "high" might give more relevant results when using MAs for structural analysis of a market. For commonly used MAs (EMA20, SMA50,100,200), "close" should be used due to their self-fulfilling prophecy effect.
- When you have volume weight above 0, you may want to use secondary smoothing.
- Try not to use Simple MA for smaller lengths (below 20). Sharp changes in the past (right before the period specified by the length) will affect the current value of MA dramatically leading to confusion.
- I am using the first 3 MAs for SMA 50,100,200. You can disable them from the MA type selector all at once when using Fib or Guppy ribbons.
MA-based analysis:
There are different ways of structuring a market. Geometrical (trend lines, channels, fans, patterns, etc) and Fib retracement-based structuring is very common among traders. MAs give an alternative way of analyzing markets. MA ribbons such as Guppy (6 slow and 6 fast-moving MAs) are popular for analyzing market flow. IMO default Guppy sets are a bit random as the numbers do not have an elegant sequence. So I proposed my sets based on increasing sequene spacing (+1). These two MA ribbons are good for market flow analysis but the spacing of the MAs are not ideal for structuring a market. Ribbons based on the Fib sequence is a better choice for structuring a market. This is the equivalent of Fib channels but in a more dynamic form. Among other things, MA Fib ribbon can be used to assess market momentum and to compare different stages of a market. Here are two "educational-only" examples:
Notes:
- Smoothed MA with length L = Exponential MA with length 2*L-1
- Read the background section in my ADP indicator to understand how A/D Volume is calculated
Better RSI with bullish / bearish market cycle indicator This script improves the default RSI. First. it identifies regions of the RSI which are oversold and overbought by changing the color of RSI from white to red. Second, it adds additional reference lines at 20,40,50,60, and 80 to better gauge the RSI value. Finally, the coolest feature, the middle 50 line is used to indicate which cycle the price is currently at. A green color at the 50 line indicates a bullish cycle, a red color indicators a bearish cycle, and a white color indicates a neutral cycle.
The cycles are determined using the RSI as follows:
if RSI is overbought, cycle switches to bullish until RSI falls below 40, at which point it becomes neutral
if RSI is oversold, cycle switches bearish until RSI rises above 60, at which point it becomes neutral
a neutral cycle is exited at either overbought or oversold conditions
Very useful, please give it a try and let me know what you think
MG - Multiple time frame Stochastic RSIAllows user to view stochastic RSI from two different time frames.
Each stochastic RSI indicator is fully customizable, offering the following options:
- Timeframe
- RSI source
- RSI length
- Stochastic length
- Stochastic average length
- Stochastic smoothing length
Usage:
Comparing stochastic RSI across two different time frames can sharpen trades. For example, if you configure a 60 min and 5/15 min stochastic RSI pair, you might enter a long trade when the 60 min stoch RSI crosses up and exit / take profit when the 5 min stock RSI crosses down.
NG [Simple Harmonic Oscillator]The SHO is a bounded oscillator for the simple harmonic index that calculates the period of the market’s cycle.
The oscillator is used for short and intermediate terms and moves within a range of -100 to 100 percent.
The SHO has overbought and oversold levels at +40 and -40, respectively.
At extreme periods, the oscillator may reach the levels of +60 and -60.
The zero level demonstrates an equilibrium between the periods of bulls and bears.
The SHO oscillates between +40 and -40.
The crossover at those levels creates buy and sell signals.
In an uptrend, the SHO fluctuates between 0 and +40 where the bulls are controlling the market.
On the contrary, the SHO fluctuates between 0 and -40 during downtrends where the bears controlthe market.
Reaching the extreme level -60 in an uptrend is a sign of weakness.
Ichimoku Cloud w/SelIchimoku Cloud with selection for:
Regular:
conversionPeriods = 9,
basePeriods = 26
laggingSpan2Periods = 52,
displacement = 26
Crypto:
conversionPeriods = 10,
basePeriods = 30,
laggingSpan2Periods = 60,
displacement = 30
Crypto Doubled:
conversionPeriods = 20,
basePeriods = 60,
laggingSpan2Periods = 120,
displacement = 30
3 Linear Regression CurveFast 3LRC - 15/30/60 standard settings - 15/30 give a lot of noise, but give you a some time to prepare for the 60 to flip
DEMA Double Exponential Moving Average Strategy@Moneros 2017
Based on The DEMA is a fast-acting moving average that is more responsive to market changes than a traditional moving average
en.wikipedia.org
!!!! IN ORDER TO AVOID REPAITING ISSUES !!!!
!!!! DO NOT VIEW IN LOWER RESOLUTIONS THAN res/2 PARAMETER !!!!
for example res = 120 view >= 60m res = 60 view >= 30m
the length of the DEMA sampling shouldn't be longer than a candle
Best profits tested on BTCUSD
res = 105 slowPeriod = 2 fastPeriod = 32
res = 125 slowPeriod = 3 fastPeriod = 21
res = 120 slowPeriod = 2 fastPeriod = 32
res = 130 slowPeriod = 1 fastPeriod = 24
res = 40 slowPeriod = 4 fastPeriod = 93
res = 60 slowPeriod = 1 fastPeriod = 67
BTCUSD
RSI in Bull and Bear Market V2.0RSI oversold at 60/40 in bullish market
And Overbought at 40/60 in Bearish market
for more info of this Strategy
WaveTrend [MastroFran]Great indicator to show short term price movements. 5 day moving average oscillator. When green crosses red and under the 60 mark, buy with caution. when over the 60 mark and red crosses green sell immediately for highest profits.
Hersheys CoCo VolumeCoCo Volume shows you volume movement of your symbol after subtracting the movement from another symbol, preferrably the sector or market the stock belongs to.
My latest update to my CoCoVolume Indicator. It calculates today's volume percent over the 60 period average for both your symbol and index, and displays that difference. If the percent is over the max it highlights the color, showing BIG action for that stock.
The last version was calculating the percent volume difference from yesterday to today for the stock and index and displaying the difference. The prior method had large swings on low volume stocks... this one shows the independent volume action much better. The default values will suit most stocks.
You can set three variables...
- the index symbol, default is SPY
- the period for averaging, default is 60
- the max volume percent, default is 500
Good trading!
Brian Hershey
close-hl2 Price actionStill not tested, but looks very good ; it is the difference between EMA median price and EMA close in different time frame, I used 240, 60, and the current Time frame ,plus one more customed period ; can forcast the price movement , but it s not in scale, so it can not show how much higher or lower the price can goes but just the next direction. I think intraday on 5 ,15 ,60 better then high frame.If you need to try on Daily frame have to change the period to higher then Daily
Everyday 0002 _ MAC 1st Trading Hour WalkoverThis is the second strategy for my Everyday project.
Like I wrote the last time - my goal is to create a new strategy everyday
for the rest of 2016 and post it here on TradingView.
I'm a complete beginner so this is my way of learning about coding strategies.
I'll give myself between 15 minutes and 2 hours to complete each creation.
This is basically a repetition of the first strategy I wrote - a Moving Average Crossover,
but I added a tiny thing.
I read that "Statistics have proven that the daily high or low is established within the first hour of trading on more than 70% of the time."
(source: )
My first Moving Average Crossover strategy, tested on VOLVB daily, got stoped out by the volatility
and because of this missed one nice bull run and a very nice bear run.
So I added this single line: if time("60", "1000-1600") regarding when to take exits:
if time("60", "1000-1600")
strategy.exit("Close Long", "Long", profit=2000, loss=500)
strategy.exit("Close Short", "Short", profit=2000, loss=500)
Sweden is UTC+2 so I guess UTC 1000 equals 12.00 in Stockholm. Not sure if this is correct, actually.
Anyway, I hope this means the strategy will only take exits based on price action which occur in the afternoon, when there is a higher probability of a lower volatility.
When I ran the new modified strategy on the same VOLVB daily it didn't get stoped out so easily.
On the other hand I'll have to test this on various stocks .
Reading and learning about how to properly test strategies is on my todo list - all tips on youtube videos or blogs
to read on this topic is very welcome!
Like I said the last time, I'm posting these strategies hoping to learn from the community - so any feedback, advice, or corrections is very much welcome and appreciated!
/pbergden
RSI + Stochastic Combo (fixed) by howhaber# RSI + Stochastic Indicator
**Summary**
This indicator combines RSI and Stochastic to generate BUY and SELL signals in oversold or overbought market conditions. It merges both indicators for higher accuracy, reducing false signals. Includes visual signals on the chart, alerts, and an info label for quick analysis.
---
## 📈 How the Indicator Works
### RSI Component
- Calculates standard RSI based on the specified period (`rsiLen`).
- Indicates oversold (< 30) or overbought (> 70) conditions.
### Stochastic Component
- Manually calculated to avoid compatibility issues.
- Measures the current price position relative to the price range (highs/lows) over the selected period.
- Smoothed using two SMA filters (%K and %D).
### Signal Logic
**BUY Signal**:
- %K crosses above %D (`ta.crossover(k, d)`).
- %K < 20 (oversold market).
- RSI < specified threshold (default < 40).
**SELL Signal**:
- %K crosses below %D (`ta.crossunder(k, d)`).
- %K > 80 (overbought market).
- RSI > specified threshold (default > 60).
---
## 📍 What's Displayed on the Chart
- 🟢 **Green arrow** below the bar → BUY signal.
- 🔴 **Red arrow** above the bar → SELL signal.
- **In a separate window**:
- RSI line (blue).
- Stochastic %K (orange).
- Stochastic %D (purple).
- Reference levels: 30/70 (RSI), 20/80 (Stochastic).
---
## 🔔 Alerts
- **RSI+Stoch BUY**: Notification on BUY signal.
- **RSI+Stoch SELL**: Notification on SELL signal.
Receive alerts via email, Telegram, or directly on the platform.
---
## 🧩 Additional Feature
- Info label on the last bar, displaying:
- Current RSI value.
- %K and %D values.
- Facilitates quick visual checks of the indicator's current state.
---
## 💡 Interpretation
- **Oversold market** (confirmed by RSI and Stochastic): Likely upward reversal.
- **Overbought market** (confirmed by RSI and Stochastic): Likely downward reversal.
- Combining both reduces false signals and improves accuracy in choppy markets.
---
## ⚠️ Important Note
This indicator is not financial advice. It is designed for technical analysis and educational purposes. Combine it with other tools like trend analysis, volume, and price patterns for better results.
Asia Range Breakout Table (Narrowness)
Asia Range Breakout Table (Narrowness)
Overview
The Asia Range Breakout Table (Narrowness) is a professional trading tool designed to analyze and display range characteristics across key Asian trading sessions. This indicator provides real-time visual feedback on market range narrowness, helping traders identify potential breakout opportunities based on historical range comparisons. Better to use in M5 or M15 timeframe.
Key Features
- Multi-Session Analysis : Tracks 6 crucial Asian market sessions:
- ORB Pre (Tokyo Pre-open)
- ORB First (Tokyo First)
- Sydney Box
- Tokyo Launch Box
- 2nd Session Pre-Open
- 2nd ORB (Tokyo 2nd Session)
- Historical Comparison : Compares current session ranges against 44 days of historical data
- Visual Color Coding :
- 🟢 Narrowest (<10%) - Extremely compressed ranges
- 🟢 Narrow (10-59%) - Below average ranges
- 🟣 Normal (60-79%) - Typical range behavior
- 🔴 Wide (≥80%) - Expanded range conditions
- Customizable Display : Adjustable table position and text size
- Session Toggle : Enable/disable individual sessions based on your trading focus
How It Works
The indicator calculates the high-low range for each defined session and ranks it against historical data using percentile analysis. This helps traders quickly identify:
- Unusually narrow ranges that may indicate impending breakouts
- Expanded ranges suggesting increased volatility
- Normal range behavior for context
Use Cases
- Breakout Trading : Identify sessions with compressed ranges for potential breakout setups
- Volatility Assessment : Gauge market conditions across different Asian sessions
- Session Analysis : Understand range behavior during specific market hours
- Risk Management : Adjust position sizing based on range characteristics
Input Parameters
- Session Toggles : Enable/disable individual session tracking
- Table Position : Choose from four corner positions
- Text Size : Adjust table readability (Tiny, Small, Normal, Big)
Ideal For
- Asian session traders
- Breakout strategy enthusiasts
- Volatility analysis
- Multi-timeframe analysts
- Professional and retail traders focusing on Asian markets
Disclaimer
This tool is for educational and informational purposes only. Past performance is not indicative of future results. Always conduct your own research and risk management before trading.
Momentum-Based Fair Value Gaps [BackQuant]Momentum-Based Fair Value Gaps
A precision tool that detects Fair Value Gaps and color-codes each zone by momentum, so you can quickly tell which imbalances matter, which are likely to fill, and which may power continuation.
What is a Fair Value Gap
A Fair Value Gap is a 3-candle price imbalance that forms when the middle candle expands fast enough that it leaves a void between candle 1 and candle 3.
Bullish FVG : low > high . This marks a bullish imbalance left beneath price.
Bearish FVG : high < low . This marks a bearish imbalance left above price.
These zones often act as magnets for mean reversion or as fuel for trend continuation when price respects the gap boundary and runs.
Why add momentum
Not all gaps are equal. This script measures momentum with RSI on your chosen source and paints each FVG with a momentum heatmap. Strong-momentum gaps are more likely to hold or propel continuation. Weak-momentum gaps are more likely to fill.
Core Features
Auto FVG Detection with size filters in percent of price.
Momentum Heatmap per gap using RSI with smoothing. Multiple palettes: Gradient, Discrete, Simple, and scientific schemes like Viridis, Plasma, Inferno, Magma, Cividis, Turbo, Jet, plus Red-Green and Blue-White-Red.
Bull and Bear Modes with independent toggles.
Extend Until Filled : keep drawing live to the right until price fully fills the gap.
Auto Remove Filled for a clean chart.
Optional Labels showing the smoothed RSI value stored at the gap’s birth.
RSI-based Filters : only accept bullish gaps when RSI is oversold and bearish gaps when RSI is overbought.
Performance Controls : cap how many FVGs to keep on chart.
Alerts : new bullish or bearish FVG, filled FVG, and extreme RSI FVGs.
How it works
Source for Momentum : choose Returns, Close, or Volume.
Returns computes percent change over a short lookback to focus on impulse quality.
RSI and Smoothing : RSI length and a small SMA smooth the signal to stabilize the color coding.
Gap Scan : each bar checks for a 3-candle bullish or bearish imbalance that also clears your minimum size filter in percent of price.
Heatmap Color : the gap is painted at creation with a color from your palette based on the smoothed RSI value, preserving the momentum signature that formed it.
Lifecycle : if Extend Unfilled is on, the zone projects forward until price fully trades through the far edge. If Auto Remove is on, a filled gap is deleted immediately.
How to use it
Scan for structure : turn on both bullish and bearish FVGs. Start with a moderate Min FVG Size percent to reduce noise. You will see stacked clusters in trends and scattered singletons in chop.
Read the colors : brighter or stronger palette values imply stronger momentum at gap formation. Weakly colored gaps are lower conviction.
Decide bias : bullish FVGs below price suggest demand footprints. Bearish FVGs above price suggest supply footprints. Use the heatmap and RSI value to rank importance.
Choose your playbook :
Mean reversion : target partial or full fills of opposing FVGs that were created on weak momentum or that sit against higher timeframe context.
Trend continuation : look for price to respect the near edge of a strong-momentum FVG, then break away in the direction of the original impulse.
Manage risk : in continuation ideas, invalidation often sits beyond the opposite edge of the active FVG. In reversion ideas, invalidation sits beyond the gap that should attract price.
Two trade playbooks
Continuation - Buy the hold of a bullish FVG
Context uptrend.
A bullish FVG prints with strong RSI color.
Price revisits the top of the gap, holds, and rotates up. Enter on hold or first higher low inside or just above the gap.
Invalidation: below the gap bottom. Targets: prior swing, measured move, or next LV area.
Reversion - Fade a weak bearish FVG toward fill
Context range or fading trend.
A bearish FVG prints with weak RSI color near a completed move.
Price fails to accelerate lower and rotates back into the gap.
Enter toward mid-gap with confirmation.
Invalidation: above gap top. Target: opposite edge for a full fill, or the gap midline for partials.
Key settings
Max FVG Display : memory cap to keep charts fast. Try 30 to 60 on intraday.
Min FVG Size % : sets a quality floor. Start near 0.20 to 0.50 on liquid markets.
RSI Length and Smooth : 14 and 3 are balanced. Increase length for higher timeframe stability.
RSI Source :
Returns : most sensitive to true momentum bursts
Close : traditional.
Volume : uses raw volume impulses to judge footprint strength.
Filter by RSI Extremes : tighten rules so only the most stretched gaps print as signals.
Heatmap Style and Palette : pick a palette with good contrast for your background. Gradient for continuous feel, Discrete for quick zoning, Simple for binary, Palette for scientific schemes.
Extend Unfilled - Auto Remove : choose live projection and cleanup behavior to match your workflow.
Reading the chart
Bullish zones sit beneath price. Respect and hold of the upper boundary suggests demand. Strong green or warm palette tones indicate impulse quality.
Bearish zones sit above price. Respect and hold of the lower boundary suggests supply. Strong red or cool palette tones indicate impulse quality.
Stacking : multiple same-direction gaps stacked in a trend create ladders. Ladders often act as stepping stones for continuation.
Overlapping : opposing gaps overlapping in a small region usually mark a battle zone. Expect chop until one side is absorbed.
Workflow tips
Map higher timeframe trend first. Use lower timeframe FVGs for entries aligned with the higher timeframe bias.
Increase Min FVG Size percent and RSI length for noisy symbols.
Use labels when learning to correlate the RSI numbers with your palette colors.
Combine with VWAP or moving averages for confluence at FVG edges.
If you see repeated fills and refills of the same zone, treat that area as fair value and avoid chasing.
Alerts included
New Bullish FVG
New Bearish FVG
Bullish FVG Filled
Bearish FVG Filled
Extreme Oversold FVG - bullish
Extreme Overbought FVG - bearish
Practical defaults
RSI Length 14, Smooth 3, Source Returns.
Min FVG Size 0.25 percent on liquid majors.
Heatmap Style Gradient, Palette Viridis or Turbo for contrast.
Extend Unfilled on, Auto Remove on for a clean live map.
Notes
This tool does not predict the future. It maps imbalances and momentum so you can frame trades with clearer context, cleaner invalidation, and better ranking of which gaps matter. Use it with risk control and in combination with your broader process.
Tick-Based Delta Volume BubblesTICK-BASED DELTA VOLUME BUBBLES
OVERVIEW
A real-time order flow indicator that displays volume delta at the tick level, helping traders identify buying and selling pressure as it develops during live market hours. Unlike traditional volume delta indicators that rely on bar close data, this indicator captures actual tick-by-tick volume changes and directional bias, providing granular insight into market dynamics.
HOW IT WORKS
The indicator monitors live tick data during real-time trading by tracking volume increases between consecutive price updates. Each time volume increments, the script calculates the volume delta, determines price direction, assigns directional bias to the volume, and accumulates net delta for each bar.
This methodology is identical to the tick detection mechanism used in professional cumulative volume delta tools, ensuring accuracy and reliability.
FEATURES
Real-Time Tick Detection
- Captures genuine tick-by-tick volume flow using varip persistence
- Not estimated from OHLC data
- Processes actual market ticks as they occur
Adaptive Bubble Sizing
- Bubbles scale based on delta strength relative to a customizable moving average (default 20 bars)
- Highlights significant order flow imbalances
- Five size levels from tiny to huge
Dual Display Modes
- Normal Mode: Sized bubbles with optional volume labels positioned at bar midpoint
- Minimal Mode: Clean dots above/below bars for unobtrusive delta visualization
Flow Classification
- Aggressive Buy (bright green): Strong positive delta with greater than 1.2x strength
- Aggressive Sell (bright red): Strong negative delta with greater than 1.2x strength
- Passive Buy (light green): Moderate positive delta
- Passive Sell (light red): Moderate negative delta
Intensity Mode (Optional)
- Gray: Low intensity (less than 0.5x average)
- Blue: Medium intensity (0.5-1.0x average)
- Orange: High intensity (1.0-2.0x average)
- Red: Extreme intensity (greater than 2.0x average)
Smart Filtering
- Percentile-based filters (customizable) ensure only significant delta events are displayed
- Reduces chart clutter while highlighting important order flow
- Separate thresholds for bubble display and numeric labels
Data Collection Status
- Optional progress box in top-right corner
- Shows real-time bar collection progress
- Displays percentage completion and bars remaining
- Automatically hides when sufficient data is collected
Hide Until Ready Option
- Suppresses bubble display until the averaging period is complete
- Prevents misleading signals from incomplete data
- Default requires 20 bars before displaying bubbles
SETTINGS
Delta Average Length (1-200, default 20)
- Lookback period for calculating delta strength baseline
- Higher values = longer-term delta comparison
- Lower values = more sensitive to recent changes
Hide Bubbles Until Enough Data
- Prevents display until averaging period completes
- Ensures reliable delta strength calculations
Show Data Collection Status Box
- Displays progress indicator during initialization
- Can be disabled if you understand the warmup period
Minimal Mode
- Switches to simple dot display above/below bars
- Green dots above bars = positive delta
- Red dots below bars = negative delta
- Maintains color intensity or flow type classification
Show Bubbles
- Master toggle for bubble display
Bubble Volume Percentile (0-100, default 60)
- Minimum percentile rank required to display bubble
- Higher values = fewer, more significant bubbles
- Lower values = more bubbles displayed
Show Numbers in Bubbles
- Toggle delta value labels
- Only appears in normal mode
- Disabled automatically in minimal mode
Label Volume Percentile (0-100, default 90)
- Higher threshold for displaying numeric labels
- Typically set higher than bubble percentile
- Reduces label clutter on chart
Intensity Mode
- Switch from flow-type coloring to magnitude-based coloring
- Useful for identifying volume spikes regardless of direction
IMPORTANT NOTES
Real-Time Only: This indicator processes live tick data and does not provide historical analysis. It begins collecting data when added to a live chart.
Volume Required: Symbol must have volume data available. Will not function on symbols without volume (most forex pairs from retail brokers).
Initialization Period: Requires the specified number of bars (default 20) to calculate accurate delta strength. Use the "Hide Until Ready" option to prevent premature signals.
Market Hours: Only collects data during live market hours. Does not backfill historical data.
CREDITS
Tick detection methodology inspired by the Kioseff Trading Tick CVD indicator. This implementation adapts the same core tick-level volume delta calculation for bubble-style visualization and per-bar delta analysis.
We Buy / We Sell - #TheStrat SignalsWe Buy / We Sell - #TheStrat SignalsDescription
This indicator is inspired by the #TheStrat methodology from Rob Smith, designed to identify high-probability "We Buy" (bullish) and "We Sell" (bearish) signals for trading stocks, ETFs, or futures like AMEX:SPY or $VSAT. It combines price action reversal patterns, higher timeframe continuity (HTFC), and optional broadening formation (BF) breaks to time entries with market momentum. Key Features: We Buy Signals: Triggered on a 2d-2u reversal (bearish to bullish candle) when the higher timeframe (HTF) is bullish (green) and optionally at a BF bottom (pivot low break). Labeled as "We Buy" at the candle’s low with a green triangle.
We Sell Signals: Triggered on a 2u-2d reversal (bullish to bearish candle) when the HTF is bearish (red) and optionally at a BF top (pivot high break). Labeled as "We Sell" at the candle’s high with a red triangle.
Candle Numbering: Displays #TheStrat candle types (1=Inside, 2u=Up, 2d=Down, 3=Outside) for context.
Debug Labels: Enabled by default, showing why signals don’t fire (e.g., "No HTFC Buy" if HTF isn’t bullish).
Partial Signals: Optional faint circles for 2d-2u or 2u-2d reversals (without HTFC/BF), disabled by default.
HTFC Background: Green (HTF bullish) or red (HTF bearish) background for timeframe alignment.
How It Works
Based on #TheStrat, the indicator seeks evidence of aggressive buying ("We Buy") or selling ("We Sell") by analyzing: Reversal Patterns: 2d-2u (We Buy): A bearish directional candle (2d) followed by a bullish directional candle (2u), signaling a potential bullish reversal.
2u-2d (We Sell): A bullish directional candle (2u) followed by a bearish directional candle (2d), signaling a potential bearish reversal.
Higher Timeframe Continuity (HTFC): We Buy requires the HTF (e.g., 1H or Daily) to close above its open (bullish).
We Sell requires the HTF to close below its open (bearish).
Broadening Formation (BF): Optional pivot high/low breaks approximate BF extremes (tops for We Sell, bottoms for We Buy).
Can be disabled (use_bf=false) for more frequent signals.
How to Use Setup: Apply to a 5min chart of a liquid asset (e.g., AMEX:SPY , NASDAQ:VSAT ) for intraday trading, or higher timeframes for swing trading.
Ensure sufficient chart history (TradingView > Chart Settings > Max Bars > 1000+).
Settings: Higher Timeframe (htf): Default "60" (1H). Try "15" (15min) for faster signals or "D" (Daily) for swing trades.
Pivot Lookback Length (pivot_len): Default 3. Lower to 1 for more signals, higher for stricter BF breaks.
Require Broadening Formation (use_bf): Default true. Set to false to skip BF checks, increasing signal frequency.
Show We Buy/We Sell Labels: Default true. Shows "We Buy" or "We Sell" on signal candles.
Show Candle Numbers: Default true. Displays 1/2u/2d/3 for #TheStrat context.
Show Debug Labels: Default true. Shows "No HTFC Buy", "No BF Buy", etc., to diagnose missing signals.
Show Partial Signals: Default false. Enable to show faint circles for 2d-2u/2u-2d reversals without HTFC/BF.
Trading: We Buy: Enter long on a green "We Buy" label (with triangle). Set stops below the signal candle’s low. Target BF highs or resistance.
We Sell: Enter short on a red "We Sell" label (with triangle). Set stops above the signal candle’s high. Target BF lows or support.
Use debug labels to understand why signals don’t fire (e.g., "No HTFC Buy" means HTF isn’t bullish).
Partial signals (faint circles) indicate reversals without full conditions, useful for discretionary setups.
Alerts: Right-click the indicator > "Add Alert" on we_buy or we_sell for real-time notifications.
Tips Best Assets: Use on liquid tickers like AMEX:SPY , NASDAQ:QQQ , or NASDAQ:VSAT , as seen in @AlexsOptions
’ examples.
Volatility: Signals are more frequent in trending or volatile markets. Check historical periods (e.g., September 2025) for testing.
Risk Management: Always use stops (e.g., 1-2% risk per trade) and validate signals with market context (e.g., sector/index alignment).
Learning #TheStrat: Study Rob Smith’s #TheStrat for deeper understanding of candle types and FTFC.
Troubleshooting No Signals? Check debug labels (e.g., "No HTFC Buy" means HTF isn’t bullish). Adjust htf (e.g., "15" or "D").
Set use_bf=false or lower pivot_len to 1 for more signals.
Ensure reversals (2d-2u or 2u-2d) are present (check candle numbers).
Test on volatile periods or liquid tickers.
No Partial Signals? Enable show_partial in settings to see faint circles for 2d-2u/2u-2d reversals.
Confirm reversal patterns exist (e.g., "2d" → "2u" in candle numbers).
TwistedHWAY Oracle - Intelligent Level Detection System═════════════════════════════════════════════════════════════════════════
🎯 TwistedHWAY Oracle™ - Intelligent Level Detection System
═════════════════════════════════════════════════════════════════════════
OVERVIEW
TwistedHWAY Oracle™ combines six independent calculation engines to identify high-probability support and resistance levels. The indicator uses adaptive market regime detection and confluence analysis to automatically rank levels by confidence score, helping traders identify key reaction zones where price is likely to find support or resistance.
KEY FEATURES
The indicator provides comprehensive level detection through:
Six Detection Engines — Each engine operates independently with its own alert system
Confluence Analysis — Automatically awards bonus confidence when multiple engines identify the same level
Adaptive Intelligence — Market volatility detection adjusts parameters in real-time
Confidence Scoring — Every level is ranked and displayed with a numerical confidence score
Individual Alerts — Separate alert controls for each detection method
DETECTION ENGINES
1 — Pivot Points Engine
Calculates daily pivot levels including PP, R1-R3, and S1-S3 using previous day's high, low, and close.
2 — Swing Detector
Identifies significant swing highs and lows using prominence filtering to eliminate noise.
3 — Psychological Matrix
Detects round number levels at three configurable increments (default: 10, 25, 50).
4 — Fibonacci Engine
Calculates retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) from major swings.
5 — VWAP System
Generates volume-weighted average price levels at three different periods.
6 — Confluence Analyzer
Awards bonus confidence points when multiple engines identify the same level.
HOW TO USE
Reading the Levels
Levels above current price = Resistance (red by default)
Levels below current price = Support (green by default)
Numbers in brackets show confidence score
Higher confidence = stronger level
Levels with score > 2.0 indicate extreme confluences
Trading Strategies
Bounce Trading — Enter positions when price approaches high-confidence levels expecting reversal
Breakout Trading — Trade breakouts through levels, using broken level as stop-loss
Confluence Zones — Focus on areas where multiple engines agree
SETTINGS GUIDE
Oracle Settings
Validation Mode — Conservative parameters for more reliable signals
Max Levels — Number of levels to display (10-50)
Level Extension — Line extension direction (None/Left/Right/Both)
Individual Engine Controls
Each engine can be toggled on/off with separate alert controls:
Pivot Engine (daily pivots)
Swing Detector (historical swings)
Psychological Matrix (round numbers)
Fibonacci Engine (retracements)
VWAP System (volume-weighted levels)
Visual Settings
Individual color selection for each level type
Label display toggle with size options
Line style preferences (Solid/Dashed/Dotted)
Alert Configuration
Alert Distance % — Proximity threshold (default: 0.5%)
Alert Cooldown — Minimum bars between alerts (default: 60)
Individual alert toggles for each engine
ADAPTIVE PARAMETERS
The indicator automatically adjusts to market conditions:
High Volatility Mode — Wider swing detection, stricter prominence filters
Normal Mode — Balanced parameters for typical market conditions
Validation Mode — Most conservative settings for reliable signals
Market regime is detected using 100-period volatility measurement with automatic threshold adjustment.
ALERTS
Five alert types plus special confluence alerts:
🎯 Pivot Alerts — Daily pivot level approaches
🌊 Swing Alerts — Historical swing level tests
🧠 Psychological Alerts — Round number approaches
🌀 Fibonacci Alerts — Retracement level tests
📉 VWAP Alerts — Volume-weighted level approaches
⚡ Critical Alerts — Ultra-high confidence levels (score ≥ 2.0)
Alerts include price level, confidence score, and source information.
BEST PRACTICES
Timeframe Selection
Works on all timeframes (optimized for 5min to Daily)
Higher timeframes = more reliable levels
Use multi-timeframe analysis for confirmation
Optimization by Instrument
Forex:
Psychological increments: 0.0010, 0.0050, 0.0100
Stocks (Low-priced):
Psychological increments: 1, 5, 10
Stocks (High-priced):
Psychological increments: 10, 25, 50
Crypto:
Adjust based on price range and volatility
LIMITATIONS
Calculation intensive on last bar (may cause slight delays)
Maximum 50 levels can be displayed simultaneously
Swing detection requires minimum 25 bars of history
VWAP calculations use price range as volume proxy when volume unavailable
NOTES
Levels are recalculated on each bar close
Confidence scores update dynamically with market conditions
Colors automatically adjust based on price position
All settings are saved with chart layout
═════════════════════════════════════════════════════════════════════════
Version: 3.0 | Build 2025.10
License: GNU GPL v3.0
© 2025 TwistedHWAY
═════════════════════════════════════════════════════════════════════════
Moving Averages Power
-----------------------------------------------------------------------------
This is a README in Pine Script format for TradingView publication.
It contains usage docs in comments and a no-op plot so it uploads without issue.
For the actual indicator, use: moving_averages_simple.pine
-----------------------------------------------------------------------------
plot(na) no-op to keep the script valid without drawing anything
=============================================================================
Moving Averages (5–4320) — Trend + Normalized Strength
=============================================================================
Lightweight indicator that plots up to 15 SMAs (5 → 4320) and shows a compact
table with each MA’s:
- Slope % (per-bar)
- Trend (Bullish/Bearish/Neutral)
- Normalized “Strength” bars comparable across MA lengths and, optionally,
across timeframes via ATR%
Not financial advice. For research/education only.
----------------------------------------------------------------------------
Scope
----------------------------------------------------------------------------
- Simple Moving Averages (SMA) only
- Periods: 5, 10, 20, 30, 60, 120, 160, 240, 480, 720, 960, 1440, 1750, 2880, 4320
- Overlays lines + end-of-series labels; adds a 4×16 table (bottom-right)
- Strength normalization modes: None, Length, ATR%, Length+ATR%
----------------------------------------------------------------------------
Key Features
----------------------------------------------------------------------------
- 15 SMA lines on one chart
- Line/label/table colors reflect trend:
• Bullish (slope > 0): green
• Bearish (slope < 0): red
• Neutral (otherwise): gray
- Normalized Strength bars comparable across MA lengths and (optionally) across
timeframes via ATR%
- Show/hide any SMA; adjustable font sizes for labels and table
----------------------------------------------------------------------------
Installation (TradingView)
----------------------------------------------------------------------------
1) Open TradingView → any chart → Pine Editor
2) Create a new script and paste the contents of moving_averages_simple.pine
3) Save → Add to chart
4) Open Settings to customize inputs
(This README.pine is just documentation. It does not draw lines or the table.)
----------------------------------------------------------------------------
Usage
----------------------------------------------------------------------------
Table columns:
- MA: the moving average period
- Slope %: per-bar percent change of the MA
slope% = 100 × (MA − MA ) / MA
- Trend: Bullish (green), Bearish (red), Neutral (gray)
- Strength: a bar of ▮ characters, computed from normalized strength and
clamped to a max (default 10 bars)
Strength normalization (S):
- None: S = |slope%|
- Length: S = |slope%| × (length / normRefLen)
- ATR%: S = |slope%| / ATR%, where ATR% = 100 × ATR(atrLen) / close
- Length+ATR%: S = (|slope%| × (length / normRefLen)) / ATR%
Bars: bars = floor(S / strengthStep), clamped to maxStrengthBars
Notes:
- normRefLen (default 240) stabilizes Length scaling across very short/long MAs
- In ATR modes, Strength is blank until ATR is ready (requires atrLen bars)
----------------------------------------------------------------------------
Inputs (Settings)
----------------------------------------------------------------------------
- Display: 15 toggles to show/hide SMA 5 … SMA 4320
- Text Settings: Label font size; Table font size
- Strength Settings:
• Strength normalization: None | Length | ATR% | Length+ATR%
• Strength step (normalized units): sensitivity of bar count
• Max bars: clamp for bar count (default 10)
• Normalization reference length: baseline for Length scaling (default 240)
• ATR Length (for ATR% normalization): ATR lookback for ATR%
----------------------------------------------------------------------------
Recommended presets
----------------------------------------------------------------------------
Intraday (e.g., BTCUSD, 1h):
- Normalization: Length+ATR%
- normRefLen: 240
- Strength step: 0.02–0.05
- Max bars: 10
- ATR Length: 14
Daily (e.g., AAPL, 1D):
- Normalization: Length
- normRefLen: 240–480
- Strength step: 0.01–0.03
- Max bars: 10
----------------------------------------------------------------------------
Calibration tips
----------------------------------------------------------------------------
Bars often maxed (pegged)?
- Increase Strength step (e.g., 0.01 → 0.03 → 0.05)
- Or increase normRefLen (e.g., 240 → 480 → 720)
Bars too few?
- Decrease Strength step (e.g., 0.02 → 0.01 → 0.005)
- Or decrease normRefLen (e.g., 240 → 120)
Cross-timeframe comparability:
- Prefer Length+ATR%; start with Strength step ≈ 0.02–0.05 and tune
----------------------------------------------------------------------------
Limitations
----------------------------------------------------------------------------
- SMA only (no EMA/WMA/etc.)
- Per-bar slope is timeframe-sensitive; use ATR% or Length+ATR% for better
cross-timeframe comparisons
- ATR modes require atrLen bars; Strength shows blank until ready
- Longest SMA (4320) needs sufficient chart history
----------------------------------------------------------------------------
Troubleshooting
----------------------------------------------------------------------------
- Strength always maxed:
• Using Length mode with too-small step → increase step and/or use Length+ATR%
• Review normRefLen (higher ref length dampens long MAs)
- Strength blank cells:
• In ATR modes, wait for atrLen bars or use Length mode
- Table bounds:
• If you customize periods or table size in the main script, keep header at
row 0 and at most 15 data rows (4×16 table)
----------------------------------------------------------------------------
Compatibility
----------------------------------------------------------------------------
- Pine Script v6
- Works on most symbols/timeframes with adequate history
----------------------------------------------------------------------------
Credits & Feedback
----------------------------------------------------------------------------
If you find this useful, consider sharing your preferred defaults (symbol/
timeframe) so better presets can be added. PRs/issues welcome in the repo.
Pump-Smart Shorting StrategyThis strategy is built to keep your portfolio hedged as much as possible while maximizing profitability. Shorts are opened after pumps cool off and on new highs (when safe), and closed quickly during strong upward moves or if stop loss/profit targets are hit. It uses visual overlays to clearly show when hedging is on, off, or blocked due to momentum, ensuring you’re protected in most market conditions but never short against the pump. Fast re-entry keeps the hedge active with minimal downtime.
Pump Detection:
RSI (Relative Strength Index): Calculated over a custom period (default 14 bars). If RSI rises above a threshold (default 70), the strategy considers the market to be in a pump (strong upward momentum).
Volume Spike: The current volume is compared to a 20-bar simple moving average of volume. If it exceeds the average by 1.5× and price increases at least 5% in one bar, pump conditions are triggered.
Price Jump: Measured by (close - close ) / close . A single-bar change > 5% helps confirm rapid momentum.
Pump Zone (No Short): If any of these conditions is true, an orange or red background is shown and shorts are blocked.
Cooldown and Re-Entry:
Cooldown Detection: After the pump ends, RSI must fall below a set value (default ≤ 60), and either volume returns towards average or price momentum is less than half the original spike (oneBarUp <= pctUp/2).
barsWait Parameter: You can specify a waiting period after cooldown before a short is allowed.
Short Entry After Pump/Cooldown: When these cooldown conditions are met, and no short is active, a blue background is shown and a short position is opened at the next signal.
New High Entry:
Lookback New High: If the current high is greater than the highest high in the last N bars (default 20), and pump is NOT active, a short can be opened.
Take Profit (TP) & Stop Loss (SL):
Take Profit: Short is closed if price falls to a threshold below the entry (minProfitPerc, default 2%).
Stop Loss: Short is closed if price rises to a threshold above the entry (stopLossPerc, default 6%).
Preemptive Exit:
Any time a pump is detected while a short position is open, the strategy closes the short immediately to avoid losses.
Visual Feedback:
Orange Background: Market is pumping, do not short.
Red Background: Other conditions block shorts (cooldown or waiting).
Blue Background: Shorts allowed.
Triangles/Circles: Mark entries, pump start/end, for clear trading signals.