Analisi trend
Close vs 50SMA % (Bars colored by 20SMA)This indicator plots the percentage difference between the Close price and the 50-period Simple Moving Average (SMA50), and colors each bar based on whether the Close is above or below the 20-period SMA (SMA20).
Intraday TWAP SimpleSlivKurs. This script implements a classic VWAP using ChatGPT (OpenAI). Purely a home project.
ZY Legend StrategyThe ZY Legend Strategy indicator closely follows the trend of the parity. It produces trading signals in candles where the necessary conditions are met and clearly shows these signals on the chart. Although it was produced for the scalp trade strategy, it works effectively in all time frames. 'DEAD PARITY' signals indicate that healthy signals cannot be generated for the relevant parity due to shallow ATR. It is not recommended to trade on parities where this signal appears.
Daily Balance Point (Ray + Axis Price Only)This tool helps traders visually track the most important level of the day to plan smart trades based on price action, rejections, or breakouts from the balance point. By Fahad Malik FM Forex Academy ✅
Close Above Prev High / Below Prev LowIdentifies candles that close above the previous candle's high (bullish) and candles that close below the previous candle's low (bearish). Helps with decisions for entry and exit.
Amavasya High Lows"This script plots Higher Highs and Lower Lows following each Amavasya trading date."
Moving Average ExponentialThis indicator plots 8 Exponential Moving Averages (EMAs) with customizable lengths: 20, 25, 30, 35, 40, 45, 50, and 55. It also includes optional smoothing using various moving average types (SMA, EMA, WMA, etc.) and an optional Bollinger Bands overlay based on the EMA. It helps identify trend direction, momentum, and potential reversal zones.
Historical Volatility with HV Average & High/Low TrendlinesHere's a detailed description of your Pine Script indicator:
---
### 📊 **Indicator Title**: Historical Volatility with HV Average & High/Low Trendlines
**Version**: Pine Script v5
**Purpose**:
This script visualizes market volatility using **Historical Volatility (HV)** and enhances analysis by:
* Showing a **moving average** of HV to identify volatility trends.
* Marking **high and low trendlines** to highlight extremes in volatility over a selected period.
---
### 🔧 **Inputs**:
1. **HV Length (`length`)**:
Controls how many bars are used to calculate Historical Volatility.
*(Default: 10)*
2. **Average Length (`avgLength`)**:
Number of bars used for calculating the moving average of HV.
*(Default: 20)*
3. **Trendline Lookback Period (`trendLookback`)**:
Number of bars to look back for calculating the highest and lowest values of HV.
*(Default: 100)*
---
### 📈 **Core Calculations**:
1. **Historical Volatility (`hv`)**:
$$
HV = 100 \times \text{stdev}\left(\ln\left(\frac{\text{close}}{\text{close} }\right), \text{length}\right) \times \sqrt{\frac{365}{\text{period}}}
$$
* Measures how much the stock price fluctuates.
* Adjusts annualization factor depending on whether it's intraday or daily.
2. **HV Moving Average (`hvAvg`)**:
A simple moving average (SMA) of HV over the selected `avgLength`.
3. **HV High & Low Trendlines**:
* `hvHigh`: Highest HV value over the last `trendLookback` bars.
* `hvLow`: Lowest HV value over the last `trendLookback` bars.
---
### 🖍️ **Visual Plots**:
* 🔵 **HV**: Blue line showing raw Historical Volatility.
* 🔴 **HV Average**: Red line (thicker) indicating smoothed HV trend.
* 🟢 **HV High**: Green horizontal line marking volatility peaks.
* 🟠 **HV Low**: Orange horizontal line marking volatility lows.
---
### ✅ **Usage**:
* **High HV**: Indicates increased risk or potential breakout conditions.
* **Low HV**: Suggests consolidation or calm markets.
* **Cross of HV above Average**: May signal rising volatility (e.g., before breakout).
* **Touching High/Low Levels**: Helps identify volatility extremes and possible reversal zones.
---
Let me know if you’d like to add:
* Alerts when HV crosses its average.
* Shaded bands or histogram visualization.
* Bollinger Bands for HV.
📈 Smart Alert System — EMA/MA/Volume/SMC AlertsHere's a detailed description of your custom TradingView **Pine Script v6**:
---
### 📌 **Title**: Smart Alert System — Webhook Ready (with EMA, MA, Volume, and SMC)
This script is designed to **monitor price behavior**, detect important **technical analysis events**, and **send real-time alerts via webhook to a Telegram bot**.
---
## 🔧 SETTINGS
| Setting | Description |
| ----------------------- | ------------------------------------------------------------------------------ |
| `volumeSpikeMultiplier` | Multiplier to determine a volume spike compared to the 20-bar average volume |
| `testAlert` | If `true`, sends a test alert when the indicator is first applied to the chart |
---
## 🔍 COMPONENT BREAKDOWN
### 1. **EMA & MA Calculations**
These indicators are calculated and plotted on the chart:
* **EMAs**: 13, 25, 30, 200 — used for trend and touch detection
* **MAs**: 100, 300 — used for break and retest detection
```pinescript
ema_13 = ta.ema(close, 13)
ema_200 = ta.ema(close, 200)
ma_100 = ta.sma(close, 100)
```
---
### 2. **📈 Volume Spike Detection**
* A volume spike is identified when the current bar's volume is **2x (default)** greater than the 20-period average.
* A red triangle is plotted above such candles.
* A **JSON alert** is triggered.
```pinescript
volSpike = volume > avgVol * volumeSpikeMultiplier
```
---
### 3. **📊 EMA Touch Alerts**
* The script checks if the current close is:
* Within 0.1% of an EMA value **OR**
* Has crossed above/below it.
* If so, it sends an alert with the EMA name.
```pinescript
touch(val, crossed) =>
math.abs(close - val) / val < 0.001 or crossed
```
---
### 4. **📉 MA Break and Retest Alerts**
* A **break** is when price falls **below** a moving average.
* A **retest** is when price climbs **above** the same average after breaking below.
```pinescript
breakBelow(ma) => close > ma and close < ma
```
---
### 5. 🧠 **SMC Alerts (Break of Structure \ & Change of Character \ )**
These follow **Smart Money Concepts (SMC)**. The script identifies:
* **BOS**: New higher high in uptrend or lower low in downtrend
* **CHOCH**: Opposite of trend, e.g. lower low in uptrend or higher high in downtrend
```pinescript
bos = (high > high ) and (low > low ) and (low > low )
choch = (low < low ) and (high < high ) and (high < high )
```
---
### 6. 🧪 Dummy Test Alert (1-time fire)
* Sends a `"✅ Test Alert Fired"` to verify setup
* Executes **once only** after adding the indicator
```pinescript
var bool sentTest = false
if testAlert and not sentTest
```
---
### 7. 🚀 Alert Delivery (Webhook JSON)
All alerts are sent as a JSON payload that looks like this:
```json
{
"pair": "BTCUSD",
"event": "🔺 Volume Spike",
"timeframe": "15",
"timestamp": "2024-06-29T12:00:00Z",
"volume": "654000"
}
```
This format makes it compatible with your **Telegram webhook server**.
---
### 🔔 Alerts You Can Create in TradingView
* Set **Webhook URL** to your `https://xxxx.ngrok-free.app/tradingview-webhook`
* Use alert condition: `"Any alert()`" — because all logic is internal.
* Select **"Webhook URL"** and leave the message body blank.
---
### 🛠️ Use Cases
* Notify yourself on **EMA interaction**
* Detect **trend shifts or retests**
* Spot **volume-based market interest**
* Get real-time **BOS/CHOCH alerts** for Smart Money strategies
* Alert through **Telegram using your Node.js webhook server**
---
Would you like me to break down the full Pine Script block-by-block as well?
Non-Commercial Bias TrackerNon-Commercial Bias Tracker
Overview
The Non-Commercial Bias Tracker is a sophisticated sentiment analysis tool designed to provide traders with a clear view of the positioning of institutional speculators in the futures market. By analyzing the weekly Commitment of Traders (COT) report, this indicator helps you understand the underlying bias of large market participants for a wide range of assets, including forex, commodities, and indices.
The primary goal of this tool is to identify the prevailing trend in market sentiment and alert you to significant shifts in that trend, allowing you to align your strategy with the flow of institutional money.
Key Features
Dual Asset Analysis: Automatically detects the two assets in a trading pair (e.g., EUR and USD in EURUSD) or a single asset (e.g., GOLD) and displays their sentiment data side-by-side.
Comprehensive Data Table: A clean, customizable dashboard shows you the most critical sentiment metrics at a glance, including the current Net Position, the Change %, and the Overall Bias.
Visual Sentiment Plot: The indicator plots the primary sentiment metric and its signal line, giving you a visual representation of momentum and trend.
Clear Bias-Shift Signals: Green and red circles appear directly on the plot to highlight the exact moment the underlying sentiment momentum shifts, providing clear and timely signals.
How to Use the Indicator
Important Note: The Commitment of Traders data is released weekly. For the most accurate and meaningful signals, it is strongly recommended to use this indicator on the Weekly (W) chart timeframe.
1. The Data Table
The table in the corner of your screen is your main dashboard. Here’s what each row means:
Net Position: Shows the net difference between long (bullish) and short (bearish) contracts held by non-commercial traders. A positive number indicates a net long position; a negative number indicates a net short position.
Change %: This is the primary metric used for analysis, representing the net sentiment as a percentage.
Overall Bias: This is the final output of the indicator's analysis. It provides a clear "Long" or "Short" signal based on the current sentiment momentum. This cell is color-coded for quick interpretation (Green for Long, Red for Short).
2. The Chart Plots
Blue Line: Represents the current sentiment metric ("Change %" or "Net Position %").
Orange Line: Represents the signal line, or the average sentiment over a specific period.
Crossover Signals:
A Green Circle appears when the blue line crosses above the orange line, signaling a shift to a Long Bias.
A Red Circle appears when the blue line crosses below the orange line, signaling a shift to a Short Bias.
Settings & Customization
You can tailor the indicator to your specific needs via the Settings menu:
Data Source: Choose between "Futures Only" or the combined "Futures and Options" data.
Metric Type: Select whether to analyze the market using "Change %" (for momentum) or "Net Position %" (for conviction).
Bias Signal Line Length: Adjust the sensitivity of the crossover signals. A shorter length is faster, while a longer length provides smoother, more confirmed signals.
Style Settings: Customize the position of the data table and the color of the text to match your chart theme.
Disclaimer: This indicator is a tool for analysis and should not be considered as direct financial advice. All trading involves risk. Always use proper risk management and conduct your own due diligence before making any trading decisions.
FVGs Multi-Frame Optimized v1.0Description
FVGs Multi-Frame Optimized v1.0 This indicator detects and visualizes Fair Value Gaps (FVGs) across multiple timeframes (from 1 second to 1 day). It offers complete customization of imbalance visualization including:
Styles and colors for bullish/bearish FVGs
Labeling options
Mitigated zone management
Proximity controls to show/hide FVGs
Individual timeframe settings
User Manual:
1. Basic Setup :
Select which timeframes to display (1s to 1D)
Choose whether to hide lower/current timeframes
Adjust spacing between zones from different timeframes
2. Visual Styles :
Customize lines (solid, dashed, dotted)
Define colors for active and mitigated FVGs
Control line thickness
3. Advanced Options :
Enable/disable proximity filter
Configure FVG mitigation criteria
Limit maximum visible FVGs
Shadow size Cryptoingener)"Wick Size Indicator"
This indicator calculates and displays the size of upper and lower wicks for each candlestick on the chart. It helps traders identify price rejection zones, potential reversals, and volatility patterns by visualizing how far price moved beyond the open and close within each candle. The wick size is shown in points or percentage, making it easier to detect market sentiment and analyze candle structure in real time.
WMA cross with filtered Signals [Dr.K.C.Prakash]WMA cross with filtered Signals
📌 Description
This indicator is designed to generate trend-filtered Buy and Sell signals based on the crossover of two Weighted Moving Averages (WMAs), with confirmation from a long-term EMA trend filter.
It helps traders avoid false signals in choppy markets by trading only in the direction of the broader trend.
✅ Features
Fast WMA (?) and Slow WMA (?)
Core crossover logic for detecting local trend shifts.
EMA Trend Filter (?)
Confirms overall trend direction.
Buy signals only occur when price is above the EMA ? (uptrend).
Sell signals only occur when price is below the EMA ? (downtrend).
Signal Markers on Chart
BUY label below bar for valid bullish crossovers.
SELL label above bar for valid bearish crossunders.
EMA 200 Line
Clearly plotted to visualize the trend filter level.
Customizable Length Inputs
Users can adjust Fast WMA, Slow WMA, and EMA filter length.
Lines for both WMAs and the EMA trend filter.
Signal labels on valid Buy/Sell events.
✅ Use Cases
Trend-following traders who want cleaner entries.
Avoiding counter-trend signals.
Works on any timeframe (but EMA 200 is best for larger trend context).
GCM Bull Bear RiderGCM Bull Bear Rider (GCM BBR)
Your Ultimate Trend-Riding Companion
GCM Bull Bear Rider is a comprehensive, all-in-one trend analysis tool designed to eliminate guesswork and provide a crystal-clear view of market direction. By leveraging a highly responsive Jurik Moving Average (JMA), this indicator not only identifies bullish and bearish trends with precision but also tracks their performance in real-time, helping you ride the waves of momentum from start to finish.
Whether you are a scalper, day trader, or swing trader, the GCM BBR adapts to your style, offering a clean, intuitive, and powerful visual guide to the market's pulse.
Key Features
JMA-Powered Trend Lines (UTPL & DTPL): The core of the indicator. A green "Up Trend Period Line" (UTPL) appears when the JMA's slope turns positive (buyers are in control), and a red "Down Trend Period Line" (DTPL) appears when the slope turns negative (sellers are in control). The JMA is used for its low lag and superior smoothing, giving you timely and reliable trend signals.
Live Profit Tracking Labels: This is the standout feature. As soon as a trend period begins, a label appears showing the real-time profit (P:) from the trend's starting price. This label moves with the trend, giving you instant feedback on its performance and helping you make informed trade management decisions.
Historical Performance Analysis: The profit labels remain on the chart for completed trends, allowing you to instantly review past performance. See at a glance which trends were profitable and which were not, aiding in strategy refinement and backtesting.
Automatic Chart Decluttering: To keep your chart clean and focused on significant moves, the indicator automatically removes the historical profit label for any trend that fails to achieve a minimum profit threshold (default is 0.5 points).
Dual-Ribbon Momentum System:
JMA / Short EMA Ribbon: Visualizes short-term momentum. A green fill indicates immediate bullish strength, while a red fill shows bearish pressure.
Short EMA / Long EMA Ribbon: Acts as a long-term trend filter, providing broader market context for your decisions.
"GCM Hunt" Entry Signals: The indicator includes optional pullback entry signals (green and red triangles). These appear when the price pulls back to a key moving average and then recovers in the direction of the primary trend, offering high-probability entry opportunities.
How to Use
Identify the Trend: Look for the appearance of a solid green line (UTPL) for a bullish bias or a solid red line (DTPL) for a bearish bias. Use the wider EMA ribbon for macro trend confirmation.
Time Your Entry: For aggressive entries, you can enter as soon as a new trend line appears. For more conservative entries, wait for a "GCM Hunt" triangle signal, which confirms a successful pullback.
Ride the Trend & Manage Your Trade: The moving profit label (P:) is your guide. As long as the trend line continues and the profit is increasing, you can confidently stay in the trade. A flattening JMA or a decreasing profit value can signal that the trend is losing steam.
Focus Your Strategy: Use the Display Mode setting to switch between "Buyers Only," "Sellers Only," or both. This allows you to completely hide opposing signals and focus solely on long or short opportunities.
Core Settings
Display Mode: The master switch. Choose to see visuals for "Buyers & Sellers," "Buyers Only," or "Sellers Only."
JMA Settings (Length, Phase): Fine-tune the responsiveness of the core JMA engine.
EMA Settings (Long, Short): Adjust the lengths of the moving averages that define the ribbons and "Hunt" signals.
Label Offset (ATR Multiplier): Customize the gap between the trend lines and the profit labels to avoid overlap with candles.
Filters (EMA, RSI, ATR, Strong Candle): Enable or disable various confirmation filters to strengthen the "Hunt" entry signals according to your risk tolerance.
Add the GCM Bull Bear Rider to your chart today and transform the way you see and trade the trend!
ENJOY
EscobarTrades:- Session Opens/Box's)Marks out session opens for you, Shows you different sessions with color boxes
Support and ResistanceSupport and Resistance is a customizable indicator for TradingView that allows users to manually input and visualize multiple support and resistance levels and ranges directly on their charts. The script distinguishes between major and minor levels, supporting both single price lines and price ranges for each. Users can specify levels as major or minor, select line styles (solid, dashed, dotted), adjust colors and transparency, and choose whether to display price labels. Ranges are highlighted with shaded fills between two price levels, and all elements are dynamically managed to avoid clutter. This tool is designed to help traders quickly identify key price zones for decision-making, and all settings are accessible through the indicator’s input panel, making it flexible for any market or timeframe.
- Manually input unlimited support and resistance levels or ranges
- Highlight major vs. minor zones with different colors and styles
- Show or hide price labels for clarity
- Customizable appearance for lines and range fills
- Works on any asset and timeframe
This indicator does not provide trading signals or automate analysis; it is a visual aid for discretionary traders who want precise control over their chart annotations.
T4 Bkk OscillatorThis is mainly for private coaching group. The indicator takes in to account oscillation and volume on graph.
Auto Trendlines [AlgoXcalibur]Effortlessly visualize trendlines.
This algorithm does more than just draw lines connecting structural swing points — it reveals dynamic support & resistance breakouts with clarity and precision while significantly reducing your workload compared to the hassle of manually drawing trendlines.
🧠 Algorithm Logic
This advanced Auto Trendlines indicator delivers clear market structure through an intelligent multi-fractal design, revealing useful swing structures in real time. For those seeking maximum awareness, the optional Micro Trendlines (Dotted) constantly monitors even the most recent and minor structural shifts — keeping you fully in tune with evolving market dynamics. A Break Detection Engine constantly monitors each trendline and provides instant visual feedback when structural integrity is lost: broken lines turn gray, stop extending, and remain visible to enhance clarity and situational awareness. The algorithm is carefully refined to prevent chart distortion commonly caused by forcing entire trendline structures into view — preserving a natural and accurate charting experience. To further ensure optimal readability, an integrated Clutter Control mechanism limits the number of visible trendlines — focusing attention only on the most relevant structures.
⚙️ User-Selectable Features
• Micro Trendlines (Dotted): Ultra-responsive short-term trendlines that react to even the smallest structural shifts — ideal for staying ahead of early trend changes.
• Broken Trendline Declutter: Enable to display only the most recent broken trendlines to simplify chart visuals and maintain clarity, or disable to analyze previous price action.
💡 Modern Innovation
Auto Trendline indicators are often inaccurate, clumsy, and rely on slow methods that fail to adapt. AlgoXcalibur’s Auto Trendline indicator takes a modern, refined approach — combining smart pivot logic for both speed and stability, dynamic break detection with clear visual cues, and displaying only the most relevant trendlines while prioritizing accuracy, preventing distortion, and reducing clutter — automatically.
🔐 To get access or learn more, visit the Author’s Instructions section.
Last 10 Sessions: High, Low, Pivot, GapLast 10 Sessions: High, Low, Pivot, Gap
Version: v1.0
Developed by
This indicator highlights the most important price levels from the last 10 completed trading sessions to help intraday and swing traders quickly spot potential support, resistance, and price reaction zones.
Key Features:
Previous Highs and Lows: Visualize the high and low from each of the past 10 sessions. These are the most commonly tested breakout and reversal points for day trading.
Session Pivots: The classic pivot formula ((High + Low + Close) / 3) for each of the last 10 sessions, often acting as a market “equilibrium” or intraday magnet.
Gaps: Displays the difference between each day’s open and the previous session’s close (“gap”), showing sentiment shifts and possible gap fill targets.
Clean, Faded Visuals: All lines and labels are subtly faded so your chart remains clear and uncluttered, with each level labeled by how many sessions ago it occurred.
Full Customization: Instantly toggle any level type (High, Low, Pivot, Gap) ON/OFF in settings, extend lines to the right, and adjust their forward length.
Bulletproof Logic: Never throws runtime errors. Lines and labels only display when valid data is present.
How to Use:
Use recent highs/lows for breakout, breakdown, or mean reversion trades.
Spot where multiple levels from past sessions cluster together for high-probability reversal or breakout areas.
Watch pivots for intraday bias, and gaps for sentiment and possible fill plays.
Perfect for all intraday timeframes.
If you want a powerful yet minimal map of where price is most likely to react, this indicator is for you!