TPG Trend + MACDUser Guide for "TPG Trend + MACD"
Author: TrungChuThanh
🔎 Main Functions
The TPG Trend + MACD indicator is a combined tool that integrates:
TPG Trend Histogram (spread between fast and slow EMA)
MACD Line & Signal for confirming trend momentum
Buy/Sell signals displayed directly on the indicator panel
⚙️ Components and Meaning
1️⃣ TPG Trend Histogram
Calculated from the difference between Fast EMA (9) and Slow EMA (26).
Light gray bars = bullish trend (spread > 0)
Dark gray bars = bearish trend (spread < 0)
Signal triggers:
B1 (green label): Crossover above 0 → Buy signal
S1 (red label): Crossunder below 0 → Sell signal
2️⃣ MACD Line & Signal
Consists of:
MACD Line = EMA(12) – EMA(26)
Signal Line = EMA(9) of the MACD Line
Confirmation signals:
B2 (blue triangle): MACD crosses above Signal → Buy confirmation
S2 (orange triangle): MACD crosses below Signal → Sell confirmation
MACD Line: Blue
Signal Line: Orange
📌 How to Use
Determine the main trend using the TPG Histogram
→ When the histogram crosses above zero → Consider Buy
→ When it crosses below zero → Consider Sell
Use MACD to confirm trend direction or optimize entry timing
✅ Prefer signals when both TPG and MACD align (e.g., B1 + B2 or S1 + S2)
⚠️ Avoid using the indicator alone; combine with support/resistance, RSI, volume, or other tools for higher accuracy
🛠️ Adjustable Parameters
Fast/Slow EMA for TPG Trend
Fast/Slow/Signal for MACD
Toggle to show/hide TPG and MACD elements in the panel
⚠️ Notes
This is a technical analysis tool, not investment advice
Always apply risk management, set clear stop-loss, and confirm signals across multiple timeframes
Bill Williams Göstergeleri
VIDYA (Chande)This script brings you VIDYA – the Variable Index Dynamic Average, developed by Tushar Chande. It’s not your typical moving average. Unlike the standard SMA or EMA, VIDYA adapts its speed and smoothness based on real-time market momentum using the Chande Momentum Oscillator (CMO).
Think of it like a moving average that gets faster during strong trends and slows down during sideways or choppy markets — just like how a smart trader would!
🧠 What Makes VIDYA Different?
Traditional moving averages use fixed smoothing, so they lag more during big moves or chop during weak trends.
VIDYA fixes that by adapting its behavior dynamically:
When momentum is strong → VIDYA reacts faster 🚀
When momentum is weak → VIDYA smooths out the noise 🧘
⚙️ How It Works (Explained Simply):
1️⃣ CMO Calculation (Chande Momentum Oscillator):
We look at the past cmoLength candles (default 9) and:
i) Add up all the positive price changes (gains)
ii) Add up all the negative price changes (losses)
iii) Use those to compute a normalized momentum score between -100 and +100
📌 CMO = (Gains - Losses) / (Gains + Losses)
• This gives us a momentum reading that powers the next step.
2️⃣ Dynamic Alpha Smoothing:
• We convert the absolute value of the CMO into an alpha — this is the "speed" of the VIDYA.
📌 Higher momentum = higher alpha → faster response
📌 Lower momentum = lower alpha → smoother behavior
3️⃣ VIDYA Formula:
• Finally, we apply the smoothing:
📌 VIDYA = α × Price + (1 - α) × Previous VIDYA
• This equation continuously adapts to market behavior — trending or ranging.
📊 What’s Plotted?
🟠 The VIDYA Line:
A smooth, responsive line plotted on your price chart that adjusts in real-time with price momentum.
🔎 How to Use It:
✅ Use it like a moving average, but smarter:
• Price > VIDYA and rising → Trend is likely up
• Price < VIDYA and falling → Trend is likely down
• Flat VIDYA = Possible consolidation or sideways market
✅ Combine with:
• Breakout strategies (VIDYA confirms momentum)
• Reversal entries (look for price crossing VIDYA)
• Volatility filters (ignore signals when VIDYA flattens)
🧪 Bonus Tip:
Pair this with a volume indicator (like my Volume Confirmation Bars or Volume Strength Highlight) to confirm whether momentum is backed by real participation or just a fakeout.
📩 Want alerts, dual-timeframe overlays, or VIDYA with other base inputs (like typical price or HLC3)? Let me know — happy to expand this for your setup!
Stay adaptive, not reactive — trade smarter with VIDYA! 🧠📉📈
GStrategy with Long & Short WIF 1hThis is a 4-hour chart strategy for cryptocurrency trading, combining RSI-based divergence signals and trend filters. The script identifies bullish and bearish divergences, and executes long and short entries based on RSI levels. It limits holding time per trade, controls risk with stop-loss and take-profit levels, and provides visual markers for entries and exits. The strategy is designed for intraday to swing trading, aiming for consistent small gains with minimal losses.
9:15 Range with 0.09% BufferThis strategy is based on the first 9:15 AM candle for Nifty, which is considered a key reference point (also called the "GAN level entry"). It defines a range around the high and low of the 9:15 candle with a 0.09% buffer on both sides.
The upper buffer level acts as a potential resistance.
The lower buffer level acts as a potential support.
When the price crosses above the upper buffer, it signals a possible entry for a Call option (CE) or a long position.
When the price crosses below the lower buffer, it signals a possible entry for a Put option (PE) or a short position.
This approach helps traders identify early breakout opportunities based on the opening candle range, aiming to capture momentum moves in either direction during the trading session.
WT 4H + 1D Oscillator + Cross Dots + Alert TrianglesThis indicator will help on trigger buy and sell alerts when you get confluence signals in 1D Momentum above or below +-30 (adjustable) and 4H momentum waves crossing (meaning overbought / oversold). Excellent for catching early swing breakout trades.
Bull & Bear Power Separados📄 English Description for TradingView
Bull & Bear Power – Elder Style
This indicator displays the strength of buyers (Bull Power) and sellers (Bear Power) separately, based on Alexander Elder’s original concept.
It uses a 13-period Exponential Moving Average (EMA) as the baseline, calculating:
Bull Power = High – EMA
Bear Power = Low – EMA
✔️ Bull Power (green) shows buying pressure.
✔️ Bear Power (red) shows selling pressure.
Great for analyzing true market momentum and spotting early signs of potential trend reversals.
Can be used as confirmation together with moving averages (e.g., MMA30 and MMA50) or price action signals.
✅ On 1H gold charts (XAUUSD), it has shown solid behavior in filtering entries during clear trends.
Developed and shared for educational purposes by El Bit Criollo.
MestreDoFOMO MACD VisualMasterDoFOMO MACD Visual
Description
MasterDoFOMO MACD Visual is a custom indicator that combines a unique approach to MACD with stochastic logic and simulated Renko-based direction signals. It is designed to help traders identify entry and exit opportunities based on market momentum and trend changes, with a clear and intuitive visualization.
How It Works
Stylized MACD with Stochastic: The indicator calculates the MACD using EMAs (exponential moving averages) normalized by stochastic logic. This is done by subtracting the lowest price (lowest low) from a defined period and dividing by the range between the highest and lowest price (highest high - lowest low). The result is a MACD that is more sensitive to market conditions, magnified by a factor of 10 for better visualization.
Signal Line: An EMA of the MACD is plotted as a signal line, allowing you to identify crossovers that indicate potential trend reversals or continuations.
Histogram: The difference between the MACD and the signal line is displayed as a histogram, with distinct colors (fuchsia for positive, purple for negative) to make momentum easier to read.
Simulated Renko Direction: Uses ATR (Average True Range) to calculate the size of Renko "bricks", generating signals of change in direction (bullish or bearish). These signals are displayed as arrows on the chart, helping to identify trend reversals.
Purpose
The indicator combines the sensitivity of the Stochastic MACD with the robustness of Renko signals to provide a versatile tool. It is ideal for traders looking to capture momentum-based market movements (using the MACD and histogram) while confirming trend changes with Renko signals. This combination reduces false signals and improves accuracy in volatile markets.
Settings
Stochastic Period (45): Sets the period for calculating the Stochastic range (highest high - lowest low).
Fast EMA Period (12): Period of the fast EMA used in the MACD.
Slow EMA Period (26): Period of the slow EMA used in the MACD.
Signal Line Period (9): Period of the EMA of the signal line.
Overbought/Oversold Levels (1.0/-1.0): Thresholds for identifying extreme conditions in the MACD.
ATR Period (14): Period for calculating the Renko brick size.
ATR Multiplier (1.0): Adjusts the Renko brick size.
Show Histogram: Enables/disables the histogram.
Show Renko Markers: Enables/disables the Renko direction arrows.
How to Use
MACD Crossovers: A MACD crossover above the signal line indicates potential bullishness, while below suggests bearishness.
Histogram: Fuchsia bars indicate bullish momentum; purple bars indicate bearish momentum.
Renko Arrows: Green arrows (upward triangle) signal a change to an uptrend; red arrows (downward triangle) signal a downtrend.
Overbought/Oversold Levels: Use the levels to identify potential reversals when the MACD reaches extreme values.
Notes
The chart should be set up with this indicator in isolation for better clarity.
Adjust the periods and ATR multiplier according to the asset and timeframe used.
Use the built-in alerts ("Renko Up Signal" and "Renko Down Signal") to set up notifications of direction changes.
This indicator is ideal for day traders and swing traders who want a visually clear and functional tool for trading based on momentum and trends.
Jesus Vix Spike ComboThis script will:
Show you vix spikes with your 4 different settings.
Draw a white line at the start of each vix.
Draw a dotted green line for 3 spikes in 6 minutes.
Draw a dotted pink line for 3 spikes in 16 minutes.
Draw a green line extending right if it takes out a past low in the last 200 bars plus a spike.
It will also:
Place a white dot on the 5th candle if the price rises past the vix starting point,
a white omega sign on the 6th candle if price rises past the vix starting point,
and a large white dot on the 7th candle past the vix starting point if the price is higher.
It will also:
Show higher time frame EMAs and other emas.
Has some alerts added also.
I have only been using this on the 1 minute chart with $OANDA:SPX500USD.
Ill write about the strategy I use for this soon. But basically you wait for a drop and for some prominent lows to be taken out, then a vix, then your white dot, omega then the large white dot to enter, expect a 100% expansion from the vix low. More aggressive entry's would be the first white dot or 3 green candles in a row. Backtest to see.
Thanks for checking it out. Let me know if it can be better.
The original script is from Xxattaxx and Christ Moody I believe, thank you for sharing all your hard work.
Range Filter Strategy with ATR TP/SLHow This Strategy Works:
Range Filter:
Calculates a smoothed average (SMA) of price
Creates upper and lower bands based on standard deviation
When price crosses above upper band, it signals a potential uptrend
When price crosses below lower band, it signals a potential downtrend
ATR-Based Risk Management:
Uses Average True Range (ATR) to set dynamic take profit and stop loss levels
Take profit is set at entry price + (ATR × multiplier) for long positions
Stop loss is set at entry price - (ATR × multiplier) for long positions
The opposite applies for short positions
Input Parameters:
Adjustable range filter length and multiplier
Customizable ATR length and TP/SL multipliers
All parameters can be optimized in TradingView's strategy tester
You can adjust the input parameters to fit your trading style and the specific market you're trading. The ATR-based exits help adapt to current market volatility.
Range Filter + ATR Strategy (Low Drawdown)Key Features for Low Drawdown:
Range Filter: Identifies trends while filtering out market noise
ATR-based Position Sizing: Adjusts position size based on volatility to risk a fixed percentage of capital
Trailing Stops: Uses ATR-based trailing stops to lock in profits and limit losses
Conservative Risk Parameters: Defaults to 1% risk per trade (adjustable)
Trend Confirmation: Requires two consecutive closes above/below the range filter
How to Use:
The strategy enters long when price is above the upper range filter for two consecutive bars
Enters short when price is below the lower range filter for two consecutive bars
Uses ATR to size positions appropriately for current volatility
Implements trailing stops based on ATR to protect profits
Optimization Tips:
Adjust the Range Filter period based on your timeframe
Modify the risk percentage (1% is conservative)
Tweak the ATR multiple for trailing stops (1.5 is moderate)
Consider adding a time-based exit if drawdown is still too high
Median True Range {Darkoexe}Simple and sweet, this is the median true range. It reviews the size of the previous period amount of candles, and displays the candle size value that is the median of those previous values.
//Darkoexe
RESHAIndicator Name: RESHA – Static Price Levels
Description:
The RESHA indicator is a simple tool that allows traders to manually define multiple horizontal price levels on the chart. These levels are displayed as horizontal lines, each extending a customizable number of candles forward. Traders can input a comma-separated list of prices, which are then plotted automatically on the chart.
Features:
📍 Custom input box for price levels (comma-separated).
📏 Adjustable line length in bars.
Visual price labels at the end of each level.
Clean and minimalistic design, perfect for support/resistance zones or static analysis.
This tool is ideal for traders who want to keep key price zones visible at all times without relying on dynamic calculations or automated indicators.
BW MFI fixed v6Bill Williams MFI
Sure! Here’s an English description of the indicator you have:
---
### Bill Williams Market Facilitation Index (MFI) — Indicator Description
This indicator implements the **Market Facilitation Index (MFI)** as introduced by Bill Williams. The MFI measures the market's willingness to move the price by comparing the price range to the volume.
---
### How it works:
* **MFI Calculation:**
The MFI is calculated as the difference between the current bar’s high and low prices divided by the volume of that bar:
$$
\text{MFI} = \frac{\text{High} - \text{Low}}{\text{Volume}}
$$
* **Color Coding Logic:**
The indicator compares the current MFI and volume values to their previous values and assigns colors to visualize market conditions according to Bill Williams’ methodology:
| Color | Condition | Market Interpretation |
| ----------- | ------------------ | --------------------------------------------------------------------------------------------- |
| **Green** | MFI ↑ and Volume ↑ | Strong trend continuation or acceleration (increased price movement supported by volume) |
| **Brown** | MFI ↓ and Volume ↓ | Trend weakening or possible pause (both price movement and volume are decreasing) |
| **Blue** | MFI ↑ and Volume ↓ | Possible false breakout or lack of conviction (price moves but volume decreases) |
| **Fuchsia** | MFI ↓ and Volume ↑ | Market indecision or battle between bulls and bears (volume rises but price movement shrinks) |
| **Gray** | None of the above | Neutral or unchanged market condition |
* **Display:**
The indicator plots the MFI values as colored columns on a separate pane below the price chart, providing a visual cue of the market’s behavior.
---
### Purpose:
This tool helps traders identify changes in market momentum and the strength behind price moves, providing insight into when trends might accelerate, weaken, or potentially reverse.
---
If you want, I can help you write a more detailed user guide or trading strategy based on this indicator!
High/Low Digit SumNAMAN SHAH
Its about the high low total of a candle only for gold where if highs total is 9 then its a chance that it will not break the high for a long time and it will be a good opportunity for short
And vise versa
Gold Breakout Strategy - RR 4Strategy Name: Gold Breakout Strategy - RR 4
🧠 Main Objective
This strategy aims to capitalize on breakouts from the Donchian Channel on Gold (XAU/USD) by filtering trades with:
Volume confirmation,
A custom momentum indicator (LWTI - Linear Weighted Trend Index),
And a specific trading session (8 PM to 8 AM Quebec time — GMT-5).
It takes only one trade per day, either a buy or a sell, using a fixed stop-loss at the wick of the breakout candle and a 4:1 reward-to-risk (RR) ratio.
📊 Indicators Used
Donchian Channel
Length: 96
Detects breakouts of recent highs or lows.
Volume
Simple Moving Average (SMA) over 30 bars.
A breakout is only valid if the current volume is above the SMA.
LWTI (Linear Weighted Trend Index)
Measures momentum using price differences over 25 bars, smoothed over 5.
Used to confirm trend direction:
Buy when LWTI > its smoothed version (uptrend).
Sell when LWTI < its smoothed version (downtrend).
⏰ Time Filter
The strategy only allows entries between 8 PM and 8 AM (GMT-5 / Quebec time).
A timestamp-based filter ensures the system recognizes the correct trading session even across midnight.
📌 Entry Conditions
🟢 Buy (Long)
Price breaks above the previous Donchian Channel high.
The current channel high is higher than the previous one.
Volume is above its moving average.
LWTI confirms an uptrend.
The time is within the trading session (20:00 to 08:00).
No trade has been taken yet today.
🔴 Sell (Short)
Price breaks below the previous Donchian Channel low.
The current channel low is lower than the previous one.
Volume is above its moving average.
LWTI confirms a downtrend.
The time is within the trading session.
No trade has been taken yet today.
💸 Trade Management
Stop-Loss (SL):
For long entries: placed below the wick low of the breakout candle.
For short entries: placed above the wick high of the breakout candle.
Take-Profit (TP):
Set at a fixed 4:1 reward-to-risk ratio.
Calculated as 4x the distance between the entry price and stop-loss.
No trailing stop, no break-even, no scaling in/out.
🎨 Visuals
Green triangle appears below the candle on a buy signal.
Red triangle appears above the candle on a sell signal.
Donchian Channel lines are plotted on the chart.
The strategy is designed for the 5-minute timeframe.
🔄 One Trade Per Day Rule
Once a trade is taken (buy or sell), no more trades will be executed for the rest of the day. This prevents overtrading and limits exposure.
Enhanced Volume w/ Pocket Pivots, Milestones & LiquiditySure! Here’s a professional and clear **description** you can use when saving or publishing the script on TradingView:
---
## 📄 Script Description: *Enhanced Volume w/ Pocket Pivots, Milestones & Liquidity*
This custom volume indicator enhances the default volume view by combining key institutional-level insights into a single tool. It highlights meaningful volume activity, liquidity conditions, and milestone events to help traders better understand accumulation/distribution and smart money participation.
### 🔍 Features:
* **Color-coded volume bars**:
* 🔵 **Pocket Pivot Volume (PPV)**: Up-day with volume > highest down-day volume of last 10 bars.
* 🟢 **Up Volume**: Up-day with volume > 50-day average.
* 🔴 **Down Volume**: Down-day with volume > 50-day average.
* 🟠 **Dry Volume**: Low-volume bars < 20% of 50-day average.
* ⚫ **Neutral/Other bars**: No significant signal.
* **Volume Milestones**:
* **HVE**: Highest volume ever (20 years lookback).
* **HVY**: Highest volume in the past 1 year (252 bars).
* **HVQ**: Highest volume in the past quarter (63 bars).
* **Projected Volume**:
* Real-time estimate of end-of-day volume based on elapsed session time.
* **Liquidity Metrics**:
* Displays current and 50-day average dollar volume.
* Estimates 1-minute liquidity for large-position feasibility.
* **Relative Volume Label**:
* Displays how today’s volume compares to the 50-day average.
* **Alerts Included**:
* Set alerts for HVE, HVY, and HVQ to catch key breakout or climactic volume events.
---
### 🧠 Ideal For:
* Growth stock traders
* Volume/price analysts
* Intraday & swing traders
* Institutions or prop traders needing liquidity benchmarks
---
Let me know if you'd like a short or promotional version (for sharing with others).
Wick SweepThe Wick Sweep indicator identifies potential trend reversal zones based on price action patterns and swing points. Specifically, it looks for "Wick Sweeps," a concept where the market temporarily breaks a swing low or high (creating a "wick"), only to reverse in the opposite direction. This pattern is often indicative of a market attempting to trap traders before making a larger move. The indicator marks these zones using dashed lines, helping traders spot key areas of potential price action.
Key Features:
* Swing Low and High Detection: The indicator identifies significant swing lows and highs within a user-defined period by employing Williams fractals.
* Wick Sweep Detection: Once a swing low or high is identified, the indicator looks for price movements that break through the low or high (creating a wick) and then reverses direction.
* Fractal Plotting: Optionally, the indicator plots fractal points (triangle shapes) on the chart when a swing low or high is detected. This can assist in visually identifying the potential wick sweep areas.
* Line Plotting: When a wick sweep is detected, a dashed line is drawn at the price level of the failed low or high, visually marking the potential reversal zone.
Inputs:
* Periods: The number of bars used to identify swing highs and lows. A higher value results in fewer, more significant swing points.
* Line Color: The color of the dashed lines drawn when a wick sweep is detected. Customize this to match your chart's theme or preferences.
* Show Fractals: A toggle that, when enabled, plots triangle shapes above and below bars indicating swing highs (up triangles) and swing lows (down triangles).
Functionality:
* Swing High and Low Calculation:
- The indicator calculates the swing low and swing high based on the periods input. A swing low is identified when the current low is the lowest within a range of (2 * periods + 1), with the lowest point being at the center of the period.
- Similarly, a swing high is identified when the current high is the highest within the same range.
* Wick Sweep Detection:
- Once a swing low or high is detected, the script looks for a potential wick. This happens when the price breaks the swing low or high and then reverses in the opposite direction.
- For a valid wick sweep, the price should briefly move beyond the identified swing point but then close in the opposite direction (i.e., a bullish reversal for a swing low and a bearish reversal for a swing high).
- A line is drawn at the price level of the failed low or high when a wick sweep is confirmed.
Confirmations for Reversal:
* The confirmation for a wick sweep requires that the price not only break the swing low/high but also close in the opposite direction (i.e., close above the low for a bullish reversal or close below the high for a bearish reversal).
* The confirmation is further refined by checking that the price movement is within a reasonable distance from the original swing point, which prevents the indicator from marking distant, unimportant price levels.
Additional Notes:
* The Wick Sweep indicator does not provide standalone trading signals; it is best used in conjunction with other technical analysis tools, such as trend analysis, oscillators, or volume indicators.
* The periods input can be adjusted based on the trader’s preferred level of sensitivity. A lower period value will result in more frequent swing points and potentially more signals, while a higher value will focus on more significant market swings.
* The indicator may work well in ranging markets where price tends to oscillate between key support and resistance levels.
RSI Phan Ky FullThe RSI divergence indicator is like a magnifying glass that spots gaps between price swings and momentum. When price keeps climbing but RSI quietly sags, it’s a flashing U‑turn sign: the bulls are winded, and the bears are lacing up their boots. Flip it around—price is sliding yet RSI edges higher—and you’ve got bulls secretly stockpiling. Hidden divergences shore up the trend; regular divergences hint at a pivot. Blend those signals with overbought/oversold zones, support‑resistance, and volume, and RSI divergence turns into a radar that helps traders jump in with swagger and bail out just in time.
Current Fractal High/Low (Dynamic)
This indicator dynamically tracks the most recent confirmed Fractal High and Fractal Low across any timeframe using custom left/right bar configurations.
🔍 Key Features:
Detects Fractal Highs and Lows based on user-defined pivot settings.
Draws a green line and label ("FH") at the most recent Fractal High.
Draws a red line and label ("FL") at the most recent Fractal Low.
All lines extend from the confirmation bar to the current candle.
Automatically removes old lines and labels for a clean, uncluttered chart.
🛠️ Customizable Inputs:
Left & Right bars for pivot sensitivity
Line width for visibility
📌 Use Cases:
Identifying structure shifts
Recognizing key swing points
Supporting liquidity and breakout strategies
💡 Fractals are confirmed only after the full formation of the pattern (left and right bars). This ensures reliability over reactivity.
This script is designed for intraday to swing traders who want a reliable way to visualize market turning points with minimal noise.
Absorption Lines Basic Indicator:
Green support lines and red resistance lines will appear on your chart
Numbers 1-7 will show up as triangles above and below bars
Green triangles below bars are sell signals
Red triangles above bars are buy signals
For Scanning:
In TradingView's Stock Screener, add a custom filter using this indicator
Look for "New Level", "Signal Number", or "Bar Close At Level" conditions
For specific signals, use "Buy Signal X" or "Sell Signal X" (where X is 1-7)
For Alerts:
Set up alerts using the three alert conditions in TradingView
You'll be notified when new lines are printed, when bars close at levels, or when signals appear
Williams R Zone Scalper v1.0[BullByte]Originality & Usefulness
Unlike standard Williams R cross-over scripts, this strategy layers five dynamic filters—moving-average trend, Supertrend, Choppiness Index, Bollinger Band Width, and volume validation —and presents a real-time dashboard with equity, PnL, filter status, and key indicator values. No other public Pine script combines these elements with toggleable filters and a custom dashboard. In backtests (BTC/USD (Binance), 5 min, 24 Mar 2025 → 28 Apr 2025), adding these filters turned a –2.09 % standalone Williams R into a +5.05 % net winner while cutting maximum drawdown in half.
---
What This Script Does
- Monitors Williams R (length 14) for overbought/oversold reversals.
- Applies up to five dynamic filters to confirm trend strength and volatility direction:
- Moving average (SMA/EMA/WMA/HMA)
- Supertrend line
- Choppiness Index (CI)
- Bollinger Band Width (BBW)
- Volume vs. its 50-period MA
- Plots blue arrows for Long entries (R crosses above –80 + all filters green) and red arrows for Short entries (R crosses below –20 + all filters green).
- Optionally sets dynamic ATR-based stop-loss (1.5×ATR) and take-profit (2×ATR).
- Shows a dashboard box with current position, equity, PnL, filter status, and real-time Williams R / MA/volume values.
---
Backtest Summary (BTC/USD(Binance), 5 min, 24 Mar 2025 → 28 Apr 2025)
• Total P&L : +50.70 USD (+5.05 %)
• Max Drawdown : 31.93 USD (3.11 %)
• Total Trades : 198
• Win Rate : 55.05 % (109/89)
• Profit Factor : 1.288
• Commission : 0.01 % per trade
• Slippage : 0 ticks
Even in choppy March–April, this multi-filter approach nets +5 % with a robust risk profile, compared to –2.09 % and higher drawdown for Williams R alone.
---
Williams R Alone vs. Multi-Filter Version
• Total P&L :
– Williams R alone → –20.83 USD (–2.09 %)
– Multi-Filter → +50.70 USD (+5.05 %)
• Max Drawdown :
– Williams R alone → 62.13 USD (6.00 %)
– Multi-Filter → 31.93 USD (3.11 %)
• Total Trades : 543 vs. 198
• Win Rate : 60.22 % vs. 55.05 %
• Profit Factor : 0.943 vs. 1.288
---
Inputs & What They Control
- wrLen (14): Williams R look-back
- maType (EMA): Trend filter type (SMA, EMA, WMA, HMA)
- maLen (20): Moving-average period
- useChop (true): Toggle Choppiness Index filter
- ciLen (12): CI look-back length
- chopThr (38.2): CI threshold (below = trending)
- useVol (true): Toggle volume-above-average filter
- volMaLen (50): Volume MA period
- useBBW (false): Toggle Bollinger Band Width filter
- bbwMaLen (50): BBW MA period
- useST (false): Toggle Supertrend filter
- stAtrLen (10): Supertrend ATR length
- stFactor (3.0): Supertrend multiplier
- useSL (false): Toggle ATR-based SL/TP
- atrLen (14): ATR period for SL/TP
- slMult (1.5): SL = slMult × ATR
- tpMult (2.0): TP = tpMult × ATR
---
How to Read the Chart
- Blue arrow (Long): Williams R crosses above –80 + all enabled filters green
- Red arrow (Short) : Williams R crosses below –20 + all filters green
- Dashboard box:
- Top : position and equity
- Next : cumulative PnL in USD & %
- Middle : green/white dots for each filter (green=passing, white=disabled)
- Bottom : Williams R, MA, and volume current values
---
Usage Tips
- Add the script : Indicators → My Scripts → Williams R Zone Scalper v1.0 → Add to BTC/USD chart on 5 min.
- Defaults : Optimized for BTC/USD.
- Forex majors : Raise `chopThr` to ~42.
- Stocks/high-beta : Enable `useBBW`.
- Enable SL/TP : Toggle `useSL`; stop-loss = 1.5×ATR, take-profit = 2×ATR apply automatically.
---
Common Questions
- * Why not trade every Williams R reversal?*
Raw Williams R whipsaws in sideways markets. Choppiness and volume filters reduce false entries.
- *Can I use on 1 min or 15 min?*
Yes—adjust ATR length or thresholds accordingly. Defaults target 5 min scalping.
- *What if all filters are on?*
Fewer arrows, higher-quality signals. Expect ~10 % boost in average win size.
---
Disclaimer & License
Trading carries risk of loss. Use this script “as is” under the Mozilla Public License 2.0 (mozilla.org). Always backtest, paper-trade, and adjust risk settings to your own profile.
---
Credits & References
- Pine Script v6, using TradingView’s built-in `ta.supertrend()`.
- TradingView House Rules: www.tradingview.com
Goodluck!
BullByte