MACD Volume Strategy (BBO + MACD State, Reversal Type)Overview
MACD Volume Strategy (BBO + MACD State, Reversal Type) is a momentum-based reversal system that combines MACD crossover logic with volume filtering to enhance signal accuracy and minimize noise. It aims to identify structural trend shifts and manage risk using predefined parameters.
※This strategy is for educational and research purposes only. All results are based on historical simulations and do not guarantee future performance.
Strategy Objectives
Identify early trend transitions with high probability
Filter entries using volume dynamics to validate momentum
Maintain continuous exposure using a reversal-style model
Apply a consistent 1:1.5 risk-to-reward ratio per trade
Key Features
Integrated MACD and volume oscillator filtering
Zero repainting (all signals confirmed on closed candles)
Automatic position flipping for seamless direction shifts
Stop-loss and take-profit based on recent structural highs/lows
Trading Rules
Long Entry Conditions
MACD crosses above the zero line (BBO Buy arrow)
Volume oscillator is positive (short EMA > long EMA)
MACD is above the signal line
Close any existing short and enter a new long
Short Entry Conditions
MACD crosses below the zero line (BBO Sell arrow)
Volume oscillator is positive
MACD is below the signal line
Close any existing long and enter a new short
Exit Rules
Take Profit (TP) = Entry ± (risk distance × 1.5)
Stop Loss (SL) = Recent swing low (for long) or high (for short)
Early Exit = Triggered when a reversal signal appears (flip logic)
Risk Management Parameters
Pair: ETH/USD
Timeframe: 10-minute
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pip
Risk per Trade: 5% of account equity (adjusted for sustainable practice)
Total Trades: 312 (backtest on selected dataset)
※Risk parameters are fully configurable and should be adjusted to suit each trader's personal setup and broker conditions.
Parameters & Configurations
Volume Short Length: 6
Volume Long Length: 12
MACD Fast Length: 11
MACD Slow Length: 21
Signal Smoothing: 10
Oscillator MA Type: SMA
Signal Line MA Type: SMA
Visual Support
Green arrow = Long entry
Red arrow = Short entry
MACD lines, signal line, and histogram
SL/TP markers plotted directly on the chart
Strategic Advantages & Uniqueness
Volume filtering eliminates low-participation, weak signals
Structurally aligned SL/TP based on recent market pivots
No repainting — decisions are made only on closed candles
Always in the market due to the reversal-style framework
Inspirations & Attribution
This strategy is inspired by the excellent work of:
Bitcoinblockchainonline – “BBO_Roxana_Signals MACD + vol”
Leveraging MACD zero-line cross and volume oscillator for intuitive signal generation.
HasanRifat – “MACD Fake Filter ”
Introduced a signal filter using MACD wave height averaging to reduce false positives.
This strategy builds upon those ideas to create a more automated, risk-aware, and technically adaptive system.
Summary
MACD Volume Strategy is a clean, logic-first automated trading system built for precision-seeking traders. It avoids discretionary bias and provides consistent signal logic under backtested historical conditions.
100% mechanical — no discretionary input required
Designed for high-confidence entries
Can be extended with filters, alerts, or trailing stops
※Strategy performance depends on market context. Past performance is not indicative of future results. Use with proper risk management and careful configuration.
Indicadores e estratégias
CISD with Alerts [neo|]█ OVERVIEW
CISD (or Change in State of Delivery) is an ICT concept and reversal pattern which may allow traders to identify reversals or changes in market structure early, compared to using traditional market structure. This script aims to correctly identify, and update these levels and provide alerts, so that traders can take advantage of this concept with ease.
█ CONCEPTS
Simply put, CISD may be identified when price closes above the open of the candle which started the most recent downtrend or liquidity sweep. Generally, it is most powerful when applied to key points in the market as a confirmation from where you may want price to reverse.
For example, when price is in a downtrend, we take the open of the last consecutive downwards candle and observe the CISD once price closes above it, beginning an uptrend.
Examples:
COMEX:GC1!
CME_MINI:NQ1!
█ How to use
To use the indicator, simply apply it to your chart and modify any of your desired inputs.
• Bullish CISD color allows you to change the color of +CISD levels.
• Bearish CISD color allows you to change the color of -CISD levels.
• Line width allows you to modify the width of +-CISD lines.
• Line extension bars allows you to change how far ahead CISD levels are drawn (by default it is 5).
• Keep old CISD levels will allow you to preserve all past CISD levels if you would like to observe the logic.
• Enable stat table will let you add a table on your chart which will tell you the current CISD trend, as well as your ticker and timeframe.
• Table position allows you to customize where the table will appear on your chart.
EMA Price Range by tuanduongEMA Price Range Indicator – Dynamic Range Analysis with Custom EMA (tuanduong2511)
Overview
The EMA Price Range Indicator is designed to help traders visualize the distance between price action and a key Exponential Moving Average (EMA). This indicator dynamically calculates the range from each candle to a user-defined EMA and displays it in a real-time table. By understanding the relationship between price and the EMA, traders can better gauge potential support, resistance, and overextension in the market.
Key Features
✅ Customizable EMA – Allows users to choose the EMA period that best suits their strategy (default: 144).
✅ Real-Time Range Calculation – Computes the absolute difference between the EMA and the price (using the high or low, depending on whether the candle is above or below the EMA).
✅ Minimalist UI – The EMA is plotted directly on the chart, while a small table in the bottom-right corner provides numerical insights, reducing chart clutter.
✅ Versatile Use Cases – Suitable for trend-following traders (identifying pullbacks to EMA) and mean-reversion traders (spotting extended price movements).
How It Works
User-Defined EMA:
The script calculates an Exponential Moving Average (EMA) based on the selected period.
EMA adapts dynamically, giving more weight to recent price movements.
Range Calculation:
If the price is above the EMA, the range is measured from the high point of the candle to the EMA.
If the price is below the EMA, the range is measured from the low point of the candle to the EMA.
This approach ensures that we’re measuring the most relevant distance for price interaction.
Live Table Display:
The current EMA value and the distance (range) from the price are displayed in a small table in the bottom-right corner of the chart.
How to Use It
📌 Trend Traders: Use the indicator to track pullbacks to key EMAs (e.g., EMA 50, 144, or 200). When the price is far from the EMA, it may indicate an overextended trend or potential retracement zone.
📌 Mean Reversion Traders: Look for extreme deviations between price and the EMA. Large distances can signal potential price snapbacks to the mean.
📌 Scalping & Day Trading: Short-term traders can use it with fast EMAs (e.g., EMA 21 or 34) to measure quick price movements relative to short-term momentum.
Why This Indicator?
Unlike traditional EMA indicators, which only plot a moving average, this script provides quantifiable price distance to the EMA, helping traders make data-driven decisions. It allows traders to answer:
✅ Is the price stretched too far from the EMA?
✅ Should I wait for a pullback before entering?
✅ Is the trend strong, or is the price losing momentum?
By integrating EMA-based range analysis, traders gain a clearer understanding of market conditions and can improve their entry, exit, and risk management strategies.
VIDYA Auto-Trading(Reversal Logic)Overview
This script is a dynamic trend-following strategy based on the Variable Index Dynamic Average (VIDYA). It adapts in real time to market volatility, aiming to enhance entry precision and optimize risk management.
⚠️ This strategy is intended for educational and research purposes. Past performance does not guarantee future results. All results are based on historical simulations using fixed parameters.
Strategy Objectives
The objective of this strategy is to respond swiftly to sudden price movements and trend reversals, providing consistent and reliable trade signals under historical testing conditions. It is designed to be intuitive and efficient for traders of all levels.
Key Features
Momentum Sensitivity via VIDYA: Reacts quickly to momentum shifts, allowing for accurate trend-following entries.
Volatility-Based ATR Bands: Automatically adjusts stop levels and entry conditions based on current market volatility.
Intuitive Trend Visualization: Uptrends are marked with green zones, and downtrends with red zones, giving traders clear visual guidance.
Trading Rules
Long Entry: Triggered when price crosses above the upper band. Any existing short position is closed.
Short Entry: Triggered when price crosses below the lower band. Any existing long position is closed.
Exit Conditions: Positions are reversed based on signal changes, using a position reversal strategy.
Risk Management Parameters
Market: ETHUSD(5M)
Account Size: $3,000 (reasonable approximation for individual traders)
Commission: 0.02%
Slippage: 2 pip
Risk per Trade: 5% of account equity (adjusted to comply with TradingView guidelines for realistic risk levels)
Number of Trades: 251 (based on backtest over the selected dataset)
⚠️ The risk per trade and other values can be customized. Users are encouraged to adapt these to their individual needs and broker conditions.
Trading Parameters & Considerations
VIDYA Length: 10
VIDYA Momentum: 20
Distance factor for upper/lower bands: 2
Source: close
Visual Support
Trend zones, entry points, and directional shifts are clearly plotted on the chart. These visual cues enhance the analytical experience and support faster decision-making.
Visual elements are designed to improve interpretability and are not intended as financial advice or trade signals.
Strategy Improvements & Uniqueness
Inspired by the public work of BigBeluga, this script evolves the original concept with meaningful enhancements. By combining VIDYA and ATR bands, it offers greater adaptability and practical value compared to conventional trend-following strategies.
This adaptation is original work and not a direct copy. Improvements are designed to enhance usability, risk control, and market responsiveness.
Summary
This strategy offers a responsive and adaptive approach to trend trading, built on momentum detection and volatility-adjusted risk management. It balances clarity, precision, and practicality—making it a powerful tool for traders seeking reliable trend signals.
⚠️ All results are based on historical data and are subject to change under different market conditions. This script does not guarantee profit and should be used with caution and proper risk management.
Estrategia 15 MINThe 50-EMA and 200-EMA are exponential moving averages (EMA) used in technical analysis to identify trends. The 50-EMA is used to analyze short- and medium-term trends, while the 200-EMA is used to analyze long-term trends.
50-EMA
Averaged over 50 periods
Allows for faster reaction to price changes
Used to analyze short- and medium-term trends
200-EMA
Averaged over 200 periods
Indicates an overall trend
Used to analyze long-term trends
Swing Structure + Session Sweeps“Scalper-Friendly Trend & Sweep Detector”
Swing Structure + Session Sweeps with TEMA Cloud
This powerful all-in-one tool is designed for intraday traders, swing traders, and scalpers who want to spot high-probability reversals, trend continuations, and liquidity sweeps with confluence.
🔹 Core Features
Multi-layered TEMA Cloud (9, 20, 34, 50) for clear trend structure
Dynamic Bull/Bear labels when the trend flips
Centerline for TEMA 20 to visualize core trend direction
Session-based liquidity sweep detection (Asia, London, NY)
Volume and absorption dots to catch hidden pressure
Swing high/low detection (external and internal)
Visual VWAP, daily highs/lows, and customizable session zones
Optional alerts for volume spikes, absorption, and reversal sweeps
📈 Use it to:
Confirm directional bias
Anticipate pullbacks and breakouts
Identify volume-backed reversals
Align trades with session strength and swing confluence
⚙️ Built for scalpers, intraday opportunists, and precision chartists alike.
VWAP StrategyVWAP and volatility filters for structured intraday trades.
How the Strategy Works
1. VWAP Anchored to Session
VWAP is calculated from the start of each trading day.
Standard deviations are used to create bands above/below the VWAP.
2. Entry Triggers: Al Brooks H1/H2 and L1/L2
H1/H2 (Long Entry): Opens below 2nd lower deviation, closes above it.
L1/L2 (Short Entry): Opens above 2nd upper deviation, closes below it.
3. Volatility Filter (ATR)
Skips trades when deviation bands are too tight (< 3 ATRs).
4. Stop Loss
Based on the signal bar’s high/low ± stop buffer.
Longs: signalBarLow - stopBuffer
Shorts: signalBarHigh + stopBuffer
5. Take Profit / Exit Target
Exit logic is customizable per side:
VWAP, Deviation Band, or None
6. Safety Exit
Exits early if X consecutive bars go against the trade.
Longs: X red bars
Shorts: X green bars
Explanation of Strategy Inputs
- Stop Buffer: Distance from signal bar for stop-loss.
- Long/Short Exit Rule: VWAP, Deviation Band, or None
- Long/Short Target Deviation: Standard deviation for target exit.
- Enable Safety Exit: Toggle emergency exit.
- Opposing Bars: Number of opposing candles before safety exit.
- Allow Long/Short Trades: Enable or disable entry side.
- Show VWAP/Entry Bands: Toggle visual aids.
- Highlight Low Vol Zones: Orange shading for low volatility skips.
Tuning Tips
- Stop buffer: Use 1–5 points.
- Target deviation: Start with VWAP. In strong trends use 2nd deviation and turn off the counter-trend entry.
- Safety exit: 3 bars recommended.
- Disable short/long side to focus on one type of reversal.
Backtest Setup Suggestions
- initial_capital = 2000
- default_qty_value = 1 (fixed contracts or percent-of-equity)
BIN Based Support and Resistance [SS]This indicator presents a version of an alternative way to determine support and resistance, using a method called "Bins".
Bins provide for a flexible and interesting way to determine support and resistance levels.
First off, let's discuss BINS:
Bins are ranges or containers into which your data points can be sorted. For example, if you're grouping ages, you might have bins like 0–18, 19–35, 36–50, and 51+. Any data point within these intervals gets placed in the corresponding bin.
Binning simplifies complex data sets by grouping values into categories. This is useful for such things as
Visualizing data in histograms or bar charts.
Reducing noise and highlighting trends.
This indicator groups the price action into 10 separate bins. It determines the Support / Resistance level by averaging the values in the Bins to find an iteration of the "central tendency" or average reoccurring value.
Pros and Cons
Since this is a different approach to support and resistance, I think its important to highlight some of the pros and advantages, but also be open about the cons.
First off the PROS
Bin Based Support and Resistance Levels dynamically adjust to ranges as opposed to hard / fast peaks and valleys. This makes them better at analyzing price action vs simply drawing lines at random peaks and valleys.
Because Bins are analyzing ALL PA within a period's max and min range, Bin Support and Resistance can actually be used similar to Volume profile, where you are able to identify a pseudo-POC, or areas where price tends to consolidate. Take a look at this example on SPY:
You can see these 2 SR lines are close together. This represents that this general price range is an area where price likes to accumulate/consolidate. You can see the SPY ended up coming back to this range and consolidating there for a bit.
This is a strength of using a BIN based approach to calculating support and resistance, because as indicated before, it looks at price action vs peaks and valleys.
As a tip, these areas are areas you want to wait for a break in one direction or the other.
The indicator provides for backtest results of the support and resistance lines, to see how many times certain areas acted as resistance or support. Because this is analyzing and distributing PA evenly throughout the period's max and min, the indicator can tell you which areas tend to have higher rejection zones and which have higher support zones.
Now the CONS
Because bin based SR take an average approach, the SR lines can sometimes be slightly broken before the ticker finds rejection:
To combat this, make sure there is confirmed support. How the indicator actually backtests these lines is by waiting to see if the ticker has 3 consecutive closes above the support line or below the resistance line. So these are things to be mindful of.
It doesn't consider pivots. Most support and resistance indicators either identify max and min peaks and valleys or use pivot points. Pivot points are a great way to identify peaks and valleys and thus by extension support and resistance. However, this is also somewhat of a strength, as using BINS forces the indicator to consider ALL price action and not just the extremes (highs and lows).
Can be slightly skewed in highly volatile environments. Any time there is a massive drop or rally, it can skew the indicator to give extreme ranges to both ends. For example, the Tariff news collapse on ES1!:
Owning to limitations in lookback length, sometimes the min and max range can be exceeded and other traditional areas of support / resistance is where a ticker will find support.
Using the indicator
Here are some basic use/functionalities of the indicator:
Selecting display of backtest results: You can select to have the backtest results shown in a table:
Or directly on the lines:
Inversely, you can toggle them off completely:
You can modify the lookback length. The suggested lookback length is between 250 to 500 candles on smaller timeframes. I also suggest 252 on daily timeframes (which represents 1 trading year).
And that's the indicator!
It is very easy to use, so you should pick it up in no time!
Enjoy and as always, 🚀🚀 safe trades! 🚀🚀
GQT GPT - Volume-based Support & Resistance Zones V2搞钱兔,搞钱是为了更好的生活。
Title: GQT GPT - Volume-based Support & Resistance Zones V2
Overview:
This strategy is implemented in PineScript v5 and is designed to identify key support and resistance zones based on volume-driven fractal analysis on a 1-hour timeframe. It computes fractal high points (for resistance) and fractal low points (for support) using volume moving averages and specific price action criteria. These zones are visually represented on the chart with customizable lines and zone fills.
Trading Logic:
• Entry: The strategy initiates a long position when the price crosses into the support zone (i.e., when the price drops into a predetermined support area).
• Exit: The long position is closed when the price enters the resistance zone (i.e., when the price rises into a predetermined resistance area).
• Time Frame: Trading signals are generated solely from the 1-hour chart. The strategy is only active within a specified start and end date.
• Note: Only long trades are executed; short selling is not part of the strategy.
Visualization and Parameters:
• Support/Resistance Zones: The zones are drawn based on calculated fractal values, with options to extend the lines to the right for easier tracking.
• Customization: Users can configure the appearance, such as line style (solid, dotted, dashed), line width, colors, and label positions.
• Volume Filtering: A volume moving average threshold is used to confirm the fractal signals, enhancing the reliability of the support and resistance levels.
• Alerts: The strategy includes alert conditions for when the price enters the support or resistance zones, allowing for timely notifications.
⸻
搞钱兔,搞钱是为了更好的生活。
标题: GQT GPT - 基于成交量的支撑与阻力区间 V2
概述:
本策略使用 PineScript v5 实现,旨在基于成交量驱动的分形分析,在1小时级别的图表上识别关键支撑与阻力区间。策略通过成交量移动平均线和特定的价格行为标准计算分形高点(阻力)和分形低点(支撑),并以自定义的线条和区间填充形式直观地显示在图表上。
交易逻辑:
• 进场条件: 当价格进入支撑区间(即价格跌入预设支撑区域)时,策略在没有持仓的情况下发出做多信号。
• 离场条件: 当价格进入阻力区间(即价格上升至预设阻力区域)时,持有多头头寸则会被平仓。
• 时间范围: 策略的信号仅基于1小时级别的图表,并且仅在指定的开始日期与结束日期之间生效。
• 备注: 本策略仅执行多头交易,不进行空头操作。
可视化与参数设置:
• 支撑/阻力区间: 根据计算得出的分形值绘制支撑与阻力线,可选择将线条延伸至右侧,便于后续观察。
• 自定义选项: 用户可以调整线条样式(实线、点线、虚线)、线宽、颜色及标签位置,以满足个性化需求。
• 成交量过滤: 策略使用成交量移动平均阈值来确认分形信号,提高支撑和阻力区间的有效性。
• 警报功能: 当价格进入支撑或阻力区间时,策略会触发警报条件,方便用户及时关注市场变化。
⸻
Body Percentage of Range (Colored)Short Description:
This indicator measures the dominance of the candle's body relative to its total range (High - Low), providing a visual gauge of intra-candle strength versus indecision. Columns are colored based on whether the body constitutes more or less than a defined percentage (default 50%) of the candle's total height.
Detailed Description:
What it Does:
The "Body Percentage of Range" indicator calculates, for each candle, what percentage of the total price range (High minus Low) is occupied by the candle's body (absolute difference between Open and Close).
A value of 100% means the candle has no wicks (a Marubozu), indicating strong conviction during that period.
A value of 0% means the candle has no body (a Doji), indicating perfect indecision.
Values in between show the relative balance between the directional move (body) and the price exploration/rejection (wicks).
How to Interpret:
The indicator plots this percentage as columns:
Column Height: Represents the percentage of the body relative to the total range. Higher columns indicate a larger body dominance.
Column Color:
Green Columns: Appear when the body percentage is above the user-defined threshold (default 50%). This suggests that the directional move within the candle was stronger than the indecision (wicks). Often seen during trending moves or strong momentum candles.
Red Columns: Appear when the body percentage is at or below the user-defined threshold (default 50%). This suggests that wicks dominate the candle (body is 50% or less of the range), indicating significant indecision, struggle between buyers and sellers, or potential reversals. These are common in choppy, consolidating, or reversal market conditions.
Orange Line (Optional MA): A Simple Moving Average (SMA) of the body percentages is plotted to help smooth the readings and identify broader periods where candle structure indicates more trending (high MA) vs. ranging/indecisive (low MA) characteristics.
Potential Use Cases:
Identifying Choppy vs. Trending Markets: Sustained periods of low, predominantly red columns (and often a low/declining MA) can signal a choppy, range-bound market where trend-following strategies might underperform. Conversely, periods with frequent high, green columns suggest a more trending environment.
Confirming Breakouts/Momentum: High green columns appearing alongside increased volume during a breakout can add conviction to the move's strength.
Spotting Potential Exhaustion/Reversals: A very tall green column after a strong trend, followed immediately by a low red column (like a Doji or Spinning Top pattern appearing on the price chart), might signal potential exhaustion or a pending reversal, indicating indecision has suddenly entered the market.
Filtering Entries: Traders might avoid taking entries (especially trend-following ones) when the indicator shows a consistent pattern of low red columns, suggesting high market indecision.
Settings:
Color Threshold %: Allows you to set the percentage level above which columns turn green (default is 50%).
Smoothing MA Length: Adjusts the lookback period for the Simple Moving Average.
Disclaimer:
This indicator is a tool for technical analysis and should be used in conjunction with other methods (like price action, volume analysis, other indicators) and robust risk management. It does not provide direct buy/sell signals and past performance is not indicative of future results.
FunkyQuokka's $ Volume💡 Why $ Volume Matters
Share volume alone is a half-truth — 1M shares traded at $5 isn’t the same as 1M shares at $500. That’s where dollar volume steps in, offering a far more accurate view of institutional interest, breakout validity, liquidity zones and overall trader conviction.
📈 Features:
Clean histogram of dollar volume (close × volume)
Orange line showing customizable average $ volume
K/M/B formatting for axis scale (no huge ugly numbers)
Minimal design to blend into a multi-pane layout
⚙️ Inputs:
Tweakable average length – defaults to 20
By FunkyQuokka 🦘
Smart Money Pivot Strategy [Jason Kasei]This strategy is designed to identify key pivot points (Pivot High and Pivot Low) in the market and leverage the "Smart Money" concept to capture price breakout opportunities. It supports both long and short trades, offering customizable stop-loss (SL) and take-profit (TP) settings, while visually plotting pivot points and breakout signals on the chart.
Core Features
Pivot Point Detection:
Utilizes ta.pivothigh and ta.pivotlow functions to detect the highest (Pivot High) and lowest (Pivot Low) points within a specified period (default: 20 bars).
Trading Signals:
Long Signal: Triggered when the price breaks above a previous Pivot High, indicating a potential uptrend.
Short Signal: Triggered when the price breaks below a previous Pivot Low, indicating a potential downtrend.
How It Works
Detects Pivot High (PH) and Pivot Low (PL) over the specified period and records their price and time.
Triggers a long entry when the price breaks above a Pivot High and a short entry when it falls below a Pivot Low.
Sets exit conditions automatically based on predefined SL and TP percentages after entry.
Plots breakout points and levels on the chart for analysis.
Considerations
The strategy relies on accurate pivot point detection; adjust the period parameter based on market volatility.
In highly volatile markets, consider widening the stop loss to avoid frequent triggering.
Combine with other indicators or analysis methods to validate signals and avoid blind trading.
Dual MACD Strategy [Jason Kasei]Dual MACD Design:
MACD1 (Short-Term): Default fast length of 34, slow length of 144, and signal smoothing of 9, used to detect short-term trend changes.
MACD2 (Long-Term): Default fast length of 100, slow length of 200, and signal smoothing of 50, used to assess long-term trend direction.
Users can customize the fast, slow, and signal lengths and choose between SMA (Simple Moving Average) or EMA (Exponential Moving Average) for calculations.
Trading Logic:
Long Condition: MACD1 histogram crosses above the zero line (short-term bullish), MACD2 histogram is positive (long-term bullish), and MACD2 histogram has just crossed above zero with a deepening green (trend confirmation).
Short Condition: MACD1 histogram crosses below the zero line (short-term bearish), MACD2 histogram is negative (long-term bearish), and MACD2 histogram has just crossed below zero with a deepening red (trend confirmation).
Risk Management:
Stop Loss: Default at 1% (adjustable, minimum 0.1%), dynamically calculated based on entry price.
Take Profit: Default at 1.5% (adjustable, minimum 0.1%), dynamically calculated based on entry price.
Trades are processed at candle close to ensure signal stability.
Tendencia y Fuerza [4H - Sin Límites]This custom indicator combines two key elements for analyzing financial markets on a 4-hour timeframe:
Trend direction (bullish/bearish).
Brute force of the movement (no numerical limits).
🔍 Main Components:
1. Trend Line (Green/Red):
Green: Uptrend (20 EMA > 50 EMA on the 4-hour period).
Red: Downtrend (20 EMA < 50 EMA on the 4-hour period).
Purpose: To quickly identify market direction.
--------------------------------------------------------------------------------------------------------------------
Gufs VWAPI expanded on a public script to be able to show customizable horizontal price lines (and standard) on multiple timeframes (session, week, month, year) with corresponding text labels.
I like my charts clutter free, and this helps me accomplish that.
Let me know what you think, it's my first publish. Thanks!
StrategyTemplate-Pro-v1# TrendScope Pro – Adaptive Trend-Following Strategy
### 🔍 Overview
TrendScope Pro is a highly adaptable and professional Pine Script strategy template designed for disciplined, trend-based trading. Built using Pine Script v6, it supports modular configuration, risk control, and flexible exit management to meet both beginner and advanced trader needs.
---
### 📐 Core Logic
The strategy focuses on confirming strong trend entries using a combination of:
- **EMA Crossovers**: Short-term trend detection
- **Higher Timeframe EMA**: Confirms overall market direction
- **MACD**: Measures momentum of price movement
- **RSI & ADX Filters** *(optional)*: Adds further confirmation
- **ATR**: Used to dynamically set profit targets, stop losses, and trailing logic
---
### 📊 Entry Rules
#### 🟢 Buy Entry:
- Price is above EMA from higher timeframe (or custom long EMA)
- Fast EMA > Slow EMA (bullish crossover)
- MACD Line > Signal Line (positive momentum)
- Candle is bullish and strong (body/candle ratio threshold)
- RSI not in overbought zone *(if enabled)*
- ADX above threshold *(if enabled)*
- Cooldown period (X bars) passed since last trade
#### 🔴 Sell Entry:
- Price below EMA200 or long EMA
- Fast EMA < Slow EMA
- MACD Line < Signal Line
- Bearish candle with sufficient strength
- RSI not in oversold zone *(if enabled)*
- ADX confirms trend strength *(if enabled)*
---
### 🔁 Exit Options
1. **Fixed TP/SL** using ATR multipliers
2. **Trailing Stop** with adjustable ATR-based logic
3. **Partial Exit** at intermediate profit target (e.g., ATR * 1.5), remaining position uses trailing
4. **Profit Lock**: Closes trade early if sufficient profit is reached and the candle shows reversal behavior
5. **Max Loss Limit** per trade to protect capital
---
### ⚙️ Customization
| Module | Description |
|--------|-------------|
| RSI / ADX | Enable or disable as filters |
| EMA Source | Use custom or higher timeframe |
| Dynamic Size | Increase size when signal is strong |
| Trailing Stop | Replace fixed SL with trailing logic |
| Partial Exit | Take partial profits earlier |
| Profit Lock | Exit trades early on reversal signs |
| Alerts | Get real-time alerts on entry |
---
### 📦 Use Cases
- A ready-to-use base for trend-following strategies
- Can be expanded with custom indicators
- Perfect for traders who value logic, safety, and modularity
- Suitable for scalping or swing trading depending on timeframe
---
### 👨💻 Author
Published by: **emad_alwan**
Pine Script v6 | License: Open Use | Fully Commented & Modular
MFI Module (Raw Output)Outputs raw Money Flow Index (MFI) values for modular use in other scripts.
Useful for confluence-based strategies that reference external modules via request.security().
Malama's big MACDMalama's Big MACD" is a versatile TradingView indicator designed to help traders identify high-probability buy and sell opportunities in fast-moving markets, particularly on short timeframes like 1-5 minute charts. It solves the common problem of filtering out market noise by combining a predictive price model (Stochastic Price Predictor, or SPP) with a comprehensive set of momentum and trend indicators (MACD, RSI, moving averages, and more). Whether you're scalping quick trades or confirming longer-term trends, this tool provides clear signals and visual cues to boost confidence and timing.
The indicator operates in two main layers:
Stochastic Price Predictor (SPP): This predictive engine forecasts short-term price movements using a simplified Monte Carlo simulation. It analyzes recent price changes, volatility (via ATR), and Stochastic RSI to estimate the likelihood of an upward or downward move within a set horizon (e.g., 3 bars). Buy signals trigger when the probability of an upward move exceeds a confidence threshold (default 65%) and the market isn’t overbought, while sell signals activate for downward moves when not oversold.
Comprehensive Indicator Suite: This layer combines classic tools like MACD (for momentum), RSI (for overbought/oversold conditions), moving averages (for trend direction), and ATR (for volatility-based levels). It generates signals when these align—e.g., a bullish MACD crossover paired with an oversold RSI and a rising fast MA. A unique "JKH RSI" (a fast RSI variant) adds extra confirmation, while manual sentiment input lets you tweak signals based on your market bias.
The script overlays these signals on your chart, color-codes trends, and highlights key levels (like stop-loss and profit targets) to make decision-making intuitive.
How to Use It
Adding to TradingView:
Copy the script into TradingView’s Pine Editor (under "Indicators" > "Pine Editor").
Click "Save," name it (e.g., "Malama's Big MACD"), then "Add to Chart."
Configuring Settings:
Open the indicator’s settings via the gear icon.
Adjust SPP settings (e.g., "Lookback Period" to 5 for short-term focus, "Confidence Threshold" to 65% for faster signals).
Tweak the Comprehensive settings (e.g., MACD lengths: 5/13/5 for scalping, or longer like 12/26/9 for swing trading).
Toggle visuals (e.g., enable "Show Predicted Range" or "Highlight Volume Spikes") under "Visual Settings."
Interpreting Signals:
SPP Signals: Green "BUY (SPP)" labels below bars or red "SELL (SPP)" above bars indicate predictive opportunities.
Comprehensive Signals: Lime "BUY (Comp)" or red "SELL (Comp)" labels show confirmed momentum trades. Blue/orange MACD arrows and green/red RSI dots add context.
Trend Line: Green means uptrend (fast MA > slow MA), red is downtrend, orange is neutral.
Extras: Purple ATR lines suggest stop-loss/profit targets; yellow backgrounds flag volume spikes.
Tips:
Beginners: Start with default settings and focus on SPP signals for quick trades. Use ATR lines to set safe exits.
Pros: Experiment with "Sentiment Input" (-1 to 1) to bias signals, or adjust MACD/MA lengths for your timeframe. Pair with volume spikes for breakout confirmation.
Originality
What makes "Malama's Big MACD" stand out is its hybrid approach: it fuses a predictive Monte Carlo model (SPP) with a robust multi-indicator confirmation system. Unlike standard MACD or RSI tools, it offers:
Short-Term Prediction: SPP’s probability-based signals cater to scalpers, rare in most indicators.
Layered Confirmation: Combines MACD, RSI, fast/slow MAs, and a custom JKH RSI for stronger filtering.
Visual Clarity: Trend coloring, predicted price ranges, and ATR-based levels make it a one-stop shop.
Flexibility: Adjustable for scalping or swing trading, with manual sentiment for personalized tuning.
This isn’t just another MACD—it’s a dynamic, all-in-one toolkit that adapts to your trading style, blending foresight with precision.
Zig Zag Trend Metrics“ Zig Zag Trend Metrics ” is a highly versatile indicator, built on the classic Zig Zag concept and thoughtfully designed for technical traders seeking a deeper, more structured view of market dynamics. This tool identifies significant swing highs and lows, classifies them, and annotates each with key metrics, offering a precise snapshot of each movement. It enhances visual analysis by drawing connecting lines that outline the flow of market structure, making trend progression and reversals instantly recognizable. Beyond visual mapping, it features a compact, real-time statistics table that calculates the average price and time deltas for both bullish and bearish swings, giving traders deep insights into trend momentum and rhythm. With extensive customization options, this indicator adapts seamlessly to vast trading styles or chart setups, empowering traders to spot patterns, evaluate trend strength, and make more confident, data-backed decisions.
❖ FEATURES
✦ Automatic Swing Detection
At its core, this indicator automatically identifies swing highs and lows based on a customizable lookback period (default: 10 bars).
✦ Labeling Swing Points
Each swing is visualized with a label that includes:
Swing Classification : “HH” (Higher High), “LH” (Lower High), “LL” (Lower Low), or “HL” (Higher Low).
Price Difference : Displayed in percentage or absolute value from the previous opposite swing.
Time Difference : The number of bars since the previous swing of the opposite type.
These labels offer traders clear, immediate insight into price movements and structural changes.
✦ Visual Lines
The indicator draws three types of lines:
Bullish Lines: Connect recent swing lows to new swing highs, indicating uptrends.
Bearish Lines: Connect recent swing highs to new swing lows, indicating downtrends.
Range Lines: Connect consecutive highs or lows to outline price channels.
Each line type can be color-coded and customized for visibility.
✦ Statistics Table
An on-screen metrics table provides a live summary of trends. Script uses Relative Averaging to smooth price and time changes. This prevents outliers from distorting the data and provides a more reliable sense of typical swing behavior.
Uptrend Metrics: Shows average price and time differences from recent bullish swings.
Downtrend Metrics: Shows the same for bearish swings.
🛠️ Customization Options
Ability to tailor the indicator to suit their strategy and aesthetic preferences:
Swing Period: Adjust sensitivity to short- or long-term swings.
Color Settings: Customize line and label colors.
Label Display: Choose between absolute or percentage price differences.
Table Settings: Modify size, location, or visibility.
This makes the indicator highly flexible and useful across various timeframes and assets.
PivotLabelsLibrary "PivotLabels"
drawPivots(qtyLabels, leftLegs, rightLegs)
Displays a label for each of the last `qtyLabels` pivots.
Colors high pivots in green, low pivots in red, and breached pivots in gray.
Parameters:
qtyLabels (int) : (simple int) Quantity of last labels to display.
leftLegs (int) : (simple int) Left pivot legs.
rightLegs (int) : (simple int) Right pivot legs.
Returns: Nothing.
Gioteen-NormThe "Gioteen-Norm" indicator is a versatile and powerful technical analysis tool designed to help traders identify key market conditions such as divergences, overbought/oversold levels, and trend strength. By normalizing price data relative to a moving average and standard deviation, this indicator provides a unique perspective on price behavior, making it easier to spot potential reversals or continuations in the market.
The indicator calculates a normalized value based on the difference between the selected price and its moving average, scaled by the standard deviation over a user-defined period. Additionally, an optional moving average of this normalized value (Green line) can be plotted to smooth the output and enhance signal clarity. This dual-line approach makes it an excellent tool for both short-term and long-term traders.
***Key Features
Divergence Detection: The Gioteen-Norm excels at identifying divergences between price action and the normalized indicator value. For example, if the price makes a higher high while Red line forms a lower high, it may signal a bearish divergence, hinting at a potential reversal.
Overbought/Oversold Conditions: Extreme values of Red line (e.g., significantly above or below zero) can indicate overbought or oversold conditions, helping traders anticipate pullbacks or bounces.
Trend Strength Insight: The normalized output reflects how far the price deviates from its average, providing a measure of momentum and trend strength.
**Customizable Parameters
Traders can adjust the period, moving average type, applied price, and shift to suit their trading style and timeframe.
**How It Works
Label1 (Red Line): Represents the normalized price deviation from a user-selected moving average (SMA, EMA, SMMA, or LWMA) divided by the standard deviation over the specified period. This line highlights the relative position of the price compared to its historical range.
Label2 (Green Line, Optional): A moving average of Label1, which smooths the normalized data to reduce noise and provide clearer signals. This can be toggled on or off via the "Draw MA" option.
**Inputs
Period: Length of the lookback period for normalization (default: 100).
MA Method: Type of moving average for normalization (SMA, EMA, SMMA, LWMA; default: EMA).
Applied Price: Price type used for calculation (Close, Open, High, Low, HL2, HLC3, HLCC4; default: Close).
Shift: Shifts the indicator forward or backward (default: 0).
Draw MA: Toggle the display of the Label2 moving average (default: true).
MA Period: Length of the moving average for Label2 (default: 50).
MA Method (Label2): Type of moving average for Label2 (SMA, EMA, SMMA, LWMA; default: SMA).
**How to Use
Divergence Trading: Look for discrepancies between price action and Label1. A bullish divergence (higher low in Label1 vs. lower low in price) may suggest a buying opportunity, while a bearish divergence could indicate a selling opportunity.
Overbought/Oversold Levels: Monitor extreme Label1 values. For instance, values significantly above +2 or below -2 could indicate overextension, though traders should define thresholds based on the asset and timeframe.
Trend Confirmation: Use Label2 to confirm trend direction. A rising Label2 suggests increasing bullish momentum, while a declining Label2 may indicate bearish pressure.
Combine with Other Tools: Pair Gioteen-Norm with support/resistance levels, RSI, or volume indicators for a more robust trading strategy.
**Notes
The indicator is non-overlay, meaning it plots below the price chart in a separate panel.
Avoid using a Period value of 1, as it may lead to unstable results due to insufficient data for standard deviation calculation.
This tool is best used as part of a broader trading system rather than in isolation.
**Why Use Gioteen-Norm?
The Gioteen-Norm indicator offers a fresh take on price normalization, blending statistical analysis with moving average techniques. Its flexibility and clarity make it suitable for traders of all levels—whether you're scalping on short timeframes or analyzing long-term trends. By publishing this for free, I hope to contribute to the TradingView community and help traders uncover hidden opportunities in the markets.
**Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always backtest and validate any strategy before trading with real capital, and use proper risk management.
Today's Daily LevelsTrack daily price action like a pro with instant visibility of key levels, percentages, and P&L values - all in one clean view.
• Shows Daily Open, High, Low & Median levels
• Dynamic color-coding: green above open, red below
• Real-time price labels with:
Exact price levels
% distance between levels
Point values
Dollar values per contract
• Auto-repaints on timeframe changes
• 30min alerts for median crosses