Multi Indicator Buy/Sell with BacktestThis backtest indicator allows you to configure up to 4 different indicators and set buy/sell levels for each one, then back test how well your strategy would have worked over a given time period.
지표 및 전략
5min Chicago Session OR Breakouts (Up to 1000%)This indicator calculates the 5 minute opening range of the Chicago session and calculates and plots OR breakouts up to 1000% to the upside and downside.
Triple EMA with LabelsThis indicator "Triple EMA with Labels", is designed to plot the 8, 21, and 50 period Exponential Moving Averages (EMAs) on the chart. By default, the labels display "8 EMA", "21 EMA", and "50 EMA", positioned slightly above their respective lines for better visibility. Users can customize or remove the label text through the indicator settings, allowing flexibility to suit individual preferences.
Triple Moving Average with LabelsThis indicator "Triple Moving Average with Labels", overlays the 50, 100, and 200 period Simple Moving Averages (SMAs) on the chart and provides customizable floating labels for each line. By default, the labels display "50 MA", "100 MA", and "200 MA", but users can modify or remove the text entirely through the indicator settings. The moving average periods (50, 100, or 200) are also adjustable. The labels are positioned slightly above and to the right of their respective lines for clear visibility.
Daily Sessions Tehran//@version=5
indicator("Daily Sessions Tehran", overlay=true)
// تنظیم تایم زون تهران (GMT+3:30)
timezone = "Asia/Tehran"
// محاسبه زمان 00:00 به وقت تهران که برابر با 20:30 به وقت GMT است
startOfDay = timestamp("Asia/Tehran", year, month, dayofmonth, 0, 0)
// نمایش زمان شروع روز به وقت تهران در چارت (برای بررسی)
plot(time == startOfDay ? 1 : na, color=color.red, style=plot.style_histogram, linewidth=2)
// رسم خط عمودی در زمان شروع روز
if (time == startOfDay)
line.new(x1=bar_index, y1=ta.highest(high, 500) * 1.2, x2=bar_index, y2=ta.lowest(low, 500) * 0.8, width=2, color=color.white, style=line.style_dotted)
// رنگ پسزمینه
bgcolor(color.new(color.blue, 90), offset=0, show_last=1, transp=80)
MM Labelled AVWAPTradingView provides a tool to show anchored VWAP plots on your screen, but there is no way to label the plots to add additional context to the level. Instead, users are forced to use the plot style (color, line style, line thickness, etc) to indicate what the plots are for and then they have to remember that meaning when looking at different charts. It also means that for key market-wide moments, users will need to add the plot for every symbol.
Now, for the first time on TradingView, you can create anchored VWAP plots with labels on them so you can understand the meaning behind the key moments you care about and don't need to remember what they mean by using styles like color or thickness. You can use this indicator to track key moments like the 2022 market bottom, or the Aug 9, 2024 "Carry Trade Unwind" bottom. The labelled AVWAP plots are visible on every chart by default. If you have an AVWAP moment that is only relevant to a small number of symbols, you can configure the indicator to only appear on those symbols.
M1 ES (Open & retouch) V3 avec variables configurablesIndicateur pour faciliter les déclenchements des trades suivant la méthode
M1 Trading pour fainéants
www.youtube.com
Custom MACrossOverLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Sessions pro v1 that visualizes multiple trading sessions on a chart. Here's a brief summary of its functionalities:
- **Session Visualization**: It defines up to four trading sessions (Session A, B, C, and D), which are customizable and correspond by default to major global markets:
- **Session A**: New York (`1300-2200` UTC)
- **Session B**: London (`0700-1600` UTC)
- **Session C**: Tokyo (`0000-0900` UTC)
- **Session D**: Sydney (`2100-0600` UTC)
- **Customization Options**:
- **Session Names**: Each session can be named as desired.
- **Time Ranges**: Custom time ranges can be set for each session.
- **Colors**: Users can choose specific colors for each session's visual elements.
- **Dashboard Display**:
- Shows a table on the chart indicating whether each session is currently active based on the real-time clock.
- The dashboard's position and size are customizable (e.g., Top Right, Bottom Center, Small, Large).
- Displays the status (`Active` or `Inactive`) for each session with color indicators (green for active, black for inactive).
**Purpose**:
This indicator helps traders:
- **Visual Analysis**: Easily see when major market sessions start and end.
- **Price Action**: Observe how prices move during different global trading hours.
//////////
Daily Dividers
Core Functionality
Visual Separation of Days: Draws dashed vertical lines at the start of each trading day to clearly separate daily sessions.
Day Labels: Displays the name of the day (e.g., Monday, Tuesday) at the top of the chart for quick reference.
Purpose: Helps traders identify the beginning of new trading days and organize price action analysis by day.
Ideal for: Traders who need a clear visual structure for daily price movements.
///////////
Daily and Weekly Change Tracking: 1D change / 1W change
Monitors and displays percentage changes in price for daily (1D) and weekly (1W) timeframes.
Color-Coded Visualization: Uses color coding to indicate positive (green) and negative (red) changes, enhancing quick visual analysis.
Historical Data Retrieval: Fetches past closing prices to calculate percentage changes, providing context for current price movements.
Dynamic Table Display: Presents changes in a structured table format, allowing for easy comparison across different symbols and timeframes.
//////////
Overbuy/Oversell Dashboard
Core Functionality
Aggregates 19 Technical Indicators: Combines signals to calculate Overbuy and Oversell conditions.
Real-Time Signal Counting: Displays the total number of Overbuy/Oversell signals in a clean, color-coded table.
Key Features:
Overbuy: Green highlight with total signals.
Oversell: Red highlight with total signals.
Purpose: Helps traders identify potential reversal points by showing the strength of conditions across multiple indicators.
Ideal for: Quick market sentiment analysis and confirming trend reversals.
//////////
Multi-Timeframe Trend Analysis:
Displays trends across various timeframes (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, Daily, Weekly, Monthly).
User Customization: Users can choose which timeframes to display trends for, enhancing flexibility.
Real-Time Updates: Automatically updates trend status (Up/Down) based on the latest price movements.
Visual Dashboard: Presents trends in a table format for easy interpretation, with color-coded indicators for quick analysis.
//
**Warning:**
This indicator is a tool for market analysis and should **not be used alone** for trading decisions. Always combine its signals with other technical analysis methods, risk management strategies, and fundamental analysis to make informed and balanced trading choices.
KE THAM LAM ZONEÁDASDASSSDASDASDSDS
KHÔNG BIẾT NÓI GIt’s difficult to say without more information about what the code is supposed to do and what’s happening when it’s executed. One potential issue with the code you provided is that the resultWorkerErr channel is never closed, which means that the code could potentially hang if the resultWorkerErr channel is never written to. This could happen if b.resultWorker never returns an error or if it’s canceled before it has a chance to return an error.
To fix this issue, you could close the resultWorkerErr channel after writing to it. For example, you could add the following line of code after the line that sends the error on the channel:
Moving Average DifferenceThe indicator computes the difference between m-day MA and n-day MA. It can be used to tell the price trend.
Moving Average Exponential//@version=5
indicator("Liquidity-Based Buy/Sell Al", overlay=true)
// Inputs
emaShort = input(50, title="Short EMA Length")
emaLong = input(200, title="Long EMA Length")
rsiLength = input(14, title="RSI Length")
riskRewardRatio = input(2.0, title="Risk-Reward Ratio")
// Trend Filter
ema50 = ta.ema(close, emaShort)
ema200 = ta.ema(close, emaLong)
trendBullish = ema50 > ema200
trendBearish = ema50 < ema200
// RSI Filter
rsi = ta.rsi(close, rsiLength)
rsiBullish = rsi > 50
rsiBearish = rsi < 50
// Liquidity Zones (Recent Highs/Lows)
liquidityHigh = ta.highest(high, 20)
liquidityLow = ta.lowest(low, 20)
// Support and Resistance (Dynamic)
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
// Buy Signal
buySignal = trendBullish and rsiBullish and close > support and low <= liquidityLow
// Sell Signal
sellSignal = trendBearish and rsiBearish and close < resistance and high >= liquidityHigh
// Plot Signals
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Risk-Reward Levels
if buySignal
stopLoss = liquidityLow
takeProfit = close + (close - stopLoss) * riskRewardRatio
line.new(x1=bar_index, y1=stopLoss, x2=bar_index, y2=takeProfit, color=color.green, width=2)
if sellSignal
stopLoss = liquidityHigh
takeProfit = close - (stopLoss - close) * riskRewardRatio
line.new(x1=bar_index, y1=stopLoss, x2=bar_index, y2=takeProfit, color=color.red, width=2)
Advanced Support and Resistance Levels[MAP]Advanced Support and Resistance Levels Indicator
Author
Developed by:
Overview
The "Advanced Support and Resistance Levels" indicator, created, is a sophisticated tool designed for TradingView's Pine Script v6 platform. It identifies and plots key support and resistance levels on a price chart, enhancing technical analysis by incorporating pivot strength, volume weighting, and level decay. The indicator overlays lines, zones, and labels on the chart, providing a visual representation of significant price levels where the market has historically reversed or consolidated.
Purpose
This indicator, authored by , aims to:
Detect significant pivot points (highs and lows) with customizable strength requirements.
Track and rank support/resistance levels based on their recency, volume, and number of touches.
Display these levels as lines and optional zones, with strength-based visual cues (e.g., line thickness and opacity).
Offer flexibility through user-configurable settings to adapt to different trading styles and market conditions.
Features
Pivot Detection:
Identifies high and low pivots using a strength parameter, requiring a specified number of bars on either side where no higher highs or lower lows occur.
Incorporates closing price checks and SMA-based trend confirmation to filter out noise and ensure pivots align with the broader market direction.
Level Management:
Maintains a dynamic array of levels with attributes: price, type (support/resistance), bars since last touch, strength, and volume.
Merges nearby levels within a tolerance percentage, updating prices with a strength-weighted average.
Prunes weaker or older levels when exceeding the maximum allowed, prioritizing those with higher calculated strength.
Strength Calculation:
Combines the number of touches (strength), volume (if enabled), and age decay (if enabled) into a single metric.
Volume weighting uses a logarithmic scale to emphasize high-volume pivots without over-amplifying extreme values.
Age decay reduces the importance of older levels over time, ensuring relevance to current price action.
Visualization:
Draws horizontal lines at each level, with thickness reflecting the number of touches (up to a user-defined maximum).
Optional price zones around levels, sized as a percentage of the price, to indicate areas of influence.
Labels display the level type (S for support, R for resistance), price, and strength score, with position (left or right) customizable.
Line opacity varies with strength, providing a visual hierarchy of level significance.
Plots small triangles at detected pivot points for reference.
Inputs
Lookback Period (lookback, default: 20): Number of bars to consider for trend confirmation via SMA. Range: 5–100.
Pivot Strength (strength, default: 2): Number of bars required on each side of a pivot to confirm it. Range: 1–10.
Price Tolerance % (tolerance, default: 0.5): Percentage range for merging similar levels. Range: 0.1–5.
Max Levels to Show (maxLevels, default: 10): Maximum number of levels displayed. Range: 2–50.
Zone Size % (zoneSizePercent, default: 0.1): Size of the S/R zone as a percentage of the price. Range: 0–1.
Line Width (lineWidth, default: 1): Maximum thickness of level lines. Range: 1–5.
Show Labels (showLabels, default: true): Toggle visibility of level labels.
Label Position (labelPos, default: "Right"): Position of labels ("Left" or "Right").
Level Strength Decay (levelDecay, default: true): Enable gradual reduction in strength for older levels.
Volume Weighting (volumeWeight, default: true): Incorporate volume into level strength calculations.
Support Color (supportColor, default: green): Color for support levels.
Resistance Color (resistColor, default: red): Color for resistance levels.
How It Works
Pivot Detection:
Checks for pivots only after enough bars (2 * strength) have passed.
A high pivot requires strength bars before and after with no higher highs or closes, and a short-term SMA above a long-term SMA.
A low pivot requires strength bars before and after with no lower lows or closes, and a short-term SMA below a long-term SMA.
Level Tracking:
New pivots create levels with initial strength and volume.
Existing levels within tolerance are updated: strength increases, volume takes the maximum value, and price adjusts via a weighted average.
Levels older than lookback * 4 bars with strength below 0.5 are removed.
If the number of levels exceeds maxLevels, the weakest (by calculated strength) are pruned using a selection sort algorithm.
Drawing:
Updates on the last confirmed bar or in real-time.
Lines extend lookback bars left and right from the current bar, with thickness based on touches.
Zones (if enabled) are drawn symmetrically around the level price.
Labels show detailed info, with opacity tied to strength.
Usage
Add to Chart: Apply the indicator to any TradingView chart via the Pine Script editor, as designed by .
Adjust Settings: Customize inputs to match your trading strategy (e.g., increase strength for stronger pivots, adjust tolerance for tighter level merging).
Interpret Levels: Focus on thicker, less transparent lines for stronger levels; use zones to identify potential reversal areas.
Combine with Other Tools: Pair with trend indicators or oscillators for confluence in trading decisions.
Notes
Performance: The indicator uses arrays and sorting, which may slow down on very long charts with many levels. Keep maxLevels reasonable for efficiency.
Accuracy: Enhanced by trend confirmation and volume weighting, making it more reliable than basic S/R indicators, thanks to 's design.
Limitations: Real-time updates may shift levels as new pivots form; historical levels are more stable.
Example Settings
For day trading: lookback=10, strength=1, tolerance=0.3, maxLevels=5.
For swing trading: lookback=50, strength=3, tolerance=0.7, maxLevels=10.
Credits
Author: – Creator of this advanced support and resistance tool, blending precision and customization for traders.
Musical Harmonics - Time BasedPlace on a recent price low. Identify the price and date of a 3 month price low, then input these values into the settings dialogue box.
This will provide you with a vertical harmonic grid which represents the path of least resistance for price to travel and indicates both reversal points and take profit points, essentially calculates the likely distance price will travel in any given direction.
The horizontal time indication is a comparable indicator with a date as an input, provides reference for how long price is likely to move in any one direction, and indicates points of reversal/take profit.
High and Low with Horizontal TableThis script is rudimentary, but it primarily intended to give the opening highs and lows of a time you specify in the Sydney Australian timezone (UTC+11). It is meant to give the high and low range of the opening market hours for markets opening sessions.
ADX +DI and -DI with FillModified DMI. Middle horizontal line value:25. white line indicates the trend strength.
Forex Power Indicator [FindBetterTrades]The Forex Power Indicator is designed to help traders quickly assess the relative strength and weakness of key forex pairs over a set period.
This tool calculates the percentage change in price over the last 5 days and highlights the strongest and weakest performing pairs in a simple table format.
Features:
Scans 10 major forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, NZDUSD, USDCAD, CHFJPY, EURGBP, EURJPY, GBPJPY).
Calculates the percentage change over the last 5 days.
Identifies and labels the strongest and weakest pair based on performance.
Displays results in a customizable table, allowing traders to quickly interpret market trends.
How to Use:
The strongest pair (🟢) indicates the currency with the highest performance in the selected period.
The weakest pair (🔴) shows the currency that has lost the most value.
Alerts feature:
Once you add the script to your chart, go to "Create Alert"
Under "Condition", select "Forex Power Indicator ".
The system will use the messages set in the alert() function.
When triggered, the alert will display the message like:
"New strongest currency pair: USDJPY"
"New weakest currency pair: AUDUSD"
Use this information to spot momentum opportunities, potential reversals, or trend continuations in forex trading.
This indicator is for informational purposes only and should be used alongside other technical analysis tools to support trading decisions.
Estrategia Rentable de TradingDescripción de la Estrategia:
Medias Móviles: Utiliza una media móvil rápida y una lenta para identificar tendencias. Se generan señales de compra cuando la media rápida cruza por encima de la lenta y señales de venta cuando cruza por debajo.
RSI: Se utiliza el RSI para confirmar las entradas. Se busca comprar cuando el RSI está en sobreventa y vender cuando está en sobrecompra.
Gestión de Riesgos: Se establecen niveles de stop loss y take profit basados en porcentajes configurables.
Market Participation Index [PhenLabs]📊 Market Participation Index
Version: PineScript™ v6
📌 Description
Market Participation Index is a well-evolved statistical oscillator that constantly learns to develop by adapting to changing market behavior through the intricate mathematical modeling process. MPI combines different statistical approaches and Bayes’ probability theory of analysis to provide extensive insight into market participation and building momentum. MPI combines diverse statistical thinking principles of physics and information and marries them for subtle changes to occur in markets, levels to become influential as important price targets, and pattern divergences to unveil before it is visible by analytical methods in an old-fashioned methodology.
🚀 Points of Innovation:
Automatic market condition detection system with intelligent preset selection
Multi-statistical approach combining classical and advanced metrics
Fractal-based divergence system with quality scoring
Adaptive threshold calculation using statistical properties of current market
🚨 Important🚨
The ‘Auto’ mode intelligently selects the optimal preset based on real-time market conditions, if the visualization does not appear to the best of your liking then select the option in parenthesis next to the auto mode on the label in the oscillator in the settings panel.
🔧 Core Components
Statistical Foundation: Multiple statistical measures combined with weighted approach
Market Condition Analysis: Real-time detection of market states (trending, ranging, volatile)
Change Point Detection: Bayesian analysis for finding significant market structure shifts
Divergence System: Fractal-based pattern detection with quality assessment
Adaptive Visualization: Dynamic color schemes with context-appropriate settings
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-statistical Oscillator: Combines Z-score, MAD, and fractal dimensions
Advanced Statistical Components: Includes skewness, kurtosis, and entropy analysis
Auto-preset System: Automatically selects optimal settings for current conditions
Fractal Divergence Analysis: Detects and grades quality of divergence patterns
Adaptive Thresholds: Dynamically adjusts overbought/oversold levels
🎨 Visualization
Color-coded Oscillator: Gradient-filled oscillator line showing intensity
Divergence Markings: Clear visualization of bullish and bearish divergences
Threshold Lines: Dynamic or fixed overbought/oversold levels
Preset Information: On-chart display of current market conditions
Multiple Color Schemes: Modern, Classic, Monochrome, and Neon themes
Classic
Modern
Monochrome
Neon
📖 Usage Guidelines
The indicator offers several customization options:
Market Condition Settings:
Preset Mode: Choose between Auto-detection or specific market condition presets
Color Theme: Select visual theme matching your chart style
Divergence Labels: Choose whether or not you’d like to see the divergence
✅ Best Use Cases:
Identify potential market reversals through statistical divergences
Detect changes in market structure before price confirmation
Filter trades based on current market condition (trending vs. ranging)
Find optimal entry and exit points using adaptive thresholds
Monitor shifts in market participation and momentum
⚠️ Limitations
Requires sufficient historical data for accurate statistical analysis
Auto-detection may lag during rapid market condition changes
Advanced statistical calculations have higher computational requirements
Manual preset selection may be required in certain transitional markets
💡 What Makes This Unique
Statistical Depth: Goes beyond traditional indicators with advanced statistical measures
Adaptive Intelligence: Automatically adjusts to current market conditions
Bayesian Analysis: Identifies statistically significant change points in market structure
Multi-factor Approach: Combines multiple statistical dimensions for confirmation
Fractal Divergence System: More robust than traditional divergence detection methods
🔬 How It Works
The indicator processes market data through four main components:
Market Condition Analysis:
Evaluates trend strength, volatility, and price patterns
Automatically selects optimal preset parameters
Adapts sensitivity based on current conditions
Statistical Oscillator:
Combines multiple statistical measures with weights
Normalizes values to consistent scale
Applies adaptive smoothing
Advanced Statistical Analysis:
Calculates higher-order statistical moments
Applies information-theoretic measures
Detects distribution anomalies
Divergence Detection:
Uses fractal theory to identify pivot points
Detects and scores divergence quality
Filters signals based on current market phase
💡 Note:
The Market Participation Index performs optimally when used across multiple timeframes for confirmation. Its statistical foundation makes it particularly valuable during market transitions and periods of changing volatility, where traditional indicators often fail to provide clear signals.
Liquidity + Fearzone + GreedZone [Combined]The Liquidity-Based Fear and Greed Indicator is a market sentiment tool designed to gauge investor behavior by analyzing liquidity trends. It tracks the balance between fear (low liquidity, risk aversion, and selling pressure) and greed (high liquidity, risk appetite, and buying momentum) in financial markets. By assessing factors such as trading volume, cash flow, and asset availability, the indicator provides a dynamic snapshot of whether market participants are driven by caution or exuberance, helping investors make informed decisions.