ICT + AVP + CHoCH (Smart Money)just tried to check concept of ict avp and choch for trading in various charts
Indicadores y estrategias
Rishii's EMA Trend EngineThis indicator is a dual-EMA trend framework designed to improve intraday decision-making by filtering out sideways market noise and highlighting only meaningful trend participation.
It uses a fast and slow EMA to define trend direction, while applying an HLC3-based color logic to show whether price is respecting each EMA. Candles turn green or red only when both the trend alignment and price participation conditions are satisfied. Neutral candles can be shown in white to visually remove noise and make valid candles stand out.
Additional filters such as EMA slope detection and optional higher-timeframe bias help avoid false signals during ranging conditions. A background trend zone and first-candle markers after EMA crossover further improve clarity without cluttering the chart.
How it helps
Clearly shows when the market is trending vs sideways
Highlights only those candles where price is truly participating in the trend
Filters out most whipsaws caused by flat EMAs BITSTAMP:BTCUSD
Combines trend bias, momentum, and participation in one clean view
Caution
This is a trend-following tool, not a reversal indicator.
When EMAs are flat and candles turn white, avoid trading
Do not treat every green/red candle as an entry; wait for proper structure.
Always use proper stop-loss and position sizing.
Fair Value Interest Rate LadderDisplays the remaining interest rate relative to a specific expiration date. Compatible with both ascending and descending price trends (toggleable in Settings). The smooth decay visualization offers better clarity compared to standard daily horizontal levels.
Kaste Trend MA (Bullish/Bearish)This indicator plots a moving average on top of the price chart and changes its color based on market trend direction.
When the moving average is rising, it turns green to indicate a bullish market.
When the moving average is falling, it turns red to indicate a bearish market.
The trend is determined by the slope of the moving average, making it a simple and clear visual trend indicator.
Altangadas Megad //@version=5
indicator("VWAP/MVWAP/EMA Precise Final", overlay = true)
// --- 1. Signal Settings ---
vwapLength = input.int(1, title="VWAP Length", minval=1)
emaLength1 = input.int(7, title="Signal EMA 1 (7)", minval=1)
emaLength2 = input.int(25, title="Signal EMA 2 (25)", minval=1)
mvwapLength = input.int(21, title="MVWAP Length", minval=1)
// --- RSI Settings ---
rsiLength = input.int(14, title="RSI Length")
rsiLimit = input.int(70, title="RSI Filter Level")
// --- 2. Trend EMA Settings ---
ema50Length = input.int(50, title="Trend EMA 50")
ema100Length = input.int(100, title="Trend EMA 100")
ema200Length = input.int(200, title="Trend EMA 200")
ema800Length = input.int(800, title="Institutional EMA 800")
// --- Calculations ---
vwapValue = ta.vwap(hlc3)
cvwap = ta.ema(vwapValue, vwapLength)
mvwap = ta.ema(vwapValue, mvwapLength)
rsiValue = ta.rsi(close, rsiLength)
ema1 = ta.ema(close, emaLength1)
ema2 = ta.ema(close, emaLength2)
ema50 = ta.ema(close, ema50Length)
ema100 = ta.ema(close, ema100Length)
ema200 = ta.ema(close, ema200Length)
ema800 = ta.ema(close, ema800Length)
// --- Plotting Lines ---
plot(cvwap, color=color.blue, linewidth=2, title="VWAP", style=plot.style_linebr)
plot(mvwap, color=color.fuchsia, linewidth=2, title="MVWAP", style=plot.style_linebr)
plot(ema1, color=color.new(color.yellow, 50), title="EMA 7")
plot(ema2, color=color.new(color.orange, 50), title="EMA 25")
plot(ema50, color=color.green, linewidth=1, title="EMA 50")
plot(ema100, color=color.blue, linewidth=1, title="EMA 100")
plot(ema200, color=color.gray, linewidth=2, title="EMA 200")
plot(ema800, color=color.yellow, linewidth=4, title="EMA 800")
// --- Signal Logic (Анхны огтлолцол дээр нэг удаа сигнал өгөх) ---
// LONG: EMA болон VWAP бүгд MVWAP-аас дээш гарахад
longCond = (ema1 > mvwap) and (ema2 > mvwap) and (cvwap > mvwap)
// SHORT: EMA болон VWAP бүгд MVWAP-аас доош ороход
shortCond = (ema1 < mvwap) and (ema2 < mvwap) and (cvwap < mvwap)
// Зөвхөн төлөв өөрчлөгдөх мөчийг барих
longTrigger = longCond and not longCond and (rsiValue < rsiLimit)
shortTrigger = shortCond and not shortCond and (rsiValue > (100 - rsiLimit))
// --- Tiny Signals ---
plotshape(longTrigger, title="L", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.tiny, text="L")
plotshape(shortTrigger, title="S", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.tiny, text="S")
// --- Alerts ---
alertcondition(longTrigger, title="Long Alert", message="XAUUSD: LONG!")
alertcondition(shortTrigger, title="Short Alert", message="XAUUSD: SHORT!")
Bollinger Squeezes (All-in-One)This indicator is a faithful recreation of the popular Bollinger Squeeze studies found in the Sierra Chart platform. It bundles three specific calculation methods (Study IDs 221, 233, and 401) into a single, versatile script.
While standard Squeeze indicators on TradingView often use a generalized formula, this script strictly follows the logic documented by Sierra Chart to ensure the exact same visual and numerical output.
📊 Included Modes (Selectable via Settings)
You can switch between the following three modes in the settings menu without adding the indicator multiple times:
1. Squeeze 1 (Standard - SC ID 221)
The Classic Squeeze: This creates the histogram based on the Momentum of the price relative to the Moving Average.
Formula: It utilizes a Linear Regression of the difference between Price and the SMA to smooth the momentum histogram.
Visuals: 4-color histogram (Bright/Dark Green for rising/falling positive, Red/Dark Red for negative).
2. Squeeze 2 (Momentum - SC ID 233)
The Raw Momentum: This variation calculates momentum more directly.
Formula: It uses the raw difference (Price - SMA) without the Linear Regression smoothing found in ID 221.
Result: The histogram appears sharper and reacts faster to immediate price changes.
3. Squeeze 3 (Ratio - SC ID 401)
The Ratio View: Instead of price momentum, this mode visualizes the "Squeeze Intensity."
Formula: It calculates the ratio between the Bollinger Band width and the Keltner Channel width (BB Width / KC Width).
Visuals: A solid green histogram representing the ratio. The Squeeze Dots turn red when the ratio drops below the defined threshold (default 1.0), indicating that the Bollinger Bands are completely inside the Keltner Channels.
⚙️ Features & Settings
Mode Selection: Easily toggle between the three study types via a dropdown menu.
Squeeze Dots:
🔴 Red: Squeeze is ON (Low volatility, potential breakout incoming).
🟢 Green: Squeeze is OFF (Volatility expanded).
Full Customization:
Length (Standard: 20)
Bollinger Band Multiplier (Standard: 2.0)
Keltner Channel Multiplier (Standard: 2.0)
True Range Option: Toggle between True Range (ATR) or High-Low for Keltner Channels.
💡 How to use
Add the script to your chart. Open the settings to choose your preferred calculation method. If you want to replicate the "stacked" view often seen in Sierra Chart (showing all three at once), simply add this indicator to your chart three times and set each one to a different mode.
Disclaimer: This script is an independent replication intended for educational and analytical purposes to bridge the gap between Sierra Chart and TradingView.
Sierra Chart, best trading software, EVER!
With the best datafeet. Denali Exchange Data Feed.
Bollinger Bands + B%Overview
This script replicates the robust functionality and visual style of the Bollinger Band studies found in Sierra Chart, adapted for the TradingView environment. It is designed as an "All-in-One" suite that calculates the Bollinger Bands for the main price chart while simultaneously offering advanced oscillator studies (like %B and Bandwidth) in the pane below.
A unique feature of this script is the high degree of customization, particularly the ability to choose different Moving Average types for the Bollinger Band basis, and a dynamic coloration system for the %B indicator.
Key Features
Main Chart Overlay: Draws the Bollinger Bands (Upper, Lower, and Basis) directly on the price chart, even though the script runs in a separate pane.
Advanced %B Indicator: A visually enhanced version of Bollinger Bands %B. It features dynamic coloring based on a midline (default 0.5) and intensifies the colors when the value exceeds the high or low thresholds (simulating a band breakout).
Bollinger Bandwidth: Optional display of the bandwidth to measure volatility (Squeeze detection).
Customizable Calculation: Choose from 6 different Moving Average types to calculate the bands.
Moving Average Types Explained
The standard Bollinger Band uses a Simple Moving Average (SMA). This script allows you to change the mathematical basis of the bands to fit your specific trading strategy:
Simple (SMA): The standard calculation. Every price in the period has equal weight. Best for general use.
Exponential (EMA): Gives more weight to recent prices. Reacts faster to price changes than the SMA.
Weighted (WMA): Assigns a linear weighting factor. Recent data is more important, but the drop-off is smoother than EMA.
Linear Regression (LSMA): Calculates a linear regression line for each point. This is excellent for identifying the prevailing trend direction and "fitting" the price action.
Wilders (RMA): The smoothing method used in the RSI indicator. It reacts very slowly and smooths out significant noise.
Smoothed (SMMA): A blend that takes a broad view of price history. It is very stable and filters out minor market fluctuations effectively.
Settings & Parameters
1. Bollinger Bands (Price-Chart)
Show BB in Main Chart: Toggles the visibility of the bands on the price candles.
Length: The lookback period for the bands (Default: 20).
Standard Deviation: The multiplier for the width of the bands (Default: 2.0).
Moving Average Type: Select the algorithm for the center line (Basis).
2. Study: Bollinger Bands %B
Show %B: Toggles the %B oscillator.
High/Low Threshold: Sets the levels for the "Breakout" warnings (Default: 1.0 and 0.0).
Midline: The center point for the color switch (Default: 0.5).
Green: Value > Midline.
Red: Value < Midline.
Bright Green/Red: Value crosses the High/Low Thresholds.
3. Study: Bollinger Bandwidth
Show Bandwidth: Toggles the volatility measurement line.
Usage Tip:
Since %B (0.0 - 1.0) and Bandwidth (variable scale) use different y-axis scales, it is recommended to only enable one sub-study at a time via the checkboxes to maintain a clean chart view.
Disclaimer : This script is for educational and analytical purposes only. It is a code conversion based on public documentation of Sierra Chart Study ID 14 & 136.
Sierra Chart, best trading software, EVER!
With the best datafeet. Denali Exchange Data Feed.
IFVG Flow (M3/M5) - Reversal Pink / Continuation Blueddddddddddddddddddddddddddddddddddddddddddddddddddd
THAI TRENDINGVolume is the total amount of assets traded in a specific period of time. The 24-hour Volume indicator is used to measure the total volume of a symbol traded in the last 24 hours, expressed as in currency. It can be used to measure the market's interest in a particular symbol.
Sigmoid Risk AllocatorThe Sigmoid Risk Allocator is a dynamic position sizing indicator that tells you how much of your capital to allocate based on current market conditions. Unlike simple "risk-on/risk-off" signals, this indicator gives you smooth, gradual transitions based on a sigmoid function.
Why a Sigmoid Curve?
Most position sizing approaches use fixed thresholds: "If drawdown > 20%, buy. Otherwise, don't." This creates all-or-nothing decisions.
Using the sigmoid (S-curve) makes this decision different. It creates a smooth transition where:
Small drawdowns → Stay near your baseline allocation
Moderate drawdowns → Gradually increase exposure
Large drawdowns → Approach maximum allocation
The sigmoid curve naturally "saturates" at the extremes, preventing you from going all-in too early or panicking out too fast. This is very useful to meek traders psychology and risk management in check.
What's a Sigmoid Function?
The sigmoid function is a mathematical S-curve defined as:
σ(x) = 1 / (1 + e^(-x))
This formula takes any input value and smoothly maps it to a number between 0 and 1. The curve has three key properties that make it ideal for position sizing in investing:
Smooth transitions: No sudden jumps. Allocation changes gradually.
Saturation at extremes: The curve flattens near 0 and 1, preventing overreaction and overexposure.
Sensitive in the middle: Most of the action happens around the midpoint.
To convert this into an allocation percentage, the indicator uses:
Allocation = α_min + (α_max - α_min) × σ(k × (Risk - Midpoint))
Where:
- `α_min` = Your minimum allocation (default 50%)
- `α_max` = Your maximum allocation (default 100%)
- `Risk` = Current risk metric (drawdown %, volatility, or Kelly %)
- `Midpoint` = The risk level where allocation sits halfway between min and max (default 15%)
- `k` = Steepness—how quickly allocation changes around the midpoint
Example : With defaults, if drawdown hits 15% (the midpoint), your allocation will be 75% (halfway between 50% and 100%). As the drawdown increases beyond 15%, the allocation curves toward 100%. As it decreases toward 0%, allocation curves toward 50%.
Cool, isn't it?
Asymmetric Response: Fast In, Slow Out
The indicator uses different steepness values for scaling in vs. scaling out. This is great to increase trend following. This is something I'm proud of too in this indicator.
k_increase = 30 (steep curve): When drawdowns appear, allocation ramps up quickly to catch the opportunity
k_decrease = 5 (slower curve): When conditions normalize, allocation decreases slowly to avoid selling the rebound
This asymmetry reflects how markets behave—drawdowns often overshoot fundamentals (rewarding quick entries), while recoveries tend to be more orderly (rewarding patience on exits).
Three Risk Metrics
You can choose what drives your allocation:
Drawdown (Default)
Volatility - Scales your position inversely to current market volatility.
Kelly Criterion - Automatically calculates optimal position size. The indicator applies a conservative "half Kelly" by default.
Use Cases
Position sizing for swing trading or trend following
Risk management overlay for any existing strategy
Drawdown-based DCA (dollar cost averaging) decisions
Volatility-adjusted exposure management
Feel free to provide feedback and share your thoughts!
- Henrique Centieiro
RSI 1H/4H Multi-Level (REPAINT) - Hourly LimitWhat the script does
1) Indicator setup
Creates an overlay indicator named “RSI 1H/4H Multi-Level (REPAINT) - Hourly Limit” (overlay=true), so markers appear on the main price chart.
2) Inputs (user settings)
1 Hour Settings
len1h: RSI length for 1H (default 12)
lowL1h: lower threshold (default 30)
highL1h: upper threshold (default 70)
color1h: dot color for 1H-only triggers (default blue)
4 Hour Settings
len4h: RSI length for 4H (default 12)
lowL4h: lower threshold (default 30)
highL4h: upper threshold (default 70)
color4h: dot color for 4H-only triggers (default orange)
Visuals
showDots: toggle to show/hide dots on the chart
3) RSI calculation from higher timeframes (repainting)
Function:
rsi_htf(tf, length) uses request.security() to compute RSI from a higher timeframe:
gaps_off merges gaps smoothly
lookahead_on allows future higher-timeframe values to appear on earlier bars → repainting behavior
It calculates:
rsi1h = 1H RSI
rsi4h = 4H RSI
4) Alert frequency control (once per hour)
lastAlertHour stores the timestamp of the last alerted hourly candle start.
currentHourStart = time("60") gets the start time of the current 1-hour candle.
canAlert = currentHourStart > lastAlertHour ensures the script can only trigger once per new hour.
5) Cross conditions
Uses ta.cross() to detect RSI crossing either level (in either direction):
c1L: 1H RSI crosses the 1H lower level
c1H: 1H RSI crosses the 1H upper level
c4L: 4H RSI crosses the 4H lower level
c4H: 4H RSI crosses the 4H upper level
Then:
fire1h is true if either 1H cross happens
fire4h is true if either 4H cross happens
trigger is true if (1H or 4H cross) AND canAlert is true
6) Alert message and timer update
When trigger is true:
Updates lastAlertHour to the current hour start (blocks further alerts that hour)
Builds an English message indicating which timeframe(s) crossed and includes RSI values
Sends an alert with alert.freq_once_per_bar_close (one per bar close)
7) Chart visualization (dots)
Chooses dot color:
white if both 1H and 4H crossed within the allowed hour
color1h if only 1H crossed
color4h if only 4H crossed
Plots a small circle below the bar when showDots and trigger are true.
MTF Trend MAs (H1+H4) MTF Trend MAs (H1+H4) — per-line styles
This indicator plots three trend moving averages (20 / 50 / 200) from two higher timeframes (H1 and H4) directly on your current chart. It is designed to help you monitor multi-timeframe dynamic support/resistance levels and overall trend structure without switching charts.
Features
Multi-timeframe overlay
Plots H1 and H4 moving averages on any chart timeframe.
Three MA sets
Fast: 20
Mid: 50
Slow: 200
Configurable MA types
Choose the calculation type for each MA length: EMA / SMA / WMA / RMA.
Independent visibility toggles
Enable/disable each individual line:
H1 20 / 50 / 200
H4 20 / 50 / 200
Per-line styling
For every MA and timeframe you can set:
Color
Line width
Line style (Solid / Dashed / Dotted)
Notes / Limitations
The script uses request.security(..., lookahead_off) to avoid repainting from future data.
TradingView plot() does not support true dashed/dotted line rendering like line.new().
In this script the style options are approximations:
Solid = normal line
Dashed = linebr (broken/stepped appearance)
Dotted = circles
If you need true dashed/dotted styles, the indicator can be rewritten using line.new() for real line styles.
NY PM Session Highlighter (For Hawaiian Traders)Purpose: This script is designed for traders targeting the New York PM Session (1:30 PM – 4:00 PM ET). Based on 5-year historical data for ES and NQ, this window represents a high-probability period for 2:1 Risk-to-Reward setups as institutional traders rebalance and drive price toward the daily close.
Key Features:
DST-Automated Tracking: Uses the America/New_York timezone to ensure the lines stay accurate during Daylight Saving transitions.
Visual Guidance: Draws a dashed vertical line at the 1:30 PM ET start and the 4:00 PM ET close.
Session Boxing: Highlights the background in a soft blue to define the "trading zone," helping you ignore the low-volume "lunch doldrums" that occur immediately before.
Hawaii-Friendly: Automatically adjusts to your local Hawaii Standard Time (HST) so you don't have to calculate the 5 or 6-hour offset manually.
Trade Logic:
Wait for the 1:30 PM ET (8:30 AM HST) line.
Look for a sweep of the 12:00 PM – 1:00 PM (Lunch) range.
Enter on a Market Structure Shift (MSS) or Fair Value Gap (FVG).
Target a 2:1 Reward-to-Risk ratio, aiming to exit by the 4:00 PM ET line.
RSI 1H/4H Multi-Level (REPAINT) - Hourly LimitRSI 1H/4H Multi-Level (REPAINT) – Hourly Limit is a Pine Script v5 indicator designed to monitor RSI level crossings on two higher timeframes (1H and 4H) while controlling alert frequency to avoid spam. The script can display visual dots on the chart and trigger a single consolidated alert message when either timeframe’s RSI crosses user-defined levels—limited to once per hour.
Key features
1) Dual timeframe RSI monitoring (1H + 4H)
Calculates RSI on 1-hour (60) and 4-hour (240) timeframes independently.
Each timeframe has its own configurable settings:
RSI Length
Lower level (commonly oversold, e.g., 30)
Upper level (commonly overbought, e.g., 70)
Dot color for chart marking
2) Multi-level cross detection
The indicator tracks when RSI crosses either boundary level:
1H RSI crosses its Lower or Upper level
4H RSI crosses its Lower or Upper level
A trigger occurs if any of these crossings happens.
3) Hourly alert limiter (anti-spam)
To prevent repeated alerts, the script includes an hourly cooldown:
It stores the start time of the last hour when an alert was fired.
A new alert can only fire when the current hour start time is greater than the last recorded one.
Result: maximum 1 alert per hour, even if multiple crossings occur within the same hour.
4) Consolidated alert message
When triggered, the script builds a single message that can include:
1H RSI value if the 1H crossing occurred
4H RSI value if the 4H crossing occurred
Example message format:
1H RSI (52.34) crossed level; 4H RSI (48.10) crossed level;
5) On-chart visualization with priority coloring
If enabled, the script plots a dot below the bar on trigger:
White dot if both 1H and 4H signals fired in the same hour
1H color if only 1H fired
4H color if only 4H fired
Important note: REPAINT behavior
This indicator intentionally uses request.security(..., lookahead=barmerge.lookahead_on), meaning it can repaint because it references higher-timeframe data with lookahead enabled. As a result:
Cross signals may appear earlier than they would in a non-repainting implementation.
Signals can change as the higher timeframe candle evolves.
Typical use cases
Monitoring overbought/oversold zone transitions on higher timeframes while trading lower timeframes.
Receiving fewer, cleaner alerts thanks to the hourly limit.
Quickly identifying whether a signal came from 1H, 4H, or both using dot colors.
ADR**Overview**
This indicator displays the **Average Daily Range (ADR)** and **ADR Percentage** in a customizable table on your chart.
While the standard ATR (Average True Range) is a popular metric for volatility, it accounts for price gaps (e.g., overnight moves). **ADR**, on the other hand, strictly measures the average distance between the **High** and **Low** of price bars, completely ignoring gaps.
**Why use ADR instead of ATR?**
* **Day Trading:** For intraday traders (Forex, Crypto, Futures), ADR is often preferred because it calculates the "tradable" range of the day. It answers the question: *"On average, how much does this asset move from High to Low?"*
* **Target Setting:** ADR is excellent for projecting daily highs and lows. If price has already moved 100% of its ADR, the statistical probability of further extension decreases.
* **Pure Volatility:** It filters out the noise of overnight gaps to show pure intraday volatility.
**Calculation Logic**
* **ADR:** Calculated using a Simple Moving Average (SMA) of the `High - Low` range over the specified length.
* Formula: `SMA(High - Low, Length)`
* **ADR%:** Shows the ADR relative to the current price.
* Formula: `(ADR / Current Close) * 100`
**Features**
* **Clean Dashboard:** A minimalist table displays the ADR value and the ADR %.
* **Customizable:** You can change the calculation length (default is 14) and move the table to any corner of the chart (Top/Bottom, Left/Right) to fit your workspace.
**Settings**
* **ADR Length:** The lookback period for the average (Default: 14).
* **Display Position:** Choose where the table appears on your screen.
SAS 4H Positional ScreenerSAS 4H Positional Screener is a structure-based trend filter designed for 4-hour positional trading in Indian large-cap stocks.
It identifies high-probability bullish setups by combining trend alignment, price acceptance, and institutional market structure.
This screener is not a buy/sell strategy.
It is a professional pre-trade filter used to shortlist stocks that are ready or near-ready for LONG trades.
Volume with number spikesThis Volume Indicator shows unusual volume on the candle on any time frame.
[AboBassel] RS + RS.ROC + Inverted ATR (Unified Channel)
This is a multi-indicator channel tool combining Relative Strength (RS), RS Rate of Change (RS.ROC), and Inverted ATR Percentage (ATRP) into a single unified channel for clear visual trend analysis.
Features:
• All three lines are normalized into one visual channel with five distinctive threshold levels (Upper/Lower Curbs, Inner Bands, and Middle).
• RS , ATR , ROC Lines all are invertable for better follow up on trends
• RS.ROC period and timeframe are editable independently from RS.
• ATR time frame and lookback period are fully adjustable.
• Channel thresholds are fully editable. Lines can exceed upper/lower curbs, showing extreme conditions.
• Suitable for trend detection, swing trading, and risk assessment.
Usage Tips:
• Look for lines crossing bands or curbs for potential trade setups.
• Observe background color for overall market sentiment.
• Major blue arrows indicate strong shifts in trend direction.
Ideal For: Swing traders, trend followers, and advanced technical analysts who want combined momentum, volatility, and relative strength insights in a single chart.






















