Golden & Death CrossThis indicator highlights Golden Cross and Death Cross signals based on customizable moving averages. It is ideal for swing traders and trend-following strategies across various timeframes.
🔍 Features:
Customizable moving average types: Choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA)
Flexible MA lengths: Default 50/200, but can be adjusted to any short/long period (e.g., 9/21 for crypto)
Clear visual markers: Plots labels directly on the chart where crossovers occur
Alert support: Built-in alerts for Golden and Death Cross events
Overlay-enabled: MAs and signals display directly over price action
📈 Signal Logic:
Golden Cross = Short MA crosses above Long MA → bullish signal
Death Cross = Short MA crosses below Long MA → bearish signal
Common configurations:
50/200 EMA → Long-term trend shifts
9/21 EMA → Short-term momentum
🔔 Alerts:
You can create alerts using:
Golden Cross Alert: Triggers on bullish crossover
Death Cross Alert: Triggers on bearish crossover
✅ Use Cases:
Spot major trend shifts
Confirm entry/exit points with moving average dynamics
Combine with volume, RSI, or other filters for advanced strategies
Notes:
This is a basic yet powerful crossover tool. For more advanced filtering, trend confirmation, or backtesting logic, feel free to clone and expand it.
Questions or suggestions? Leave a comment or fork the script for your own use.
Indicators and strategies
Sessioni di Trading - Londra & New YorkMarks the London and New York trading sessions with vertical colored lines (Mechanics 3.0)
黄金人民币价格(每克)v6
🟡 Title: Gold Spot Price in Chinese Yuan (per gram)
This indicator converts the XAUUSD gold spot price into Chinese Yuan per gram (CNY/g) in real-time, based on the offshore USD/CNH exchange rate.
📌 Features:
Recalculates gold price in CNY using:
CNY/g = XAUUSD × USDCNH ÷ 31.1035
Uses standard gold-to-gram conversion (1 troy ounce = 31.1035 grams)
Ideal for traders who monitor gold prices in RMB, such as arbitrage between offshore and onshore markets
📈 Data Sources:
XAUUSD: Gold spot price in USD
USDCNH: Offshore RMB exchange rate
You can use this script to track gold prices from an RMB perspective, compare against domestic benchmarks (e.g. AU9999), or monitor cross-border pricing dynamics.
VAPI with MA (no ta.sum)## 📘 Indicator: **VAPI with MA (no ta.sum)**
This custom indicator is a version of the **Volume Adjusted Price Indicator (VAPI)** combined with a selectable **moving average (MA)**. It manually computes the volume-weighted price momentum over a period and smooths it with a chosen type of moving average. The purpose is to assess directional volume pressure and potential trend shifts.
---
### 🔧 Inputs:
* **VAPI Length (`length`)**: Number of bars used for calculating the VAPI.
* **MA Length (`maLength`)**: Number of bars for smoothing VAPI with a moving average.
* **MA Type (`maType`)**: Type of moving average to apply (options: SMA, EMA, WMA, RMA, HMA, VWMA).
---
### 📈 Calculation Logic:
1. **x = (2 × close − high − low) / (high − low)**
Measures where the closing price lies within the candle range:
* Close at high → x = 1
* Close at low → x = -1
* Close in the middle → x = 0
A small constant (0.0001) is used to avoid division by zero.
2. **volX = volume × x**
This adjusts volume based on the candle's directional momentum.
3. **Manual summation over `length` bars** (instead of using `ta.sum`):
* `tva` accumulates the volume-adjusted values (`volX`)
* `tv` accumulates the total volume
4. **VAPI = 100 × (tva / tv)**
Gives a percentage-style oscillator:
* Positive values → bullish pressure
* Negative values → bearish pressure
5. **MA = Moving Average of VAPI**
Type of MA is user-defined (SMA, EMA, WMA, RMA, HMA, or VWMA).
---
### 📊 Plots:
* **VAPI Line** — Gray line (shows raw volume-adjusted price impulse).
* **MA Line** — Orange line (smoothed VAPI).
* **Zero Line** — Dashed horizontal reference at 0:
* Crossovers may suggest trend direction changes.
---
### 💡 Use Cases:
* **Volume momentum analysis**: Shows if volume supports current price action.
* **Divergence spotting**: Compare VAPI behavior against price movements.
* **Trend filtering**: The MA smooths out noise for clearer signals.
* **Entry/exit signals**: Use crossovers of VAPI/MA or zero line as potential triggers.
Average Daily LiquidityIt is important to have sufficient daily trading value (liquidity) to ensure you can easily enter and, importantly, exit the trade. This indicator allows you to see if the traded value of a stock is adequate. The default average is 10 periods and it is common to average the daily traded value as both price and volume can have spikes causing trading errors. Some investors use a 5 period for a week, 10 period for 2 weeks, 20 or 21 period for 4 weeks/month and 65 periods for a quarter. You need to ascertain your buying amount such as $10000 and then have the average daily trading value be your comfortable moving average more such as average liquidity is more than 10 x MA(close x volume) or $100000 in this example. The value is extremely important for small and micro cap stocks you may wish to purchase.
Money Flow Index (mit Pivot-Divergenzen)SKb_
This indicator enhances the traditional Money Flow Index (MFI) by adding a pivot-based divergence detection system and visual background signals for overbought and oversold conditions.
✨ Key Features:
✅ Money Flow Index (MFI) Plot:
Plots the MFI value with customizable length (default 14).
✅ Overbought/Oversold Highlighting:
Automatically shades the background light green when MFI > 80 and light red when MFI < 20 for better visual alerts.
✅ Pivot-Based Divergence Detection:
Detects both bullish and bearish divergences between MFI and price using pivot highs and lows (configurable pivot strength).
– Bullish divergence: price makes a lower low, MFI makes a higher low
– Bearish divergence: price makes a higher high, MFI makes a lower high
✅ Divergence Signals Plotted on Chart:
Plots lime green triangles below bars for bullish divergence and red triangles above bars for bearish divergence.
✅ Customizable Pivot Sensitivity:
The pivotLen input allows you to adjust how significant a swing high/low must be to qualify as a pivot.
Usage:
This indicator helps traders spot potential trend reversals by combining momentum (MFI) with divergence signals based on pivot points.
It can be used standalone or as a confirmation tool alongside other technical indicators.
Recommended for swing traders, momentum traders, or anyone wanting to identify divergences with a reduced noise level compared to bar-by-bar divergence detection.
asami.factor Buy/Sell Strategy### **1\. Purpose**
The script fires **Buy/Sell signals** based on an EMA golden/death‑cross, but only when **volatility (ATR & Bollinger width), volume, and short‑term momentum** confirm that market conditions are meaningful. It also self‑tracks win‑rate and average P/L, displaying the stats in a table.
### **2\. Input Parameters**
| Category | Variable(s) | Function |
| :---- | :---- | :---- |
| Trend | `emaFast`, `emaSlow` | Determine EMA crossover direction |
| Oscillator | `rsiLength` | Oversold/overbought context only |
| MACD | `macdFast`, etc. | Extra momentum context (not plotted) |
| Volatility | `atrPeriod`, `atrMultiplier`, `bbLength`, `bbMult` | Measure relative ATR & BB width |
| Threshold | `minVolatilityThreshold` | Minimum % width to call vol “high” |
### **3\. Core Logic**
1. **Trend** – `fastMA > slowMA` is up‑trend, else down.
2. **Signal Generation**
* `crossover(fastMA, slowMA)` → **Buy**
* `crossunder(fastMA, slowMA)` → **Sell**
3. **Volatility & Volume Filter**
* Current ATR vs 100‑bar ATR average.
* Bollinger‑band width (% of middle band).
* Volume \> 1.5 × 20‑bar MA.
* If both conditions pass, table shows “HIGH”.
4. **Momentum Filter** – 3‑bar price %‑change must exceed the same threshold.
5. **Stat Tracking** – On every Buy→Sell pair it logs P/L %, counts total & successful signals, and updates accuracy / average profit.
### **4\. Visual Components**
* **Chart** – Plots fast/slow EMA, ATR‑based dynamic bands, upper/lower BB, plus triangle icons at each signal.
* **Table (top‑right)** – Displays volatility status, BB width %, ATR ratio, current or last signal, plus room to add accuracy/avg P/L lines.
### **5\. Alerts**
Three `alertcondition()` calls let you create TradingView alerts for **Buy**, **Sell**, or **any** signal and forward JSON/Webhooks to external trading bots.
### **6\. Usage Notes**
* The multilayer filter aims to fire only when **trend, volatility, and volume align**, reducing crossover whipsaws.
* Treat the built‑in statistics as a **research aid**; refine parameters (`minVolatilityThreshold`, `atrMultiplier`, etc.) per symbol and timeframe.
* Combine with proper risk management (SL/TP, position sizing) before live deployment.
CK Trader Pro sessions plus LSMALSMA Multi-Timeframe Indicator
The LSMA Multi-Timeframe Indicator is a powerful tool designed to enhance trend analysis by incorporating Least Squares Moving Average (LSMA) calculations across multiple timeframes. This indicator displays LSMA values from the 1-minute, 5-minute, 15-minute, and 1-hour charts, allowing traders to gain deeper insight into the overall trend structure and potential areas of support or resistance.
By visualizing LSMA across different timeframes, traders can:
✅ Identify Key Support & Resistance – Higher timeframe LSMA levels often act as strong barriers where price reacts.
✅ Enhance Trend Confirmation – A confluence of LSMAs pointing in the same direction strengthens confidence in a trend.
✅ Spot Reversals & Trend Shifts Early – Watching lower timeframe LSMAs in relation to higher ones can signal potential shifts before they fully develop.
This indicator is ideal for traders looking to align short-term entries with longer-term trend dynamics, providing an edge in both intraday and swing trading strategies
CK Session Tracker – Global Market Session Levels
The CK Session Tracker is a precision-built TradingView indicator designed to map out the most critical times in the market — the Asia, EU, and US sessions. This tool automatically plots the open, close, high, and low of each major session, giving traders a crystal-clear view of market structure, key liquidity zones, and session-based momentum shifts.
🔍 Features:
🕒 Automatic Session Markers – Visualize the exact open and close times of Asia, Europe, and US sessions directly on your chart.
📈 Session Highs & Lows – Instantly spot where price reacted during each session, helping identify breakouts, reversals, or liquidity grabs.
🌐 Global Market Awareness – Designed to adapt to futures, forex, and crypto across all time zones.
🎯 Smart Trading Zones – Use session data to pinpoint high-probability setups during overlaps or session handoffs.
Perfect for intraday traders, ICT strategy followers, and anyone focused on session-based movement. The CK Session Tracker gives you the edge of institutional timing — all on one chart..
Boolean RSI Trend Indicator (Turn + 50 Filter)Indicates when there is an alignment on multi RSI, i.e. 3, 7, 14, 21 and 50.
Multi RSI (3,7,14,21,50)Gives multi RSI on the same indicator. Very visual to determine weather in up or down trend.
Parsifal.Swing.FlowThe Parsifal.Swing.Flow indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.Flow – Specifics
The Parsifal.Swing.Flow module aggregates price and trading flow data per bin (a "bin" refers to a single candle or time bucket) and smooths this information over recent historical data to reflect ongoing market dynamics.
________________________________________
How Swing.Flow Works
For each bin, individual data points—called "bin-infolets"—are collected. Each infolet reflects the degree and direction of trading flow, offering insight into buying and selling pressure.
The module processes this data in two steps:
1. Aggregation:
All bin-infolet values within a bin are averaged to produce a single bin-flow value.
2. Smoothing:
The resulting bin-flow values are then smoothed across multiple bins, typically using short-term EMAs.
The outcome is a dynamic representation of the current swing state based on recent trading flow activity.
________________________________________
How to Interpret Swing.Flow
• Range-bound but not a true oscillator:
While individual bin-infolets are range-bound, the Swing.Flow indicator itself is not a classical oscillator.
• Overbought/Oversold Signals:
Historically high or low values in Swing.Flow may signal overbought or oversold conditions.
• Chart Representation:
o A fast curve (orange)
o A slow curve (white)
o A shaded background that illustrates overall market state
• Mean Reversion Signals:
Extreme curve values followed by reversals may indicate the onset of a mean reversion in price.
________________________________________
Flow Background Value
The Flow Background Value represents the net state of trading flow:
• > 0 (green shading) → Bullish mode
• < 0 (red shading) → Bearish mode
• The absolute value reflects the confidence level in the current trend direction
________________________________________
How to Use the Parsifal.Swing.Flow
Several change points can act as entry point triggers:
• Fast Trigger:
A change in the slope of the fast signal curve
• Trigger:
The fast line crossing the slow line or a change in the slope of the slow signal
• Slow Trigger:
A change in the sign of the Background Value
These triggers are visualized in the accompanying chart.
Additionally, market highs and lows that align with the swing indicator values can serve as pivot points for the ongoing price process.
________________________________________
As always, this indicator is best used in conjunction with other indicators and market information.
While Parsifal.Swing.Flow offers valuable insight and potential entry points, it does not predict future price action.
Rather, it reflects the most recent market tendencies, and should therefore be applied with discretion.
________________________________________
Extensions
• Aggregation Method:
The current approach—averaging all infolets—can be replaced by alternative weighting schemes, adjusted according to:
o Historical performance
o Relevance of data
o Specific market conditions
• Smoothing Period:
The EMA-based smoothing period can be varied. In general, EMAs can be enhanced to reflect relevance-weighted probability measures, giving greater importance to recent data for a more adaptive and dynamic response.
• Advanced Smoothing:
EMAs can be further extended to include negative weights, similar to wavelet transform techniques, allowing even greater flexibility in smoothing methodologies.
NY Key Open Lines (UTC-4 with Individual Lengths)📌 NY Key Open Lines (UTC-4 Based) — Indicator Description
This TradingView indicator automatically draws horizontal lines at four key New York session opening times:
08:30, 09:30, 10:30, and 18:00 (based on New York time, UTC-4).
✅ Key Features
Auto-draws lines at:
Custom line length per time: You can independently set how far each line extends to the right (in number of bars).
Label above line: Each line shows a clean time label (e.g., 09:30) slightly above the right edge of the line.
Customizable style:
Line color
Line width
Label font size
Label vertical offset
Parsifal.Swing.RSIThe Parsifal.Swing.RSI indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module facilitates judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These swings within the trend are inherently tradable.
They can be approached:
• One-sidedly, in alignment with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions.
Note: In strong trends, mean reversions often appear as sideways consolidations, making one-sided trades more robust.
________________________________________
The Parsifal Swing Suite
The suite provides insights into current swing states and offers various entry point triggers.
All modules act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., the RSI, which ranges from 0 to 100%).
________________________________________
The Parsifal.Swing.RSI – Specifics
The Parsifal.Swing.RSI is the simplest module in the suite. It uses variations of the classical RSI, explicitly combining:
• RSI: 14-period RSI of the market
• RSIMA: 14-period EMA of the RSI
• RSI21: 14-period RSI of the 21-period EMA of the market
• RSI21MA: 14-period EMA of RSI21
Component Behavior:
• RSI: Measures overbought/oversold levels but reacts very sensitively to price changes.
• RSIMA: Offers smoother directional signals, making it better for assessing swing continuation. Its slope and sign changes are more reliable indicators than pure RSI readings.
• RSI21: Based on smoothed prices. In strong trends, it reaches higher levels and reacts more smoothly than RSI.
• RSI21MA: Further smooths RSI21, serving as a medium-term swing estimator and a signal line for RSI21.
When RSI21 exceeds RSI, it indicates trend strength.
• In uptrends, RSI21 > RSI, with larger exceedance = stronger trend
• In downtrends, the reverse holds
________________________________________
Indicator Construction
The Swing RSI combines:
• RSI and RSIMA → short-term swings
• RSI21 and RSI21MA → medium-term swings
This results in:
• A fast swing curve, derived from RSI and RSI21
• A slow swing curve, derived from RSIMA and RSI21MA
This setup is smoother than RSI/RSIMA alone but more responsive than using RSI21/RSI21MA alone.
________________________________________
Background Value
The Background Value reflects the overall market state, derived from RSI21:
• > 0: shaded green → bullish mode
• < 0: shaded red → bearish mode
• The absolute value reflects confidence in the current mode
________________________________________
How to Use the Parsifal.Swing.RSI
Several change points can act as entry triggers:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crossing slow line or change in slow signal's slope
• Slow Trigger: change in sign of the Background Value
Examples of these triggers are shown in the chart.
Additionally, market highs and lows aligned with swing values can serve as pivot points in evolving price movements.
________________________________________
As always, this indicator should be used alongside other tools and information in live trading.
While it provides valuable insights and potential entry points, it does not predict future price action.
It reflects the latest tendencies and should be used judiciously.
Labeled EMA 20/50/100/200Description:
This indicator plots four key Exponential Moving Averages—EMA 20, EMA 50, EMA 100, and EMA 200—clearly labeled and color-coded for better visual analysis.
Designed for intraday and positional traders, it helps:
• Identify short-, mid-, and long-term trends
• Spot crossover signals (e.g., EMA 20 crossing EMA 50)
• Recognize dynamic support and resistance zones
• Set precise alerts without dealing with unnamed "Plot" fields
Ideal for clean charting and strategy building across any timeframe.
Black Candle - First Sell/Buy Signalthis indicator gives you signals to buy and sell with high accuracy.
Combined Indicator: SMMA+Fractals+SessionsJust a combination of 3 main indicator; 5SMMA + Fractal + Session. Feel free to use it.
Opening Range and Market BoundariesOpening Range and Market Boundaries
This versatile and insightful indicator combines two powerful concepts frequently used by professional traders: Opening Range Analysis and Market Boundaries derived from previous high/low levels. It is specifically designed to support intraday trading strategies and helps you identify key price zones for entries, exits, and breakout confirmations.
🔍 Features & Utility
1. Opening Range Box
What it does:
Highlights the high and low of the first candle after market open (9:15 AM IST) with a shaded box. This box spans the full trading session, from 9:15 AM to 3:30 PM, representing the key price range where the initial balance is formed.
Timeframe Compatibility:
The Opening Range box is optimized for 1-minute to 1-hour charts. It is most effective on lower timeframes (1m, 5m, 15m, 30m) where intraday price movements and breakout patterns can be clearly observed.
Usage Tips:
Breakouts above or below the Opening Range box can signal potential directional bias for the rest of the trading day.
Price consolidating within the range may indicate a choppy or range-bound session.
Works well with volume and momentum indicators for confirmation.
2. Market Boundaries
What it does:
Plots horizontal lines at:
Previous Day High/Low
Previous Week High/Low
Previous Month High/Low
Why it matters:
These levels act as natural support and resistance zones, and are commonly watched by institutional traders, making them crucial for:
Spotting reversals or breakouts
Planning stop-loss and target zones
Avoiding trades around high-rejection areas
Customization Options:
Toggle ON/OFF for Daily, Weekly, and Monthly levels.
Independent colors and line thickness for each level, enabling you to distinguish between different timeframes easily.
🛠️ How to Use Effectively
Use during market open:
Switch to a 5-minute or 15-minute chart during the first few candles of the session. Observe the Opening Range box formation and plan trades based on breakout direction.
Confluence Trading:
Look for price action near previous session highs/lows in confluence with the Opening Range box edges. These intersections often become high-probability zones for breakouts or reversals.
Session Preparation:
Before the market opens, analyze where the price is relative to past high/low boundaries. If it's near a weekly/monthly level, be cautious — those areas can cause whipsaws or false breakouts.
Avoid low-volume breakouts:
Use this indicator in conjunction with volume tools or price action confirmation to validate the strength of a move outside the Opening Range or Market Boundaries.
📌 Summary
This indicator is designed for intraday traders, scalpers, and swing traders who want a reliable structure to guide their decisions. It visually marks the opening balance of the market and essential higher timeframe boundaries, helping you trade with discipline and precision.
EMA Scalping Buy/Sell Labels5-min chart Gold (XAU/USD)
✅ EMA 9 crosses above EMA 21
✅ Price pulls back and touches EMA 21
✅ Bullish engulfing candle appears
✅ Enter long, target quick 10 pips
✅ Stop-loss 5 pips below EMA 21
EMA (5,8,13,200) Strategy with Signals
This indicator shows the EMAs 5,8,13,200 and Buy/Sell Signals under conditions.
The EMA 200 is invisible when adding the indicator to your chart. You have to activate the checkbox.
Default setting for Buy/Sell Signals: EMA 5 crosses EMA 8 and candle closes above/under EMA 13
If you want to use the signals when EMA 8 crosses EMA 13 open the pine editor and go the section "//Entry Signals - EMA8 crosses EMA13". You have to uncomment this part and commenting the default.
Volume Alertit gives big move for the day, it gives the volume pop ups so that you can see the big moves
AAPL Multi-Strategy (5 Strategies Beta)✅ Momentum Reversal
✅ Moving Average Crossover
✅ Heikin-Ashi Reversal
✅ Swing Day Trading
✅ Candlestick Patterns
Color Shape Signal Type Meaning
🟡 Yellow Circle Momentum Reversal Dot Stochastic overbought (>80) or oversold (<20) → possible trend reversal area
🟢 Green Triangle Up Moving Average Crossover → BUY EMA20 crossed above EMA50 AND price above EMA200 → bullish crossover confirmation
🔴 Red Triangle Down Moving Average Crossover → SELL EMA20 crossed below EMA50 AND price below EMA200 → bearish crossover confirmation
🟩 Lime Circle Heikin-Ashi Bull Heikin-Ashi candle closed bullish (HA close > HA open)
🟫 Maroon Circle Heikin-Ashi Bear Heikin-Ashi candle closed bearish (HA close < HA open)
🔵 Blue Flag Swing Day Trading BUY Price crosses above EMA20 from below → pullback BUY signal
🟠 Orange Flag Swing Day Trading SELL Price crosses below EMA20 from above → pullback SELL signal
🟢 Green Label Up Bullish Engulfing Pattern Classic bullish engulfing candlestick pattern detected → possible trend reversal up
🔴 Red Label Down Bearish Engulfing Pattern Classic bearish engulfing candlestick pattern detected → possible trend reversal down