Best SMA FinderThis script, Best SMA Finder, is a tool designed to identify the most robust simple moving average (SMA) length for a given chart, based on historical backtest performance. It evaluates hundreds of SMA values (from 10 to 1000) and selects the one that provides the best balance between profitability, consistency, and trade frequency.
What it does:
The script performs individual backtests for each SMA length using either "Long Only" or "Buy & Sell" logic, as selected by the user. For each tested SMA, it computes:
- Total number of trades
- Profit Factor (total profits / total losses)
- Win Rate
- A composite Robustness Score, which integrates Profit Factor, number of trades (log-scaled), and win rate.
Only SMA configurations that meet the user-defined minimum trade count are considered valid. Among all valid candidates, the script selects the SMA length with the highest robustness score and plots it on the chart.
How to use it:
- Choose the strategy type: "Long Only" or "Buy & Sell"
- Set the minimum trade count to filter out statistically irrelevant results
- Enable or disable the summary stats table (default: enabled)
The selected optimal SMA is plotted on the chart in blue. The optional table in the top-right corner shows the corresponding SMA length, trade count, Profit Factor, Win Rate, and Robustness Score for transparency.
Key Features:
- Exhaustive SMA optimization across 991 values
- Customizable trade direction and minimum trade filters
- In-chart visualization of results via table and plotted optimal SMA
- Uses a custom robustness formula to rank SMA lengths
Use cases:
Ideal for traders who want to backtest and auto-select a historically effective SMA without manual trial-and-error. Useful for swing and trend-following strategies across different timeframes.
📌 Limitations:
- Not a full trading strategy with position sizing or stop-loss logic
- Only one entry per direction at a time is allowed
- Designed for exploration and optimization, not as a ready-to-trade system
This script is open-source and built entirely from original code and logic. It does not replicate any closed-source script or reuse significant external open-source components.
Medie mobili
Momentum Pullback SignalsLong setup if all of these conditions are met:
EMA 50 > EMA 200 (trend filter)
Price ≤ EMA 50 × 1.003 (pullback zone)
Stoch %K crosses above %D and is below 20
Bullish engulfing candlestick
Volume ≥ Volume MA (20)
Short setup if all of these conditions are met:
EMA 50 < EMA 200 (trend filter)
Price ≥ EMA 50 × 0.997 (pullback zone)
Stoch %K crosses below %D and is above 80
Bearish engulfing candlestick
Volume ≥ Volume MA (20)
Machine Learning: ARIMA + SARIMADescription
The ARIMA (Autoregressive Integrated Moving Average) and SARIMA (Seasonal ARIMA) are advanced statistical models that use machine learning to forecast future price movements. It uses autoregression to find the relationship between observed data and its lagged observations. The data is differenced to make it more predictable. The MA component creates a dependency between observations and residual errors. The parameters are automatically adjusted to market conditions.
Differences
ARIMA - This excels at identifying trends in the form of directions
SARIMA - Incorporates seasonality. It's better at capturing patterns previously seen
How To Use
1. Model: Determine if you want to use ARIMA (better for direction) or SARIMA (better for overall prediction). You can click on the 'Show Historic Prediction' to see the direction of the previous candles. Green = forecast ending up, red = forecast ending down
2. Metrics: The RMSE% and MAPE are 10 day moving averages of the first 10 predictions made at candle close. They're error metrics that compare the observed data with the predicted data. It is better to use them when they're below 8%. Higher timeframes will be higher, as these models are partly mean-reverting and higher TFs tend to trend more. Better to compare RMSE% and MAPE with similar timeframes. They naturally lag as data is being collected
3. Parameter selection: The simpler, the better. Both are used for ARIMA(1,1,1) and SARIMA(1,1,1)(1,1,1)5. Increasing may cause overfitting
4. Training period: Keep at 50. Because of limitations in pine, higher values do not make for more powerful forecasts. They will only criminally lag. So best to keep between 20 and 80
Price-Confirmed Hull Moving AverageThis is a modified HULL moving average that adds some enhancements providing visual clues as to a change in trend direction. The user can add slight modifications to the abruptness of trend change indications, which are clearly seen by the color change of the hull line itself. The user can also choose to have the background color change for easier visual indication that the hull line has changed slope direction. In addition, the user can either have both the line and the background visuals on, or turn one or the other (or both) off.
The purpose of this HULL moving average is to provide easy identification of trend direction within the scope of the moving average values provided in settings.
WaveFunction MACD (TechnoBlooms)WaveFunction MACD — The Next Generation of Market Momentum
WaveFunction MACD is an advanced hybrid momentum indicator that merges:
• The classical MACD crossover logic (based on moving averages)
• Wave physics (modeled through phase energy and cosine functions)
• Hilbert Transform theory from signal processing
• The concept of a wavefunction from quantum mechanics, where price action is seen as a probabilistic energy wave—not just a trend.
✨ Key Features of WaveFunction MACD
• Wave Energy Logic : Instead of using just price and MA differences, this indicator computes phase-corrected momentum using the cosine of the wave phase angle — revealing the true energy behind market moves.
• Phase-Based Trend Detection : It reads cycle phases using Hilbert Transform-like logic, allowing you to spot momentum before it becomes visible in price.
• Ultra-Smooth Flow : The main line and histogram are built to follow price flow smoothly — eliminating much of the noise found in traditional MACD indicators.
• Signal Amplification via Energy Histogram : The histogram doesn’t just show momentum changes — it shows the intensity of wave energy, allowing you to confirm the strength of the trend.
• Physics-Driven Structure : The algorithm is rooted in real-world wave mechanics, bringing a scientific edge to trading — ideal for traders who believe in natural models like cycles and harmonics.
• Trend Confirmation & Early Reversals : It can confirm strong trends and also catch subtle shifts that often precede big reversals — giving you both reliability and anticipation.
• Ready for Fusion : Designed to work seamlessly with liquidity zones, price action, order blocks, and structure trading — a perfect fit for modern trading systems.
🧪 The Science Behind It
This tool blends:
• Hilbert Transform: Measures the phase of a waveform (price cycle) to detect turning points
• Cosine Phase Energy: Calculates true wave energy using the cosine of the phase angle, revealing the strength behind price movements
• Quantum Modeling: Views price like a wavefunction, offering predictive insight based on phase dynamics
weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol
UltraAlgoguy Shortband [CuriousB]short term bands of ultra guppy...load last . too many plots so had to break it up into 3 parts: shortbands, longbands and oscillators
Automatic HTF MA CloudsAutomatically display higher time frame HTF clouds based on presets.
Fifteen selections in total. Default settings based on Barky's DTF concepts.
Five presets left blank.
A simple table display CTF and HTF. Can be turned off in settings.
CTF1 1m → HTF1 5m
CTF2 2m → HTF2 10m
CTF3 10m → HTF3 1h
CTF4 1h → HTF4 4h
CTF5 4h → HTF5 1d
CTF6 1d → HTF6 1w
CTF7 1w → HTF7 1M
CTF8 1M → HTF8 3M
CTF9 3M → HTF9 6M
CTF10 6M → HTF10 12M
CTF11 blank → HTF11 blank
CTF12 blank → HTF12 blank
CTF13 blank → HTF13 blank
CTF14 blank → HTF14 blank
CTF15 blank → HTF15 blank
Distance to EMASimple indicator to show the distance to the H1 50 EMA in a number of common time frames below and above. Useful as a quick glance to spot divergences in price before a reversion to the mean / polarity reversal.
Note that this is multi-timeframe but the distances are calculated differently depending upon context.
There are some presets where the distance is calculated to the H1 50 EMA when in timeframes below this:
M1, M4, M15 & H1 all calculate based upon the price distance to the H1 50 EMA, since this is a useful directional indicator for lower timeframes to see where we are wrt H1 without having to switch.
However above the H1, there's H4, H8 and H12 presets - but these use the 1D 50 EMA since I generally use these in HTF calculations.
Any other timeframe will use whatever the indicator is set up as in the options menu.
UM Dual MA with Price Bar Color change & Fill
Description
This is a dual moving average indicator with colored bars and moving averages. I wrote this indicator to keep myself on the right side of the market and trends. It plots two moving averages, (length and type of MA are user-defined) and colors the MAs green when trending higher or red when trending lower. The price bars are green when both MAs are green, red when both MAs are red, and orange when one MA is green and the other is red. The idea behind the indicator is to be extremely visual. If I am buying a red bar, I ask myself "why?" If I am selling a green bar, again, "why?"
Recommended Usage
Configure your tow favorite Moving averages. Consider long positions when one or both turn green. Scale into a position with a portion upon the first MA turning green, and then more when the second turns green. Consider scaling out when the bars are orange after an up move.
Orange bars are either areas of consolidation or prior to major turns.
You can also look for MA crossovers.
The indicator works on any timeframe and any security. I use it on daily, hourly, 2 day charts.
Default settings
The defaults are the author's preferred settings:
- 8 period WMA and 16 period WMA.
- Bars are green when both MAs are trending higher, red when both MAs are trending lower, and orange when one MA is trending higher and the other is trending lower.
Moving average types, lengths, and colors are user-configurable. Bar colors are also user-configurable.
Alerts
Alerts can be set by right-clicking the indicator and selecting the dropdown:
- Bullish Trend Both MAs turning green
- Bearish Trend Both MAs turning red
- Mixed Trend, 1 green 1 red MA
Helpful Hints:
Look for bullish areas when both MAs turn green after a sustained downtrend
Look for bearish areas when both MAs turn red
Careful in areas of orange bars, this could be a consolidation or a warning to a potential trend direction change.
Switch up your timeframes, I toggle back and forth between 1 and 2 days.
Stretch your timeframe over a lower time frame; for example, I like the 8 and 16 daily WMA. With most securities I get 16 bars with pre and post market. This translates into 128 and 256 MAs on the hourly chart. This slows down moves and color transitions for better manageability.
Author's Subjective Observations
I like the 128/256 WMA on the hourly charts for leveraged and inverse ETFs such as SPXL/SPXS, TQQQ/SQQQ, TNA/TZA. Or even the volatility ETFs/ETNS: UVXY, VXX.
Here is a one-hour chart example:
I have noticed that as volatility increases, I should begin looking at higher timeframes. This seems counterintuitive, but higher volatility increases the level of noise or swings.
I question myself when I short a green bar or buy a red bar; "Why am I doing this?" The colors help me visually stay on the right side of trend. If I am going to speculate on a market turn, at least do it when the bars are orange (MA trends differ)
My last observation is a 2-day chart of leveraged ETFs with the 8 and 16 WMAs. I frequently trade SPXL, FNGA, and TNA. If you are really dissecting this indicator,
look at a few 2-day charts. 2-day charts seem to catch the major swings nicely up and down. They also weed out the daily sudden big swings such as a panic move from economic data
or tweets. When both the MAs turn red on a 2-day chart the same day or same bar, beware; this could be a rough ride or short opportunity. I found weekly charts too long for my style but good
to review for direction. Less decisions on longer charts equate to less brain damage for myself.
These are just my thoughts, of course you do you and what suits your style best! Happy Trading.
Institutional Support/Resistance Locator🏛️ Institutional Support/Resistance Locator
Overview
The Institutional Support/Resistance Locator identifies high-probability demand and supply zones based on strong price rejection, large candle bodies, and elevated volume . These zones are commonly targeted or defended by institutional participants, helping traders anticipate potential reversal or continuation areas.
⸻
How It Works
The indicator uses a confluence of conditions to detect zones:
• Large Body Candles: Body size must exceed the moving average body size multiplied by a user-defined factor.
• High Volume: Volume must exceed the moving average volume by a configurable multiplier.
• Wick Rejection: Candles must show strong upper or lower wicks indicating aggressive rejection.
• If all criteria are met:
• Bullish candles form a Demand Zone.
• Bearish candles form a Supply Zone.
Each zone is plotted for a customizable number of future bars, representing areas where institutions may re-engage with the market.
⸻
Key Features
• ✅ Highlights institutional demand and supply areas dynamically
• ✅ Customizable sensitivity: body, volume, wick, padding, and zone extension
• ✅ Zones plotted as translucent regions with auto-expiry
• ✅ Works across all timeframes and markets
⸻
How to Use
• Trend Traders: Use demand zones for potential bounce entries in uptrends, and supply zones for pullback short entries in downtrends.
• Range Traders: Use zones as potential reversal points inside sideways market structures.
• Scalpers & Intraday Traders: Combine with volume or price action near zones for refined entries.
Always validate zone reactions with supporting indicators or price behavior.
⸻
Why This Combination?
The combination of wick rejection, volume confirmation, and large candle structure is designed to reflect footprints of smart money. Rather than relying on fixed pivots or subjective zones, this logic adapts to the current market context with statistically grounded conditions.
⸻
Why It’s Worth Using
This tool offers traders a structured way to interpret institutional activity on charts without relying on guesswork. By plotting potential high-impact areas, it helps improve reaction time.
⸻
Note :
• This script is open-source and non-commercial.
• No performance guarantees or unrealistic claims are made.
• It is intended for educational and analytical purposes only.
Triangle Breakout Strategy with TP/SL, EMA Filter📌 Triangle Breakout Strategy with TP/SL, EMA Filters, and Backtest – Explained.
✅ 1. Pattern Detection – Triangle Breakout
The script scans for triangle patterns by detecting local pivot highs and pivot lows.
It uses two recent highs and two recent lows to draw converging trendlines (upper and lower boundaries of the triangle).
If the price breaks above the upper trendline, a bullish breakout signal is generated.
🎯 2. TP (Take Profit) & SL (Stop Loss)
When a bullish breakout is detected:
A buy order is placed using strategy.entry.
TP and SL levels are calculated relative to the current close price:
TP = 3% above the entry price
SL = 1.5% below the entry price
These are defined using strategy.exit.
📊 3. EMA Filter
An optional filter checks if:
Price is above both EMA 20 and EMA 50
Only if this condition is met, the strategy allows a long entry.
You can toggle the filter on or off with useEMAFilter.
📈 4. Backtesting with Strategy Tester
This script uses strategy() instead of indicator() to enable TradingView’s built-in backtest engine.
Every buy entry and exit (based on TP or SL) is recorded.
📌 5. Visuals
EMA 20 and EMA 50 lines are plotted on the chart.
A label is shown when a breakout is detected: "Breakout Up"
Results (profit, win rate, drawdown, etc.) can be viewed in the Strategy Tester panel.
21 EMA + VWAP Trend Bias
21 EMA + VWAP Trend Bias
This indicator combines the 21-period Exponential Moving Average (EMA) and the Volume-Weighted Average Price (VWAP) to provide a simple yet effective visual trend bias tool.
🔍 Core Features:
21 EMA Line (Orange): Tracks the short-to-mid-term price trend.
VWAP Line (Blue): Reflects the average trading price, weighted by volume, often used by institutional traders.
Trend Bias Highlight:
Green Background: Bullish bias — price is above both the 21 EMA and VWAP.
Red Background: Bearish bias — price is below both the 21 EMA and VWAP.
No Background: Neutral or mixed signals.
⚙️ Use Cases:
Quickly assess market trend direction at a glance.
Confirm entry or exit signals with dual-layer trend validation.
Great for intraday and swing traders who value clean, unobtrusive chart setups.
Dskyz (DAFE) GENESIS Dskyz (DAFE) GENESIS: Adaptive Quant, Real Regime Power
Let’s be honest: Most published strategies on TradingView look nearly identical—copy-paste “open-source quant,” generic “adaptive” buzzwords, the same shallow explanations. I’ve even fallen into this trap with my own previously posted strategies. Not this time.
What Makes This Unique
GENESIS is not a black-box mashup or a pre-built template. It’s the culmination of DAFE’s own adaptive, multi-factor, regime-aware quant engine—built to outperform, survive, and visualize live edge in anything from NQ/MNQ to stocks and crypto.
True multi-factor core: Volume/price imbalances, trend shifts, volatility compression/expansion, and RSI all interlock for signal creation.
Adaptive regime logic: Trades only in healthy, actionable conditions—no “one-size-fits-all” signals.
Momentum normalization: Uses rolling, percentile-based fast/slow EMA differentials, ALWAYS normalized, ALWAYS relevant—no “is it working?” ambiguity.
Position sizing that adapts: Not fixed-lot, not naive—not a loophole for revenge trading.
No hidden DCA or pyramiding—what you see is what you trade.
Dashboard and visual system: Directly connected to internal logic. If it’s shown, it’s used—and nothing cosmetic is presented on your chart that isn’t quantifiable.
Inputs and What They Mean (Read Carefully)
📊 Main Signal Inputs
Maximum Raw Score: How many distinct factors can contribute to regime/trade confidence (default 4). If you extend the quant logic, increase this.
RSI Length / Min RSI for Shorts / Max RSI for Longs: Fine-tunes how “overbought/oversold” matters; increase the length for smoother swings, tighten floors/ceilings for more extreme signals.
⚡ Regime & Momentum Gates
Min Normed Momentum/Score (Conf): Raise to demand only the strongest trends—your filter to avoid algorithmic chop.
🕒 Volatility & Session
ATR Lookback, ATR Low/High Percentile: These control your system’s awareness of when the market is dead or ultra-volatile. All sizing and filter logic adapts in real time.
Trading Session (hours): Easy filter for when entries are allowed; default is regular trading hours—no surprise overnight fills.
📊 Sizing & Risk
Max Dollar Risk / Base-Max Contracts: All sizing is adaptive, based on live regime and volatility state—never static or “just 1 contract.” Control your max exposures and real $ risk.
🔄 Exits & Scaling
Stop/Trail/Scale multipliers: You choose how dynamic/flexible risk controls and profit-taking need to be. ATR-based, so everything auto-adjusts to the current market mode.
Visuals That Actually Matter
Dashboard (Top Right): Shows only live, relevant stats: scoring, status, position size, win %, win streak, total wins—all from actual trade engine state (not “simulated”).
Watermark (Bottom Right): Momentum bar visual is always-on, regime-aware, reflecting live regime confidence and momentum normalization. If the bar is empty, you’re truly in no-momentum. If it glows lime, you’re riding the strongest possible edge.
*No cosmetics, no hidden code distractions.
Why It Wins
While others put out “AI-powered” strategies with little logic or soul, GENESIS is ruthlessly practical. It is built around what keeps traders alive:
- Context-aware signals, not just patterns
- Tight, transparent risk
- Inputs that adapt, not confuse
- Visuals that clarify, not distract
- Code that runs clean, efficient, and with minimal overfitting risk (try it on QQQ, AMD, SOL, etc. out of the box)
Disclaimer (for TradingView compliance):
Trading is risky. Futures, stocks, and crypto can result in significant losses. Do not trade with funds you cannot afford to lose. This is for educational and informational purposes only. Use in simulation/backtest mode before live trading. No past performance is indicative of future results. Always understand your risk and ownership of your trades.
Personal Note to Mods and Traders:
Yes, this statement is DIFFERENT, because this script IS different. If you see this taken down for some technicality (charting labels etc.), know I will fix, adapt, and repost until the system and its truth are visible to the community.
This will not be my last—my goal is to keep raising the bar until DAFE is a brand or I’m forced to take this private.
Use with discipline, use with clarity, and always trade smarter.
— Dskyz, powered by DAFE Trading Systems.
XAUUSA Sniping SMA by Time/Trend with BBPT trend alignmentThis indicator is designed to trade XAUUSD and has defaults set during the hours (Central Time) that gold usually falls and when it usually rises. Using the input form defaults and a 1 to 3 minute timeframe on your chart is best. Don't take trades during the no-trade times (white line) and do trade when the line changes to either green or red. The first few bars going with the trend are high probability but as the trend fades the line will change to orange (caution signal) when the trend is likely over for the moment. This indicator is best used with the BBPT indicator that shows bull/bear strength. When the BBPT trend line is rising, pair with the green line in this indicator and when the BBPT trend is falling pair with the red line in this indicator for some high probability trades.
50 & 200 SMA Death CrossSimple 50 and 200 Simple Moving Average Script with customizations. You can use these on the Daily Timeframe to confirm the "Death Cross" when trading Bitcoin. Right before the "Death Cross" happens the price usually dumps, and Right as they cross the price usually pumps. (Bitcoin must be in a bull market already)
Created by: Dan Heilman (www.youtube.com)
ES/MES 5-of-9 Strategy w/ Alerts, Stops & TP Targets✅ Strategy Summary: ES/MES 5-of-9 Confluence Script
📊 Entry System
9 indicators used for signal confluence:
EMA (20 & 50 crossover + price location)
RSI (momentum confirmation)
MACD (trend/momentum confirmation)
VWAP (institutional sentiment)
Bollinger Bands (volatility breakout)
Stochastic Oscillator (reversal potential)
OBV (volume trend confirmation)
ATR (volatility context)
Optional Fibonacci (manual)
Entry Trigger: When 5 or more of the 9 indicators align in one direction
Separate conditions for long and short entries
🔔 Alerts
Built-in TradingView alerts for:
✅ Long Entry Alert (5+ bullish signals)
✅ Short Entry Alert (5+ bearish signals)
📈 Chart Visuals
📍 Entry markers:
Green triangle below bar = Long Entry
Red triangle above bar = Short Entry
🧮 Live Score Label (displays “Score: X/9” above the bar)
🛑 Trailing Stop Suggestions
📉 ATR-based trailing stop
Customizable multiplier (default: 1.5x ATR)
Plotted at entry
📉 EMA20 trailing stop
Optional second dynamic stop guide
🎯 Take-Profit Levels
Automatically calculated from entry price using ATR risk distance:
TP1 = 1:1 Risk/Reward (customizable)
TP2 = 2:1 Risk/Reward (customizable)
Plotted as horizontal lines for both long and short entries
⚙️ User Controls
Toggle visibility for:
ATR trailing stop
EMA20 trailing stop
Take-profit lines
Customizable inputs for:
ATR multiplier
Risk-reward ratios (TP1 & TP2)
Momentum Pullback ScalpingThis strategy is based solely on the "Momentum Pullback Signals" TradingView indicator. This strategy was developed exclusively for scalping trading in the 1-minute timeframe. For each trade, the level of loss is placed 0.3% above/below the entry price. Each trade has a fixed risk-to-reward ratio of 4:1. That's risk management. If you want to know the technical trading analysis for each trade, you have to look at the corresponding indicator. It will be there. You can look at several markets with this strategy and see which one suits you best.
Close Price - EMA Distance (10, 21, 50)this is script to show differnce between price and three moving average i.e 10, 21, and 50on closing basis
FVG Alerts (Vortus)Fair Value Gaps (FVGs) represent price inefficiencies where buying and selling volumes are imbalanced, creating gaps between the wicks of consecutive candles. These gaps often act as magnets for price, as markets tend to "fill" these gaps before resuming their trend.
Shade Between 9 EMA and 20 EMAThis indicator shades the area between the 9 EMA and the 20 EMA.
The wider the area of shade, the stronger the trend and momentum. If the shaded area is more narrow, that tells you to possibly take caution as there is no clear trend yet.
Volume towers by GSK-VIZAG-AP-INDIAVolume Towers by GSK-VIZAG-AP-INDIA
Overview :
This Pine Script visualizes volume activity and provides insights into market sentiment through the display of buying and selling volume, alongside moving averages. It highlights high and low volume candles, enabling traders to make informed decisions based on volume anomalies. The script is designed to identify key volume conditions, such as below-average volume, high-volume candles, and their relationship to price movement.
Script Details:
The script calculates a Simple Moving Average (SMA) of the volume over a user-defined period and categorizes volume into several states:
Below Average Volume: Volume is below the moving average.
High Volume: Volume exceeds the moving average by a multiplier (configurable by the user).
Low Volume: Volume that doesn’t qualify as either high or below average.
Additionally, the script distinguishes between buying volume (when the close is higher than the open) and selling volume (when the close is lower than the open). This categorization is color-coded for better visualization:
Green: Below average buying volume.
Red: Below average selling volume.
Blue: High-volume buying.
Purple: High-volume selling.
Black: Low volume.
The Volume Moving Average (SMA) is plotted as a reference line, helping users identify trends in volume over time.
Features & Customization:
Customizable Inputs:
Volume MA Length: The period for calculating the volume moving average (default is 20).
High Volume Multiplier: A multiplier for defining high volume conditions (default is 2.0).
Color-Coded Volume Histograms:
Different colors are used for buying and selling volume, as well as high and low-volume candles, for quick visual analysis.
Alerts:
Alerts can be set for the following conditions:
Below-average buying volume.
Below-average selling volume.
High-volume conditions.
How It Works:
Volume Moving Average (SMA) is calculated using the user-defined period (length), and it acts as the baseline for categorizing volume.
Volume Conditions:
Below Average Volume: Identifies candles with volume below the SMA.
High Volume: Identifies candles where volume exceeds the SMA by the set multiplier (highVolumeMultiplier).
Low Volume: When volume is neither high nor below average.
Buying and Selling Volume:
The script identifies buying and selling volume based on the closing price relative to the opening price:
Buying Volume: When the close is greater than the open.
Selling Volume: When the close is less than the open.
Volume histograms are then plotted using the respective colors for quick visualization of volume trends.
User Interface & Settings:
Inputs:
Volume MA Length: Adjust the period for the volume moving average.
High Volume Multiplier: Define the multiplier for high volume conditions.
Plots:
Buying Volume: Green bars indicate buying volume.
Selling Volume: Red bars indicate selling volume.
High Volume: Blue or purple bars for high-volume candles.
Low Volume: Black bars for low-volume candles.
Volume Moving Average Line: Displays the moving average line for reference.
Source Code / Authorship:
Author: prowelltraders
Disclaimer:
This script is intended for educational purposes only. While it visualizes important volume data, users are encouraged to perform their own research and testing before applying this script for trading decisions. No guarantees are made regarding the effectiveness of this script for real-world trading.
Contact & Support:
For questions, support, or feedback, please reach out to the author directly through TradingView (prowelltraders).
Signature:
GSK-VIZAG-AP-INDIA