OI for Miamo (Horizon - Tonsi)Stochastic format style RSI combined with Open interest to get accurate data and to identify divergences.
Features
-Rsi
- Open interest
- Stochastic format
- Divergence/Trend identification
Intended for @real_miamo
Penunjuk dan strategi
Equal Highs and Equal LowsIt identifies eqx, teqx and seqx. So you are able to use them and determine what might happen. Trust me this indicator works if you know what you are doing
Fractal Wave MarkerFractal Wave Marker is an indicator that processes relative extremes of fluctuating prices within 2 periodical aspects. The special labeling system detects and visually marks multi-scale turning points, letting you visualize fractal echoes within unfolding cycles dynamically.
What This Indicator Does
Identifies major and minor swing highs/lows based on adjustable period.
Uses Phi in power exponent to compute a higher-degree swing filter.
Labels of higher degree appear only after confirmed base swings — no phantom levels, no hindsight bias. What you see is what the market has validated.
Swing points unfold in a structured, alternating rhythm . No two consecutive pivots share the same hierarchical degree!
Inspired by the Fractal Market Hypothesis, this script visualizes the principle that market behavior repeats across time scales, revealing structured narrative of "random walk". This inherent sequencing ensures fractal consistency across timeframes. "Fractal echoes" demonstrate how smaller price swings can proportionally mirror larger ones in both structure and timing, allowing traders to anticipate movements by recursive patterns. Cycle Transitions highlight critical inflection points where minor pivots flip polarity such as a series of lower highs progress into higher highs—signaling the birth of a new macro trend. A dense dense clusters of swing points can indicate Liquidity Zones, acting as footprints of institutional accumulation or distribution where price action validates supply and demand imbalances.
Visualization of nested cycles within macro trend anchors - a main feature specifically designed for the chartists who prioritize working with complex wave oscillations their analysis.
Stochastic with EMA + BOS FOR XAUUSD 5MThis indicator combines multi-timeframe Stochastic signals (from M1, M5, M15, M30) with an EMA-based trend filter on M1 to generate bullish and bearish signals. It applies dynamic Stochastic thresholds depending on the M1 EMA trend (fast vs. slow), so the trigger levels for oversold/overbought conditions adjust according to recent market bias. Additionally, it blocks signals if price is too close to the 4H (or ~24H on a 5-minute chart) high or low, helping to avoid entries at potential extremes.
A simple Break of Structure (BOS) check tracks if a bullish or bearish break happened within the last few hours. Signals become stricter if a recent BOS favors the opposite side. The script also looks at the current 3-hour range to classify swing levels as low, medium, or high. Each valid signal is plotted (triangle on the chart) and tied to an alert condition that includes the swing classification. This makes it easier to spot potential high-conviction setups versus more conservative or lower-volatility ones.
Beware NEWS!
AKS Enhanced 34/89/200Features of the Script:
Inputs for EMA Lengths:
Allows users to customize the lengths of the EMAs: 34, 89, and 200.
EMA Calculations:
Uses ta.ema to calculate Exponential Moving Averages for the specified lengths.
EMA Plots:
Plots the EMAs on the chart with distinct colors and line widths.
Crossover Highlight:
Highlights bullish crossovers (M1 crosses above M2) with a green background and bearish crossovers (M1 crosses below M2) with a red background.
Alert Conditions:
Includes alerts for bullish and bearish crossovers to notify users of trading signals.
Suggestions for Improvement:
Customization of Colors and Opacity:
Allow users to customize the colors and opacity of the background highlights via input.color or input.int.
More Alert Conditions:
You could add alerts for crossovers involving M3 (e.g., M1 crossing M3 or M2 crossing M3) for a broader set of signals.
Legend Improvements:
Include a legend or detailed tooltip on the chart explaining the significance of the EMAs and crossovers for better usability.
Visual Enhancements:
Add labels on the crossover points to clearly indicate the bullish or bearish nature.
Performance Optimization:
Ensure minimal lag by optimizing the logic for calculations and avoiding unnecessary repetitive calls (e.g., storing common conditions in variables).
Triple Confirmación Forex (Señales en Tiempo Real)//@version=5
indicator("Triple Confirmación Forex (Señales en Tiempo Real)", overlay=true)
// ==== RSI ====
rsi = ta.rsi(close, 14)
rsi_1m = request.security(syminfo.tickerid, "1", rsi)
rsi_5m = request.security(syminfo.tickerid, "5", rsi)
// ==== Estocástico ====
length = input(14, "Stoch Length")
smoothK = input(1, "%K Smoothing")
smoothD = input(3, "%D Smoothing")
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
k = ta.sma((close - lowestLow) / (highestHigh - lowestLow) * 100, smoothK)
d = ta.sma(k, smoothD)
k_cross_up = ta.crossover(k, d) and k < 20
k_cross_down = ta.crossunder(k, d) and k > 80
// ==== MAs ====
ema45 = ta.ema(close, 45)
ma50 = ta.sma(close, 50)
// ==== Condiciones de Entrada ====
longCondition = rsi_1m < 30 and rsi_5m < 30 and k_cross_up and close > ema45 and close > ma50 and close > open
shortCondition = rsi_1m > 70 and rsi_5m > 70 and k_cross_down and close < ema45 and close < ma50 and close < open
// ==== Flechas de señal ====
plotshape(longCondition, title="Señal Compra", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Señal Venta", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTAS EN TIEMPO REAL ====
alertcondition(longCondition, title="Alerta de COMPRA", message="¡Señal de COMPRA en {{ticker}}!")
alertcondition(shortCondition, title="Alerta de VENTA", message="¡Señal de VENTA en {{ticker}}!")
// ==== MA Plots ====
plot(ema45, color=color.red, title="EMA 45")
plot(ma50, color=color.green, title="MA 50")
Footprint Optimizer [Auto Settings]This indicator shows Footprint Confluence Signals based on delta, bid/ask ratio, volume, and cluster logic. It auto-adjusts based on session (London/US) and timeframe. Optional integration with a Footprint Optimizer tool.
IRUS: % stocks above SMA 50 / 100 / 200
📊 IRUS Breadth Indicators (MOEX Market Breadth)
This script shows market breadth conditions based on the percentage of stocks or sectors trading above selected moving averages (SMA or EMA) with customizable periods (50 / 100 / 200).
There are two modes available:
IRUS Ticker-Based Breadth
Calculates the % of liquid Russian stocks (IRUS group) trading above a selected MA.
Great for detailed breadth analysis based on individual stock participation.
Sector-Based Breadth
Calculates the % of major MOEX sector indices above their MAs.
A clean, high-level view of market strength across sectors.
Use these indicators to assess market health, detect divergences, and filter
Accurate Position Size (with Exchange Offset)live size reading , it reads the price live all you need enter SL , good for momentum
Vietnamese Stocks: Multi-Ticker Fibonacci AlertThis Pine Script™ indicator is designed specifically for traders monitoring the Vietnamese stock market (HOSE, HNX). Its primary goal is to automate the tracking of Fibonacci retracement levels across a large list of stocks, alerting you when prices breach key support zones.
Core Functionality:
The script calculates Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for up to 40 tickers simultaneously. The calculation is based on the highest high and lowest low identified since a user-defined Start Time. This allows you to anchor the Fibonacci analysis to a specific market event, trend start, or time period relevant to your strategy.
What it Does For You:
Automated Watchlist Scanning: Instead of drawing Fib levels on dozens of charts, select one of the two pre-configured watchlists (up to 40 symbols each, customizable in settings) populated with popular Vietnamese stocks.
Time-Based Fibonacci: Define a Start Time in the settings. The script uses this date to find the subsequent highest high and lowest low for each symbol in your chosen watchlist, forming the basis for the Fib calculation.
Intelligent Alerts: Get notified via TradingView's alerts when the candle closing price of any stock in your active watchlist falls below the critical 38.2%, 50%, 61.8%, or 78.6% levels relative to its own high/low range since the start time. Alerts are consolidated for efficiency.
Visual Aids:
- Plots the same time-based Fibonacci levels directly on your current chart symbol for quick reference.
- Includes an optional on-chart table showing which monitored stocks are currently below key Fib levels (enable "Show Debug Info").
- Features experimental background coloring to highlight potential bullish signals on the current chart.
Configuration:
Start Time: Crucial input – sets the anchor point for Fib calculations.
WatchList Selection: Choose between WatchList #1 (Bluechip/Midcap focus) or WatchList #2 (Defensive/Other focus) using the boolean toggles.
Symbol Customization: Easily replace the default symbols with your preferred Vietnamese stocks directly in the indicator settings.
Notification Prefix: Add custom text to the beginning of your alert messages.
Alert Setup: Remember to create an alert in TradingView, selecting this indicator and the alert() condition, usually with "Once Per Bar Close" frequency.
This tool is open-source under the MPL 2.0 license. Feel free to use, modify, and learn from it.
Ultimate Moving Average Crossover Indicator by SAMQUANT📈 Ultimate Moving Average Crossover Indicator | All-in-One MA Strategy
Unlock the power of multiple moving averages in one versatile indicator designed to give you clear, actionable signals in any market condition.
📌 Key Features:
- Supports **all major moving averages**:
- **SMA, EMA, WMA, HMA, RMA, DEMA, TEMA**, and more.
- Each MA is **fully customizable** with different lengths and types for ultimate flexibility.
- **Binary Long/Short signals** based on crossover logic—perfect for alerts, strategies, or discretionary trading.
- **Dynamic background coloring**:
- **Green** for bullish trends
- **Red** for bearish trends
Quickly gauge market direction at a glance.
---
🚀 Why Use This Indicator?
✅ Combines the strength of all major MA types
✅ Customizable to fit any trading style—scalping, swing, or trend following
✅ Built-in alerts ready for your next trade
✅ Visually intuitive with built-in signal clarity
✅ Excellent tool for **confluence-based** strategies
---
Great trades start with great tools. Clarity, precision, and flexibility—this indicator brings it all to your charts. Trade smarter, not harder.
---
> ⚠️ **Disclaimer:**
This script is intended for **educational and informational purposes only**. It does not constitute financial advice. Past performance is not indicative of future results. Always practice sound risk management and test strategies thoroughly before using real capital.
Quantum Phoenix Strategy📘 Quantum Phoenix Strategy – Pine Script v5
Version: 2.0
Platform: TradingView
Author: Başkan
🔧 Overview
Quantum Phoenix Strategy is a trend-following, multi-timeframe (MTF) validated algorithm that uses a combination of EMA, RSI, MACD, ATR, and Supertrend indicators to detect high-probability long and short trade opportunities. It includes risk-based position sizing, dynamic TP/SL levels, dashboard display, and alert conditions for automation.
⚙️ Core Features
Feature Description
📈 Trend Detection Uses EMA 50/200 crossovers, MACD histogram, RSI values, and Supertrend direction
🕒 MTF Trend Filter 1-hour EMA trend confirmation
💰 Risk Management ATR-based position sizing and custom risk allocation
🎯 TP/SL Targets Take Profit and Stop Loss set as percentage of price
🧠 Strategy Logic Entry and exit logic for both long and short positions
🛎️ Alerts Long/Short signal alert conditions
🖼️ Visual Panel On-chart dashboard showing strategy parameters
📉 Indicator Plots EMA lines and entry signal markers on the chart
🔍 Inputs & Parameters
Parameter Type Description
riskPercent float (0.1–10) Percentage of capital to risk per trade
accountSize float Virtual account size for position sizing
takeProfitPercent float Take Profit level in %
stopLossPercent float Stop Loss level in %
📊 Indicator Logic
✅ Long Entry:
Price > EMA200
EMA50 > EMA200
RSI between 40 and 70
MACD Histogram > 0
Supertrend direction is bullish
1-hour MTF EMA trend is upward
❌ Long Exit:
RSI > 70
MACD Histogram turns negative
⛔ Short Entry:
Price < EMA200
EMA50 < EMA200
RSI between 30 and 60
MACD Histogram < 0
Supertrend direction is bearish
1-hour MTF EMA trend is downward
🚪 Short Exit:
RSI < 30
MACD Histogram turns positive
🧮 Risk Calculation
The position size is calculated using the ATR (Average True Range) as a measure of volatility:
plaintext
Kopyala
Düzenle
riskAmount = accountSize * (riskPercent / 100)
positionSize = riskAmount / ATR
This means that for higher volatility, the position size is reduced to maintain the same risk exposure.
📺 On-Chart Dashboard
Every 10 bars, a visual panel is updated on the chart showing:
Strategy title
Risk and account size
TP/SL percentages and ATR value
MTF trend direction (UP / DOWN / FLAT)
🚨 Alerts
These alerts can be used to trigger notifications or webhook integrations:
"Long Giriş" – Triggers when long conditions are met
"Short Giriş" – Triggers when short conditions are met
🎨 Visual Elements
EMA50 and EMA200 plotted as orange and teal lines
Long signals shown with green upward labels
Short signals shown with red downward labels
🧠 Best Practices
Combine this strategy with manual confirmation or fundamental analysis
Optimize takeProfitPercent and stopLossPercent values based on asset volatility
Use alerts with a trading bot for automation (e.g., via webhook & Telegram integration)
Monitor the dashboard for MTF trend consistency
Collatz Conjecture - DolphinTradeBot1️⃣ Overview
Every positive number follows its own unique path to reach 1 according to the Collatz rule.
Some numbers reach the end quickly and directly.
Others rise significantly before crashing down sharply.
Some get stuck within a certain range for a while before finally reaching 1.
Each number follows a different pattern — the number of steps it takes, how high it climbs, or which values it passes through cannot be predicted in advance.
This is a structure that appears chaotic but ultimately leads to order:
Every number reaches 1, but the way it gets there is entirely uncertain.
2️⃣ How Is It Work?
The rule is simple:
▪️ If the number is even → divide it by two.
▪️ If it’s odd → multiply it by three and add one.
Repeat this process at each step.
Example :
Let’s say the starting number is 7:
7 → 22 → 11 → 34 → 17 → 52 → 26 → 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It reaches 1 in 17 steps.
And from there, it always enters the same cycle:
4 → 2 → 1 → 4 → 2 → 1...
3️⃣ Why Is It Worth Learning?
🎯 This indicator isn’t just mathematical fun—it’s a thought experiment for those who dare to question market behavior.
▪️ It’s fun.
Watching numbers behave in unpredictable ways from a simple rule set is surprisingly enjoyable.
▪️ It shows how hard it is to teach a computer what randomness really is .
The Collatz process can be used to simulate chaotic behavior and may even inspire creative ways to introduce complexity into your code.
▪️ It makes you think — especially in financial markets.
The patternless, yet rule-based structure of Collatz can help train your mind to recognize that not all unpredictability is random. It’s a great mental model for navigating complex systems like price action.
▪️ Just like price movements in financial markets, this ancient problem remains unsolved.
Despite its simplicity, the Collatz conjecture has resisted proof for decades — a reminder that even the most basic-looking systems can hide deep complexity.
4️⃣ How To Use?
Super easy — in the indicator’s settings, there’s just one input field.
Enter any positive number, and you’ll see the pattern it follows on its way to 1.
You can also observe how many steps it takes and which values it visits in the info box at the top center of the chart.
5️⃣ Some Examples
You Can Observe the Chaos in the Following Examples⤵️
For Input Number → 12
For Input Number → 13
For Input Number → 14
For Input Number → 32768
For Input Number → 47
4 EMAs with Entry and Exit Strategy🔍 Purpose of the Script:
This strategy is designed to identify bullish trends using a combination of Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI), and execute long entries and exits accordingly.
📈 Key Technical Indicators Used:
EMAs (Exponential Moving Averages):
ema9, ema21, ema63, and ema200 are calculated to determine short-, mid-, and long-term trends.
An unused ema126 is mentioned but commented out.
RSI (Relative Strength Index):
A 14-period RSI is calculated and used to avoid entries when the stock is overbought.
🟢 Entry Logic (Long):
The strategy enters a long position when:
A bullish trend is confirmed by EMA alignment:
ema9 > ema21 > ema63 > ema200
The closing price is above ema9
RSI is ≤ 60, to avoid entering overbought conditions
🔴 Exit Logic (Long Exit):
The strategy exits a long position when:
ema21 crosses below ema63 (bearish signal)
There are commented-out conditions like:
RSI > 80 (overbought)
Close > 1.4 × ema126 (price extended far above average)
🎨 Visualization:
EMAs are plotted in different colors for trend visibility.
Background color turns:
Light green in bullish trend
Light red in bearish trend
⚙️ Strategy Configuration:
Capital: ₹10,00,000
Position size: 10% of equity
Commission: 0.75% per trade (roundtrip)
Overlay: true (indicators and trades plotted on price chart)
✅ Highlights:
Clear trend detection with layered EMA logic
Avoids overbought entries using RSI ≤ 60
Customizable and extendable (e.g., you can uncomment EMA126 and add price-overextension logic)
GME Bond Tracker [theUltimator5]This indicator tracks when GME 0.0% convertible notes, ticker GME6042202 sees trade volume and plots it on the chart.
This indicator is used to track bond-equity arbitrage between GME and the convertible notes. When the bonds trade, there is generally a large qualified contingent trade block at the same time, so the underlying stock volume can be matched against the bond trading.
This is used to help predict future movements of GME, as well as perform trend and reaction analysis on the bond/equity arbitrage events.
Wick Anomaly DetectorWick Anomaly Detector
This script helps identify candles with unusually large wicks compared to their body size — a common sign of price anomalies, false prints, or low-liquidity moves.
🔍 What it does:
Flags candles with upper or lower wicks that exceed a user-defined ratio (default: 3x the body size)
Helps traders spot suspicious spikes or “bad ticks,” especially in pre-market or illiquid stocks
📈 Use it to:
Avoid fake breakouts
Confirm real price action
Clean up your technical analysis
Customize the wick-to-body threshold as needed. Add volume filters or time filters for more precision.
Created for educational purposes — use with proper risk management!
Quantum Phoenix 2.0 Quantum Phoenix 2.0 – Strategy Documentation
Version: Pine Script v5
Platform: TradingView
Script Type: Strategy (Backtest & Alerts)
Overlay: Yes
Purpose: To identify high-probability breakout entries with trend, volume, and multi-timeframe confirmation.
🔧 Inputs
Parameter Description Default
Risk % Percentage of account risked per trade 1.0%
Account Size ($) Virtual capital for position size calculation 10,000
Take Profit % Target profit per trade 3.0%
Stop Loss % Maximum allowed loss per trade 1.5%
Min. ADX Strength Minimum trend strength to validate entry 20
Volume Filter If enabled, filters out low-volume conditions Enabled
📈 Indicators Used
EMA 50 & EMA 200: Trend confirmation
RSI (14): Momentum condition
MACD Histogram: Entry timing filter
SuperTrend (3,7): Trend direction
ADX & DMI (14): Trend strength and direction
Volume + 20 SMA: Volume filter
ATR (14): Used for dynamic position sizing
MTF EMAs (1H): Higher timeframe trend confirmation
📊 Entry Conditions
🟢 LONG:
Price > EMA200
EMA50 > EMA200
RSI between 40–70
MACD Histogram > 0
1H EMA50 > 1H EMA200 (MTF Trend Up)
ADX > threshold and SuperTrend is Bullish
Volume filter (if enabled) must be met
🔴 SHORT:
Price < EMA200
EMA50 < EMA200
RSI between 30–60
MACD Histogram < 0
1H EMA50 < 1H EMA200 (MTF Trend Down)
ADX > threshold and SuperTrend is Bearish
Volume filter (if enabled) must be met
💼 Risk Management
Uses ATR-based position sizing
Position Size = (AccountSize * Risk%) / ATR
Take Profit and Stop Loss levels are calculated based on % of price
📉 Strategy Orders
pinescript
Kopyala
Düzenle
strategy.entry("Long", strategy.long, when=longCond)
strategy.exit("TP/SL Long", from_entry="Long", limit=TP Level, stop=SL Level)
strategy.close("Long", when=MACD Histogram < 0 or RSI > 70)
strategy.entry("Short", strategy.short, when=shortCond)
strategy.exit("TP/SL Short", from_entry="Short", limit=TP Level, stop=SL Level)
strategy.close("Short", when=MACD Histogram > 0 or RSI < 30)
📊 Visual Components
EMA Lines: EMA50 (orange), EMA200 (teal)
Labels on Chart: “AL” for Long, “SAT” for Short
Dashboard Table (Top-Right):
Strategy name
Account balance
TP & SL rates
Current ADX & ATR values
Multi-Timeframe Trend Status (UP / DOWN / FLAT)
🚨 Alerts
LONG Giriş: Triggers when all Long conditions are met
SHORT Giriş: Triggers when all Short conditions are met
Ideal for automated alert-based trading bots or Telegram signal bots
📌 Notes
Script is designed for educational and strategic testing purposes.
Real trading decisions must include manual confirmation and risk assessment.
Strategy results may vary based on asset type and market conditions.
VWAP Separation w/ StDev (LEX)---
## VWAP Separation with Standard Deviation Bands
**Overview**
This indicator measures and visualizes the raw distance (separation) between a chosen price source (like `hlc3` or `close`) and its corresponding Volume Weighted Average Price (VWAP) for a selected anchor period. It helps traders gauge how far the current price has deviated from its volume-weighted average.
To provide context on the magnitude of this separation, the indicator also calculates and plots dynamic bands representing +/- 1 standard deviation of the separation value itself, calculated over a user-defined lookback period.
**How it Works**
1. **VWAP Calculation:** The indicator first calculates the VWAP based on the user-selected `Anchor Period` (e.g., Session, Week, Month) and `Source` price. The VWAP calculation resets at the beginning of each new anchor period.
2. **Separation Calculation:** It then subtracts the calculated VWAP from the source price for each bar (`Separation = Source - VWAP`).
3. **Plotting Separation:** This raw separation value is plotted as a line in a separate indicator pane.
* Positive values indicate the source price is above the VWAP.
* Negative values indicate the source price is below the VWAP.
4. **Zero Line & Crossings:** A horizontal line at zero is plotted for easy reference. Small circles are plotted on the zero line whenever the separation value crosses it (using `ta.cross`), highlighting moments when the price crosses its VWAP.
5. **Standard Deviation Bands:**
* The indicator calculates the rolling Simple Moving Average (SMA) of the `Separation` value over a specified `StDev Length` using `ta.sma`.
* It then calculates the rolling standard deviation of the `Separation` value over the same length using `ta.stdev`.
* Finally, it plots two dynamic lines: `SMA + 1 StDev` and `SMA - 1 StDev`. These bands represent the typical range of the separation's volatility based on the lookback period.
**How to Use / Interpretation**
* **Magnitude of Separation:** The primary line directly shows how far, in price terms, the market is currently trading away from its VWAP for the chosen anchor period. Large absolute values suggest a significant deviation.
* **Zero Line:** Crossing the zero line indicates the price is moving from one side of the VWAP to the other. The indicator staying consistently above/below zero shows price trending relative to its VWAP.
* **Standard Deviation Bands:** These bands help contextualize the separation.
* When the separation line touches or exceeds the upper band, it suggests the price is unusually far *above* the VWAP compared to its recent behavior.
* When the separation line touches or exceeds the lower band, it suggests the price is unusually far *below* the VWAP compared to its recent behavior.
* These "unusual" deviations *might* indicate over-extended conditions potentially leading to mean reversion back towards the VWAP, *or* they could signal the start of a strong move away from the VWAP. Always use in conjunction with other analysis methods.
* The width of the bands indicates the recent volatility *of the separation value itself*. Wider bands mean the separation has been more volatile; narrower bands mean it's been more stable.
**Key Features**
* Flexible VWAP calculation based on various anchor periods (Session, Week, Month, Earnings, etc.).
* Plots the raw price separation from VWAP.
* Clear zero line reference.
* Visual markers for zero-line crossings.
* Dynamic +/- 1 Standard Deviation bands based on the separation's volatility.
* User-configurable inputs for anchor period, price source, and standard deviation length.
**Settings**
* **Anchor Period:** Determines the calculation period for VWAP (Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits). Default: `Session`.
* **Source:** The price data used for calculating VWAP and separation (e.g., hlc3, close, open). Default: `hlc3`.
* **StDev Length:** The lookback period (number of bars) used to calculate the moving average and standard deviation of the separation value. Default: `20`.
**Disclaimer**
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to trade. Trading financial markets involves significant risk. Always perform your own due diligence and test any indicator thoroughly before using it in live trading. Past performance is not indicative of future results.
---
💥 Liquidity Fracture DetectorThe Liquidity Fracture Detector is an advanced tool designed to identify micro-liquidity traps and structural fakeouts on intraday charts. These occur when the market appears to break out, only to quickly reverse — often triggered by stop hunts, inefficient fills, or manipulated order flow.
The script combines volume spikes, volatility anomalies, and price structure breaks to signal "fractures" — points where the market temporarily breaks its behavior, often followed by strong reversals or trend accelerations.
Detection logic in the script:
Volume spike greater than 2x the average (adjustable)
Volatility spike: candle range is > 1.5x the average
Extreme wicks: wick is larger than the candle body (a classic trap signal)
Structure break: price breaks previous high/low but closes back within the old range
Combine these elements → a “fracture” is marked
Visual representation:
🔴 Red background = potential bull trap (fake breakout to the upside)
🟢 Green background = potential bear trap (fake breakdown to the downside)
📍 A label appears at each fracture: “🔁 Echo” with the number of previous hits
Ideal use cases:
Intraday trading (1m, 5m, 15m)
Crypto, indices, futures, and forex
Detecting reactive zones where the market takes a false direction
Confluence with S/R zones, order blocks, or liquidity pools
Fully customizable:
Volume and range sensitivity
Heatmap intensity
Toggle labels on/off
Note:
This script is intended to support discretionary analysis. It does not provide buy or sell signals and is not an automated strategy. Combine it with your own price action or order flow setup for optimal results.
Created for educational purposes under TradingView's open-source guidelines.
Phoenix Pro Strategy📘 Phoenix Pro Indicator & Strategy – Technical Documentation
🔧 Overview
The Phoenix Pro Indicator is a comprehensive multi-tool indicator designed for trend detection, momentum analysis, volatility visualization, and automated strategy execution on TradingView. It integrates:
EMA, SMA (Trend Filters)
RSI (Momentum)
Bollinger Bands (Volatility)
Pivot Support/Resistance (Price Structure)
ZigZag Highs/Lows (Market Structure)
Auto Buy/Sell Strategy Logic
📊 Technical Components
🔹 1. Trend Filters (EMA/SMA)
Fast EMA (default 9): Short-term trend direction
Slow EMA (default 21): Long-term trend filter
SMA Short (default 20): Confirms price momentum
SMA Long (default 50): General market trend direction
pine
Kopyala
Düzenle
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
🔹 2. RSI
Detects overbought/oversold conditions.
Used to time entries with trend confirmation.
pine
Kopyala
Düzenle
rsi = ta.rsi(close, 14)
🔹 3. Bollinger Bands
Measures volatility and helps detect breakouts.
pine
Kopyala
Düzenle
basis = ta.sma(close, 20)
upperBB = basis + 2 * ta.stdev(close, 20)
lowerBB = basis - 2 * ta.stdev(close, 20)
🔹 4. Pivot Support/Resistance
Highlights recent local highs and lows as potential reversal zones.
pine
Kopyala
Düzenle
pivotHigh = ta.pivothigh(high, 5, 5)
pivotLow = ta.pivotlow(low, 5, 5)
🔹 5. ZigZag
Simplifies price structure visualization to identify swing highs/lows.
pine
Kopyala
Düzenle
zigzagTop := (high >= high * (1 + dev / 100)) ? high : zigzagTop
📈 Strategy Logic
✅ Long Entry:
text
Kopyala
Düzenle
- EMA Fast > EMA Slow
- Close > SMA Short
- RSI < 60
- Close > Bollinger Basis
🔻 Short Entry:
text
Kopyala
Düzenle
- EMA Fast < EMA Slow
- Close < SMA Short
- RSI > 40
- Close < Bollinger Basis
📉 Exit Logic:
Close long if short condition triggers.
Close short if long condition triggers.
✅ Pine Script Strategy Code Snippet:
pine
Kopyala
Düzenle
strategy.entry("Long", strategy.long, when=longCond)
strategy.close("Long", when=shortCond)
strategy.entry("Short", strategy.short, when=shortCond)
strategy.close("Short", when=longCond)
🖥️ Usage in TradingView
Open TradingView
Click on Pine Editor (bottom tab)
Paste the full script
Click Add to Chart
Select the Strategy Tester tab to view performance
Adjust input parameters via settings ⚙️
⚙️ Recommended Settings (Adjust as needed)
Input Default Notes
EMA Fast 9 Short-term sensitivity
EMA Slow 21 Trend confirmation
SMA Short 20 Entry condition check
RSI Period 14 Momentum filter
RSI OB/OS 70/30 Entry condition tuning
Bollinger Length 20 For mean reversion / trend volatility
ZigZag Deviation (%) 5.0 Increase for higher-timeframe clarity
📌 Notes & Tips
Use on higher timeframes (1H, 4H, 1D) for better signals.
Combine with macro/fundamental filters for advanced setups.
Adjust parameters based on market type (ranging vs trending).
Use strategy tester to optimize performance.
Prior sessions High/Low/MidThis indicator highlights the High, Low, and Midpoint of the most recently completed trading sessions. It helps traders visualize key price levels from the previous session that often act as support, resistance, or reaction zones.
It draws horizontal lines for the high and low of the last completed session, as well as the midpoint, which is calculated as the average of the high and low. These lines extend to the right side of the chart, remaining visible as reference levels throughout the day.
You can independently enable or disable the Tokyo, London, and New York sessions depending on your preferences. Each session has adjustable start and end times, as well as time zone settings, so you can align them accurately with your trading strategy.
This indicator is particularly useful for intraday and swing traders who use session-based levels to define market structure, bias, or areas of interest. Session highs and lows often align with institutional activity and can be key turning points in price action.
Please note that this script is designed to be used only on intraday timeframes such as 1-minute to 4-hour charts. It will not function on daily or higher timeframes.
Phoenix Master Strategy (PMI)Phoenix Master Strategy (PMI) - Documentation
🧠 Overview
Phoenix Master Strategy (PMI) is a comprehensive Pine Script strategy combining trend detection, buy/sell signals, volatility, sentiment estimation, liquidity zones, and position sizing—all in one powerful package. It supports both visual chart analysis and strategy backtesting.
⚙️ Inputs
Parameter Description
timeframeTrend Timeframe used to determine trend (e.g., "D" for Daily).
showBackground Enables background coloring based on trend direction.
riskPercent Risk percentage per trade.
accountSize Total account size in USD. Used to calculate position size.
📈 Trend Detection - EMA
Uses two EMAs: emaFast (default: 9) and emaSlow (default: 21).
Trend Direction:
Uptrend: Fast EMA > Slow EMA
Downtrend: Fast EMA < Slow EMA
Optional background coloring to visually indicate trend.
💹 Momentum Indicators
RSI (Relative Strength Index)
Custom period (rsiLength) and overbought/oversold thresholds.
Used for momentum filtering.
MACD
Standard MACD (12, 26, 9) applied to selected source.
MACD histogram value used to assess momentum direction.
Stoch RSI
Calculates %K and %D values to detect short-term overbought/oversold areas.
Helps fine-tune signal entries.
☁️ Ichimoku Cloud
Calculates full Ichimoku components: Tenkan, Kijun, Senkou A/B, and Chikou Span.
Trend Inference:
CloudUp: Senkou A > Senkou B → Bullish Cloud
CloudDown: Senkou A < Senkou B → Bearish Cloud
Cloud visuals are included but commented out by default.
📊 Volatility Indicator
Uses ATR (Average True Range) to measure volatility.
Position size is adjusted based on ATR value.
Detects volume explosions if current volume is 2x the 20-period SMA.
📌 Support / Resistance Zones (Pivots)
Automatically plots recent pivot highs and pivot lows for dynamic support/resistance visualization.
🧭 Sentiment & Liquidity Indicators
Sentiment (News Placeholder)
Uses 50-period SMA as a placeholder sentiment indicator.
Above SMA → Bullish Sentiment
Below SMA → Bearish Sentiment
Can be replaced with live news API in future versions.
Liquidity Heatmap
Uses 20-period SMA of volume as a proxy for liquidity concentration.
Displayed using bar-style plots.
🟢🔴 Buy/Sell Signal Logic
Long Signal Conditions:
EMA Trend Up
RSI < 50
MACD Histogram > 0
Stoch RSI %K < 80
Ichimoku Cloud Bullish (CloudUp)
Short Signal Conditions:
EMA Trend Down
RSI > 50
MACD Histogram < 0
Stoch RSI %K > 20
Ichimoku Cloud Bearish (CloudDown)
🚨 Alert Conditions
longSignal → "Phoenix - BUY Signal"
shortSignal → "Phoenix - SELL Signal"
volumeExplode → "Phoenix - Volume Explosion Detected"
These alerts are compatible with TradingView's alert system for notifications.
💼 Position Sizing Calculation
Formula:
plaintext
Kopyala
Düzenle
Position Size = (Account Size × Risk %) / ATR
Adjusts trade size based on volatility and risk tolerance.
Visualized with a fuchsia line on the chart.
🧪 Strategy Execution
Uses Pine Script’s strategy.entry and strategy.close:
Opens long position when longSignal is true.
Opens short position when shortSignal is true.
Closes each position when the opposite signal appears.
📌 Extra Notes
Script uses Pine Script v5 and is optimized for max efficiency (max_lines_count=500).
Multiple market dynamics are integrated:
Trend
Momentum
Volume/Volatility
Sentiment
Liquidity
Risk Management
✅ Suggestions for Improvement
Integrate real news sentiment via APIs (e.g., BloombergHT RSS).
Add Take Profit / Stop Loss / Trailing Stop options.
Enhance visuals using label.new or table.new for clearer alerts.
Adapt position size logic for crypto/futures lot sizing.
Add multi-timeframe confirmation features.
Export strategy results or signals to a Telegram bot or external system.
MOEX Sectors: % Above MA 50/100/200 (EMA/SMA)📊 Indicator Name:
MOEX Sector Breadth: % Above MA 50/100/200 (EMA/SMA)
📝 Description:
This indicator tracks market breadth across sector indices of the Moscow Exchange (MOEX). It calculates the percentage of sectors trading above selected moving averages (SMA or EMA) with user-defined periods (50, 100, or 200).
It provides a high-level view of market participation and internal strength, helping to identify broad trends, divergences, and potential reversals.
📦 Tracked MOEX Sector Indices:
mathematica
Copy
Edit
MOEXOG — Oil & Gas
MOEXCH — Chemicals
MOEXMM — Metals & Mining
MOEXTN — Transport
MOEXCN — Consumer
MOEXFN — Financials
MOEXTL — Telecom
MOEXEU — Utilities
MOEXIT — Information Technology
MOEXRE — Real Estate
📈 How to Use:
>50% above MA 200 → Bullish market regime
<50% above MA 200 → Weak breadth, caution advised
>90% above MA 50 → Market may be overbought
<10% above MA 200 → Market oversold, possible bottom
Combine with the IMOEX index to assess participation behind major moves
Use as a trend filter or divergence detector
Stock metrics and valueThis indicator shows:
- the valuation metrics for a stock on a table on top right: PE, EPS, dividend, ROIC, ROE, ROA, EPS growth, FCF growth, Equity growth, revenue Growth
- the fair value and the value with 50% margin of safety as chart lines
The lines will be red when they are above the current price and red when they are below the current price.
The colors on the table will be red when the values are below 10% and green when they are above, that means when everything is green the metrics for the stock are good.