Moving Volume-Weighted Avg Price, % Channel, BBsThis script includes:
- Moving Volume-Weighted Average Price line.
- User-defined % band above and below, very useful for "breakout" signals, and mentally adjusting to the magnitude of price swings when viewing an automatic scale on the price axis.
- Volume-Weighted Bollinger Bands, which are more sensitive to volume.
More detail:
- This is like TV's basic VWAP in concept, except the major flaw in that is that it has reset periods that you can't override, and the volume is cumulative until the next hard reset. The 'reset' is OK for securities trading, that resets every day anyway. But not for crypto - and not if/when securities trading goes 24/7. Also, the denominator accumulating over the entire period is also *not* OK, because then what is shown means something different as the day progresses - which kind of makes it useless. In other words, it starts out very sensitive to volume, and gets progressively more numb to it as they day progresses, and starts flattening out.
- This fixes both problems, by using a user-definable moving window for the average. Essentially combining SMA with volume-weighting.
- You may also find an invaluable trading aid, in the % bands above and below.
- What can optionally be shown is standard deviation bands, aka Bollinger bands. The advantage over regular BB is that it's volume-weighted. Since it is already calculated on a moving average, the period for the standard deviation has been shortened by default, and the magnitude increased, to better approximate regular Bollinger Bands - but it's still more responsive to volume.
Moving Averages
Granville's 8 Rules Visualizer 🧠 Granville’s 8 Rules Indicator
I’ve created a Pine Script indicator that visually implements **Granville’s Eight Rules**, one of the foundational theories for price movement relative to a moving average (MA). This tool helps traders better time entries and exits based on momentum shifts and MA behavior.
---
### 📈 What is Granville’s Law?
Joseph Granville’s theory suggests that **price and moving average (typically SMA)** interactions produce **8 recurring signals**:
* **4 Buy signals** (B1–B4)
* **4 Sell signals** (S1–S4)
These rules help identify the beginning or continuation of bullish and bearish trends.
---
### 🔍 Indicator Logic
This indicator uses a simple 20-period SMA (modifiable) and tracks price action in relation to it. Each signal is drawn as a triangle with a label (`B1` to `B4` or `S1` to `S4`), based on the following rules:
#### ✅ Buy Signals:
* **B1**: Price crosses above a rising MA (classic breakout)
* **B2**: Price pulls back below a rising MA, then begins rising again
* **B3**: Price bounces off a falling MA
* **B4**: Price is above a rising MA but temporarily drops
#### ❌ Sell Signals:
* **S1**: Price crosses below a falling MA
* **S2**: Price pulls back above a falling MA, then starts dropping again
* **S3**: Price bounces down off a rising MA
* **S4**: Price is below a falling MA but temporarily rises
---
### 🛠 How to Use It:
1. **Trend Confirmation**: Use the moving average slope (rising or falling) as your trend filter.
2. **Entry Timing**: Look for Buy signals (B1–B4) in uptrends and Sell signals (S1–S4) in downtrends.
3. **Avoid Noise**: Combine with volume or volatility filters (e.g. ATR or squeeze) to eliminate weak setups.
4. **Customize**: Adjust the MA type or length to fit your market (e.g. EMA for crypto, SMA for FX).
---
### 💡 Example Strategies:
* Pair **B1 + rising volume** for early trend entries
* Use **B2/B4** for retracement-based entries
* Exit on **S3/S4** for profit taking or stop logic
Happy trading!
Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown)This custom Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown) indicator combines the advantages of Heikin-Ashi candles with the flexibility of multiple moving averages and smoothing options. The built-in buy/sell signals with cooldown functionality help traders avoid overtrading while capturing trend reversals and momentum shifts. Whether you're a day trader, swing trader, or long-term investor, this indicator offers powerful tools for analyzing price action and making informed trading decisions.
Note: Disable the regular candle to get better visualization.
Key Features:
Custom Heikin-Ashi Candles:
The core feature of this script is the Heikin-Ashi candles, which are known for smoothing price action and helping traders identify market trends more clearly.
Unlike traditional Heikin-Ashi, this version adjusts the Heikin-Ashi close based on specific price action patterns, including rejection signals and engulfing patterns.
The custom Heikin-Ashi open also incorporates momentum, adjusting dynamically based on recent price changes.
Price Action Measurements:
The indicator measures key price action components, including:
Body: The absolute difference between the open and close.
Candle Range: The total range from high to low.
Upper Wick: The distance from the highest price to the maximum of open or close.
Lower Wick: The distance from the lowest price to the minimum of open or close.
These measurements help detect bullish and bearish conditions, as well as price rejection signals.
Buy/Sell Signal Logic:
Buy Signal: Triggered when the Heikin-Ashi close is above the chosen moving average (MA1), with a cooldown period to avoid too frequent signals.
Sell Signal: Triggered when the Heikin-Ashi close falls below the MA1 after a buy signal has already been issued.
The cooldown period ensures that buy and sell signals are spaced apart by a specific number of bars, preventing excessive signal generation during periods of price consolidation.
Multiple Moving Averages (MA):
This script supports up to three customizable moving averages (MA1, MA2, MA3), each of which can be set to different types and lengths, including:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Volume Weighted Moving Average (VWMA)
Volume Weighted Moving Price (VWMP)
Least Squares Moving Average (LSMA)
Hull Moving Average (HMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Users can adjust the length and type of each MA for tailored analysis.
Smoothing Options for MAs:
Users can smooth the output of MAs using various types of smoothing algorithms (SMA, EMA, LSMA, WMA, Gaussian) and a customizable length. This helps to reduce noise in the moving average lines and provides clearer signals.
Gaussian Filter (Advanced Smoothing):
A Gaussian Filter is available as a smoothing option for MAs. This filter reduces noise and makes the moving averages smoother, which can be particularly helpful in volatile or choppy markets.
Alerts and Visualization:
The script allows users to plot buy and sell signals on the chart with distinctive markers. A Buy Signal is shown below the bar with a lime green marker and text "Buy," while a Sell Signal is shown above the bar with a red marker and text "Sell."
Traders can also set up alerts based on the buy/sell signals to get notified in real time.
Indicator Configuration:
Heikin-Ashi Candle Configuration:
Automatically adjusts Heikin-Ashi candles based on rejection signals, engulfing patterns, and momentum. It uses custom formulas for the Heikin-Ashi open and close, making it more sensitive to price action than standard Heikin-Ashi candles.
Moving Averages (MA) Configuration:
You can select from multiple moving average types and lengths (MA1, MA2, MA3) for trend-following analysis.
Choose between SMA, EMA, WMA, VWMA, VWMP, LSMA, HMA, DEMA, and TEMA.
Smoothing Options:
Enable or disable smoothing for the moving averages.
Select from different smoothing types, including SMA, EMA, RMA, WMA, LSMA, and Gaussian.
Cooldown Period:
Control the number of bars that must pass before a new buy/sell signal is triggered. This cooldown period helps prevent excessive trading signals in quick succession.
How to Use:
Analyze Price Action with Heikin-Ashi Candles:
The custom Heikin-Ashi candles are ideal for spotting market trends, reversals, and price rejection. Use the candle patterns to gauge the market sentiment.
Use MAs for Trend Confirmation:
The moving averages (MA1, MA2, MA3) can help identify the prevailing trend. A price above a rising MA indicates an uptrend, while a price below a falling MA suggests a downtrend.
Trigger Buy and Sell Signals:
When the Heikin-Ashi close crosses above MA1, a buy signal is triggered.
When the Heikin-Ashi close crosses below MA1 after a buy signal, a sell signal is triggered.
The cooldown period ensures that signals are spaced out, preventing overtrading.
Use Smoothing for Clearer Signals:
If you are trading in a volatile market, you can use the smoothing options to make the MAs smoother and reduce noise.
DavSabs - Triple EMA 5>10 strategy + MACD and RSIThis is one of my favorite buy sell strategies and I'm holding on to this for now.
I have perfected buy sell signals with shorter EMA and made soft red and green if MACD and RSI is not supporting the buy.
Strong Green Buy signal = 5>10 EMA AND price over 30 EMA.
Soft Green if buy green signal = above and MACD < signal line or RSI < RSI-based EMA
Strong RED Sell signal = Price close below 10 EMA
Soft Red sell signal = above and MACD > signal line or RSI > RSI-based EMA
Always add your own analysis.
Best EMA FinderBASED ON BEST SMA FINDER BY Julien_Eche
Purpose
Identifies the single most robust exponential moving average (EMA) length on any chart by backtesting every EMA from 10 to 1000 periods and ranking them by a custom “robustness” score.
Core Logic
Backtest loop: For each EMA length, run either a “Long Only” or “Buy & Sell” backtest.
Metrics computed:
Total trades
Profit factor (gross profit / gross loss)
Win rate
Robustness score = Profit Factor × √(Win Rate) × log(Trades)
Filter: Discard any EMA with fewer trades than the user‐defined minimum.
Select: Choose the EMA length with the highest robustness score.
Visualization
Plots the optimal EMA in blue on your chart.
Optionally displays a table (top-right) showing the chosen EMA length, trade count, profit factor, win rate, and robustness score.
User Inputs
Strategy Type: “Long Only” or “Buy & Sell”
Minimum Trades: Exclude under-sampled EMAs
Show Stats Table: Toggle summary display
Use Case
Perfect for traders who want to automatically pick an EMA that’s historically balanced between profitability and consistency—no manual trial-and-error needed.
Limitations
No position sizing, stops, or profit targets
Only one open trade per direction
Intended as an exploratory optimization tool, not a full trading system.
EMA 5-8-13-21// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © abrahamsvm
//@version=5
indicator(title="EMA 5-8-13-21", shorttitle="EMA Multi", overlay=true)
// EMA uzunlukları
ema5 = ta.ema(close, 5)
ema8 = ta.ema(close, 8)
ema13 = ta.ema(close, 13)
ema21 = ta.ema(close, 21)
// EMA çizimi
plot(ema5, color=color.red, title="EMA 5", linewidth=2)
plot(ema8, color=color.orange, title="EMA 8", linewidth=2)
plot(ema13, color=color.blue, title="EMA 13", linewidth=2)
plot(ema21, color=color.green, title="EMA 21", linewidth=2)
US30 HMA Signal v2.8Indicator Description – US30 HMA Signal v2.8
Overview:
The US30 HMA Signal indicator is designed to generate Buy and Sell signals based on the crossover of three Hull Moving Averages (HMAs). The indicator focuses on identifying momentum shifts and directional bias using the 9, 21, and 50 HMA structures, optimised for the US30 (Dow Jones) index.
⸻
Indicator Components:
1. Hull Moving Averages (HMAs):
• 9 HMA (Green): Fastest HMA, responds quickly to price changes.
• 21 HMA (Amber): Medium-term HMA, acts as a transitional filter.
• 50 HMA (Red): Slowest HMA, defines the broader trend direction.
⸻
Logic and Signal Conditions:
1. Session Filter:
• Signals are only generated during the US session, defined as starting at 13:30 BST.
2. Directional Bias:
• Bullish Bias: Occurs when both the 9 HMA and 21 HMA are above the 50 HMA.
• Bearish Bias: Occurs when both the 9 HMA and 21 HMA are below the 50 HMA.
3. Crossover Logic:
• Buy Signal: Prints when the 9 HMA crosses above the 21 HMA while the directional bias is bullish.
• Sell Signal: Prints when the 9 HMA crosses below the 21 HMA while the directional bias is bearish.
4. Minimum Bar Spacing:
• To avoid signal clustering, a minimum bar spacing of 5 bars is implemented between consecutive signals.
⸻
Plotting:
• Buy Signal: Displays as a green label below the candle with the text “BUY.”
• Sell Signal: Displays as a red label above the candle with the text “SELL.”
⸻
Purpose and Usage:
• The indicator is designed for traders looking to capture momentum shifts in the US30 index using HMA crossovers.
• It is best applied on the 5-minute timeframe to balance signal frequency and reliability.
• The strict session filter ensures signals are only generated during the most volatile period, aligning with US market activity.
SMA 100/200The indicator shows the 100 and 200-period SMAs. It can be used to gauge the long-term market trend and useful infliction points.
Relative Strenght for the last 6 months//@version=5
indicator("Relative Strength with CNX500 for the last 6 months", overlay=true)
// Define the date 1 year ago
oneYearAgo = timenow - 31536000000 // milliseconds in one year (365 days)
sixMonthsAgo = timenow - 15778560000
// Your chart EMA50 (1D)
chart_ema50 = request.security(syminfo.tickerid, 'D', ta.ema(close, 50))
// CNX500 EMA50 (1D)
cnx500_close = request.security("NSE:CNX500", 'D', close)
cnx500_ema50 = ta.ema(cnx500_close, 50)
// Initialize constant scale factor only at the first bar
var float constant_factor = na
if na(constant_factor) and time >= sixMonthsAgo
constant_factor := cnx500_ema50 / chart_ema50
// Scale CNX500 EMA50 using the constant factor
cnx500_ema50_scaled = cnx500_ema50 / constant_factor
// Plot EMAs for visual comparison
plot(chart_ema50, color=color.yellow, linewidth=2, title="Chart EMA50")
plot(cnx500_ema50_scaled, color=color.blue, linewidth=2, title="CNX500 EMA50 (Constant Scaled)")
// Calculate gap and percentage gap
ema_gap = chart_ema50 - cnx500_ema50_scaled
percent_gap = (ema_gap / chart_ema50) * 100
// Initialize counters for cumulative calculation
var float total_gap = 0.0
var float total_percent_gap = 0.0
var int bar_count = 0
// Sum gaps from 6 months ago to today
if time >= sixMonthsAgo
total_gap += ema_gap
total_percent_gap += percent_gap
bar_count += 1
// Calculate average signed gaps
avg_gap = bar_count > 0 ? total_gap / bar_count : na
avg_percent_gap = bar_count > 0 ? total_percent_gap / bar_count : na
// Display a summary table at bottom-right
var table summaryTable = table.new(position.bottom_right, 2, 3, bgcolor=color.rgb(0, 0, 0, 20))
if barstate.islast
table.cell(summaryTable, 0, 0, "Avg. Gap (signed):", text_color=color.white, text_size=size.small)
table.cell(summaryTable, 1, 0, str.tostring(avg_gap, format="#.##"), text_color=avg_gap > 0 ? color.green : color.red, text_size=size.small)
table.cell(summaryTable, 0, 1, "Avg. % Gap (signed):", text_color=color.white, text_size=size.small)
table.cell(summaryTable, 1, 1, str.tostring(avg_percent_gap, format="#.##") + " %", text_color=avg_percent_gap > 0 ? color.green : color.red, text_size=size.small)
table.cell(summaryTable, 0, 2, "Bars counted:", text_color=color.white, text_size=size.small)
table.cell(summaryTable, 1, 2, str.tostring(bar_count), text_color=color.gray, text_size=size.small)
4h EMAThis script plots an Exponential Moving Average (EMA) based on the 4-hour timeframe, regardless of the chart’s current timeframe. It's useful for traders who want to track higher timeframe trends while trading on lower timeframes.
Daily EMAThis script displays the Exponential Moving Average (EMA) calculated on the daily timeframe, regardless of the chart's current timeframe. It's designed for intraday traders who want to use the daily EMA as a reference for identifying key support/resistance levels or higher time frame trends.
siqbots 10,21,50
A ribbon for the 10 and 21 MA, and another line for the 50 MA.
Got the idea from Christopher Uhl - OVTLYR who uses the 10, 20, 50, but to make it original I made it the 21.
Custom MAs (Multi-Timeframe, 5x MA, EMA/SMA/WMA/RMA)Multi-Timeframe Moving Averages (Per-TF, Per-Type, Clean Labels)
This script allows you to plot up to five customizable moving averages, each with:
✅ Independent timeframe (chart or fixed)
✅ Independent MA type (EMA, SMA, WMA, RMA)
✅ Custom color, length, and visibility
✅ Optional visual smoothing using a second MA layer
✅ Clean, informative labels (e.g. EMA 50 @ 1D)
✅ Grouped settings for ease of use
Use this to track key MAs from higher or lower timeframes without switching charts, build trend overlays, or monitor cross-timeframe confluence zones.
Designed to be clean, accurate, and highly flexible — no clutter, no unnecessary features.
Money Flow Index with MAsMoney Flow Index (MFI) indicator with configurable Fast MA Length (default 2) and Slow MA Length (default 7). Both MAs are plotted on top of the MFI line, and you can change their lengths from the settings panel.
Crossovers can be used as 'BUY' & 'SELL' conditions with structural analysis.
Cheers..
SuperTrade ST1 StrategyOverview
The SuperTrade ST1 Strategy is a long-only trend-following strategy that combines a Supertrend indicator with a 200-period EMA filter to isolate high-probability bullish trade setups. It is designed to operate in trending markets, using volatility-based exits with a strict 1:4 Risk-to-Reward (R:R) ratio, meaning that each trade targets a profit 4× the size of its predefined risk.
This strategy is ideal for traders looking to align with medium- to long-term trends, while maintaining disciplined risk control and minimal trade frequency.
How It Works
This strategy leverages three key components:
Supertrend Indicator
A trend-following indicator based on Average True Range (ATR).
Identifies bullish/bearish trend direction by plotting a trailing stop line that moves with price volatility.
200-period Exponential Moving Average (EMA) Filter
Trades are only taken when the price is above the EMA, ensuring participation only during confirmed uptrends.
Helps filter out counter-trend entries during market pullbacks or ranges.
ATR-Based Stop Loss and Take Profit
Each trade uses the ATR to calculate volatility-adjusted exit levels.
Stop Loss: 1× ATR below entry.
Take Profit: 4× ATR above entry (1:4 R:R).
This asymmetry ensures that even with a lower win rate, the strategy can remain profitable.
Entry Conditions
A long trade is triggered when:
Supertrend flips from bearish to bullish (trend reversal).
Price closes above the Supertrend line.
Price is above the 200 EMA (bullish market bias).
Exit Logic
Once a long position is entered:
Stop loss is set 1 ATR below entry.
Take profit is set 4 ATR above entry.
The strategy automatically exits the position on either target.
Backtest Settings
This strategy is configured for realistic backtesting, including:
$10,000 account size
2% equity risk per trade
0.1% commission
1 tick slippage
These settings aim to simulate real-world conditions and avoid overly optimistic results.
How to Use
Apply the script to any timeframe, though higher timeframes (1H, 4H, Daily) often yield more reliable signals.
Works best in clearly trending markets (especially in crypto, stocks, indices).
Can be paired with alerts for live trading or analysis.
Important Notes
This version is long-only by design. No short positions are executed.
Ideal for swing traders or position traders seeking asymmetric returns.
Users can modify the ATR period, Supertrend factor, or EMA filter length based on asset behavior.
MA Dispersion+MA Dispersion+ — read the “breathing space” between your moving-averages
Get instant feedback on trend strength, volatility expansion and mean-reversion — across any timeframe.
MA Dispersion+ turns the humble moving-average stack into a single, easy-to-read oscillator that tells you at a glance whether price is coiling or fanning out.
🧩 What it does
Plugs into your favourite MA setup
• Pick the classic 5 / 20 / 50 / 200 lengths or disable any combination with one click.
• Choose the MA engine you trust — SMA, EMA, RMA, VWMA or WMA.
• Works on any timeframe thanks to TradingView’s security() engine.
Measures “spread”
For every bar it calculates the absolute distance of each selected MA from their average.
The tighter the stack, the lower the value; the wider the fan, the higher the value.
Adds professional-grade controls
• Weighting — let short-term MAs dominate (Inverse Length), keep everything equal, or dial in your own custom weights.
• Normalisation — convert the raw distance into a percentage of price, ATR multiples, or scale by the MAs’ own mean so you can compare symbols of any price or volatility.
🔍 How traders use it
Trend confirmation – rising dispersion while price breaks out = momentum is genuine.
Volatility squeeze – dispersion parking near zero warns that a big move is loading.
Multi-TF outlook – drop one pane per timeframe (e.g. 5 m, 1 h, 1 D) and see which layer of the market is driving.
Mean-reversion plays – spikes that fade quickly often coincide with exhaustion and snap-backs.
⚙️ Quick-start
Add MA Dispersion+ to your chart.
Set the pane’s timeframe in the first input.
Tick the MA lengths you actually use.
(Optional) Pick a weighting scheme and a normaliser.
Repeat the indicator for as many timeframes as you like — each instance keeps its own settings.
✨ Why you’ll love it
Zero clutter – one orange line tells you what four separate MAs whisper.
Configurable yet bullet-proof – all lengths are hard-coded constants, so Pine never complains.
Context aware – normalisation lets you compare BTC’s $60 000 chaos with EURUSD’s four--decimals calm.
Lightweight – no labels, no drawings, no background processing — perfect for mobile and multi-pane layouts.
Give MA Dispersion+ a try and let your charts breathe — you’ll never look at moving-average ribbons the same way again.
Happy trading!
NeuroTrendNeuroTrend is an advanced, self-adjusting trend analysis system that continuously adapts to changing market conditions using volatility-aware smoothing, momentum weighting, and intelligent trend classification. It provides real-time trend detection, confidence scoring, early reversal warnings, and slope projection, all delivered through a coaching dashboard and structured rule-based commentary system.
At its core, NeuroTrend uses two EMAs whose smoothing lengths change automatically based on current volatility, measured by the ATR relative to price, and momentum bias, measured by RSI displacement from the neutral level. These adaptive EMAs create a flexible baseline that adjusts to the pace of the market. From these EMAs, the system calculates angular slope and derives a slope power score, which reflects directional momentum weighted by volatility.
NeuroTrend classifies each bar into one of five market phases: Impulse, Cooling, Reversal Risk, Stall, or Neutral. This classification is based on slope strength, slope variability, and RSI behavior. Each phase offers specific context for whether to enter, continue, or avoid a position.
The indicator uses what is referred to as a neural memory engine, which is inspired by the idea of memory but is not a neural network or machine learning model. Instead, it is a statistical recalibration system that adjusts thresholds using recent ATR conditions and slope standard deviation. This allows the indicator to remain aligned with the current market environment without the need for manual tuning.
Although NeuroTrend is fully adaptive, it includes inputs for the base fast and slow EMAs. These inputs define the central anchor points around which the adaptive logic operates. This gives the trader the ability to control the default behavior of the indicator while still benefiting from real-time responsiveness to volatility and momentum.
To assess the strength of a trend, NeuroTrend computes a confidence score based on four elements: DMI trend strength, directional bias from DI+ and DI–, slope normalization, and volatility efficiency measured by ATR in relation to EMA distance. This score is used to inform alerts, commentary, and dashboard visualization.
The indicator also includes a slope projection engine that estimates near-term direction based on slope change and acceleration. This projection is scaled and clamped using a dynamic volatility factor to prevent unrealistic or unstable values.
Reversal and stall detection are built in. Reversal detection is based on slope collapsing, sign flipping, and RSI weakness. Stall detection is triggered when slope magnitude is low, RSI is flat, and ATR is compressed. These filters help prevent entries in low-quality or high-risk environments.
The system also includes AI-style commentary. This feature is not powered by machine learning or natural language processing. It is rule-based, using prioritized conditions to generate clear statements that reflect the current market state. Messages such as "Strong trend forming" or "Reversal risk rising" are created by predefined logic that adapts to the market.
A visual dashboard is provided on the chart. It displays the current phase, trend direction, slope score, confidence level, reversal status, stall condition, and projected slope angle. This helps traders interpret market behavior at a glance without scanning multiple indicators.
Alerts are triggered only when specific conditions are met: trend strength must be in the impulse phase, confidence must be high, and there must be no active reversal or stall conditions. This ensures alerts are reserved for high-quality setups with strong directional alignment.
Disclaimer:
This script is intended for educational and informational use only. It does not constitute financial advice. The author accepts no responsibility for any trading or investment decisions made using this tool. Always do your own research and consult a licensed financial advisor before making financial decisions.
IBD Style Candles [tradeviZion]IBD Style Candles - Visualize Price Bars Like the Pros
Transform your chart with institutional-grade IBD-style bars and customizable moving averages for both daily and weekly timeframes. This indicator helps you visualize price action the way professionals at Investors Business Daily do.
What This Indicator Offers:
IBD-style bar visualization (clean, professional appearance)
Customizable coloring based on price movement or previous close
Automatic timeframe detection for appropriate moving averages
Four customizable moving averages for daily timeframes (10, 21, 50, 200)
Four customizable moving averages for weekly timeframes (10, 20, 30, 40)
Options to use SMAs or EMAs with adjustable colors and line widths
"The IBD-style bars provide a cleaner view of price action, allowing you to focus on market structure without the visual noise of traditional candles."
How to Apply the IBD-Style Bars:
On your TradingView chart, select "Bars" as the chart type from the main chart type selection menu (next to the time interval options).
Right-click on the chart and select "Settings".
Go to the "Symbol" tab.
Uncheck the "Thin Bars" option to display thicker bars.
Set the "Up Color" and "Down Color" opacity to 0 for a clean IBD-style appearance.
Enable "IBD-style Candles" from the script's settings.
To revert to the original chart style, repeat the above steps and restore the default settings.
Moving Average Configuration:
The indicator automatically detects your timeframe and displays the appropriate moving averages:
Daily Timeframe Moving Averages:
10-day moving average (SMA/EMA)
21-day moving average (SMA/EMA)
50-day moving average (SMA/EMA)
200-day moving average (SMA/EMA)
Weekly Timeframe Moving Averages:
10-week moving average (SMA/EMA)
20-week moving average (SMA/EMA)
30-week moving average (SMA/EMA)
40-week moving average (SMA/EMA)
Usage Tips:
Enable "Color bars based on previous close" to identify momentum shifts based on prior candle closes
Customize colors to match your chart theme or preference
Enable only the moving averages relevant to your trading strategy
For cleaner charts, reduce the number of visible moving averages
For stock trading, the 10/21/50/200 daily and 10/40 weekly MAs are most commonly used by institutions
// Example configuration for different timeframes
if timeframe.isweekly
// Weekly configuration
showSMA1_Weekly = true // 10-week MA
showSMA4_Weekly = true // 40-week MA
else
// Daily configuration
showMA2_Daily = true // 21-day MA
showMA3_Daily = true // 50-day MA
showMA4_Daily = true // 200-day MA
While the IBD style provides clarity, remember that no visualization method guarantees trading success. Always combine with proper analysis and risk management.
If you found this indicator helpful, please consider leaving a comment or suggestion for future improvements. Happy trading!
Intraday Call Signal - StrategyThis indicator identifies high-probability intraday long (call option) setups based on a combination of trend and momentum conditions. It scans the current chart (e.g., NVDA, AAPL, TSLA) for the following:
The 9-period EMA crosses above the 21-period EMA (signals momentum shift).
Price is above VWAP (indicating buyers are in control intraday).
RSI (14) is greater than 55 (confirms bullish strength).
All conditions must occur within the 9:45 AM to 11:30 AM ET window to avoid early "fakeouts" and catch strong morning trends.
The indicator triggers only once per day (first valid signal) to reduce noise.
A green marker is plotted on the chart when a valid signal is detected, and an alert condition is available to send notifications in real time. Designed for use with liquid, high-volume stocks and index ETFs for intraday call option strategies.
Multiple Smas and timeframesIndicator Title: Multiple SMAs Across Custom Timeframes
Short Title: Multi-Timeframe SMAs
Description:
The "Multiple SMAs Across Custom Timeframes" indicator is designed for traders who want to visualize Simple Moving Averages (SMAs) across multiple timeframes on a single chart or synchronize SMA configurations across different chart windows. This Pine Script indicator allows users to plot two groups of SMAs (each with three customizable periods: shorter, middle, and longest) on user-defined timeframes, making it ideal for multi-timeframe analysis. For example, you can display 20, 50, and 200-period SMAs calculated on a 2-minute or 1-hour timeframe, ensuring consistent SMA visualization across charts like 30-minute, 5-minute, and 1-minute windows for assets like QQQ.
Key Features:
Two SMA Groups: Configure two independent groups of SMAs, each with three periods (e.g., 20, 50, 200) for flexible analysis.
Custom Timeframes: Set distinct timeframes for each SMA group (e.g., 2 minutes, 1 hour) to align with your trading strategy.
Dashed Line Option: Toggle dashed or solid lines for each SMA group to differentiate them visually.
Timeframe Conversion: Automatically adjusts SMA calculations based on the chart’s timeframe, supporting minute, daily, weekly, and monthly charts.
Color-Coded SMAs: Each SMA is plotted with distinct colors (orange, purple, blue) for easy identification.
Performance Optimization: Limits SMA calculations to periods under 5000 bars to prevent performance issues.
How It Works:
The script calculates SMAs by scaling the input periods based on the ratio between the user-specified timeframe and the chart’s timeframe. For instance, a 20-period SMA on a 2-minute timeframe displayed on a 1-minute chart will adjust to reflect the equivalent number of 1-minute bars. The indicator supports seamless visualization across multiple chart windows, ensuring consistent SMA configurations. Group 1 and Group 2 SMAs can be set to different timeframes, allowing simultaneous analysis of short-term and long-term trends.
Inputs:
SMA Group 1:
Shorter SMA (default: 20)
Middle SMA (default: 50)
Longest SMA (default: 200)
Use Dashed Line (default: false)
Timeframe (default: 2 minutes)
SMA Group 2:
Shorter SMA (default: 20)
Middle SMA (default: 50)
Longest SMA (default: 200)
Use Dashed Line (default: false)
Timeframe (default: 60 minutes)
Use Case:
Perfect for traders analyzing assets like QQQ across multiple timeframes (e.g., 30-minute, 5-minute, 1-minute charts). Set Group 1 to calculate SMAs (20, 50, 200) on a 2-minute timeframe and Group 2 on a 1-hour timeframe. Apply the indicator to all chart windows to maintain consistent SMA visualization, aiding in trend identification and cross-timeframe confirmation.
Notes:
Timeframe inputs are ignored on weekly or monthly charts, as the script adapts to the chart’s native timeframe.
Ensure SMA periods, when scaled, do not exceed 5000 bars to maintain performance.
Use the dashed line option to visually distinguish between SMA groups when analyzing multiple timeframes.
Ideal For:
Multi-timeframe traders
Trend-following strategies
Swing and day trading
Technical analysts seeking synchronized SMA displays across chart windows
Enhance your trading with precise, timeframe-adjusted SMA visualizations and streamline your multi-chart analysis with this versatile indicator!
Explain timeframe conversion
Exponential Moving Averages
21/200 EMA Cross with circles - Crypto GoatizThis script detects The 21/200 EMA crossovers which signals trend confirmations in the market. The script enhances that signal with clear visual cues so that you never miss a critical trend shift on lock in those gainzzz! 🤑🤑🤑
Useful when Scalping on the 3 min Timeframe, but also good on higher timeframes for swings!
🔗 Follow: @CryptoGoatiz on X x.com
Join the Discord group and learn how to predict the market based on Astrology! Don't miss out 👀
🔗 Discord: discord.gg