MA Cross + KillzonesCombines oscarvs' BTC Killzones with four EMAs and the trader's 13/49 golden cross as well as the investor's 50/200 golden cross. Note that the killzones highlight the first two hours of market action in each of the three main crypto markets, so this time period will have to be adjusted for daylight savings time in April and in November.
Search in scripts for "GOLD"
MA Cross 50/200 - Moving Averageindicates short-term 50-day moving average AND long-term 200-day moving average CROSS
@GateTicker
Multi-Timeframe Probability Zones [DW]This is an experimental study based on multi-timeframe price action and a simple average.
Use it to quickly identify MTF support and resistance, and high probability price levels.
NOTE: Because higher timeframe levels are not certain until the interval is closed, refresh your chart as new levels are drawn.
Line Break StrategyLine Break Strategy
Entry rule:
Long on a bullish line and short on a bearish line.
Backtest:
Profit factors are shown below for three-line break.
Daily time frame, FXCM broker.
EURUSD: 1.267, USDJPY: 1.039, GBPUSD: -0.816, AUDUSD: -0.959
S&P500: -0.783, Nikkei225: 1.099
CrudeOil: 1.03, Gold: 1.196
BTCUSD: -0.883
Reference:
Steve Nison, Beyond Candlesticks - New Japanese Charting Techniques Revealed
Note:
This strategy doesn't work properly on the linebreak chart.
A good example is shown below. The entry prices are not always correct.
If you have signal, but the next candle moves in the opposite direction, the entry price is drawn at the Open of the new candle instead of the Close of the previous candle.
The results of backtest are unreliable due to this reason.
Earnings MultiplesMultiplies Quarterly Earnings x 13, x 21, x 34, x 55, x 89, x 144, x 233.
Yes its a fibonacci sequence.
"Goldilocks zone" seems to be in the 55x - 89x area.
Also when companies become profitable, the indicator looks like a "starburst".
EMA & SMA with FRACTAL DEVIATION BANDS by @XeL_ArjonaEMA & SMA with FRACTAL DEVIATION BANDS
Ver. 1.0.25.08.2015
By Ricardo M Arjona @XeL_Arjona
DISCLAIMER:
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets. The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
WHAT IS THIS?
This is the adaptation of the FRACTAL DEVIATION BANDS to be used on Traditional Moving Averages (Simple & Exponential).
ALL NEW IDEAS OR MODIFICATIONS to these indicator(s) are Welcome in favor to deploy a better and more accurate readings. I will be very glad to be notified at Twitter or TradingVew accounts at: @XeL_Arjona
Any important addition to this work MUST REMAIN PUBLIC by means of CreativeCommons CC & TradingView.
2015
Acc/Dist. Cloud with Fractal Deviation Bands by @XeL_ArjonaACCUMULATION / DISTRIBUTION CLOUD with MORPHIC DEVIATION BANDS
Ver. 2.0.beta.23:08:2015
by Ricardo M. Arjona @XeL_Arjona
DISCLAIMER
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
Pine Script code MOD's and adaptations by @XeL_Arjona with special mention in regard of:
Buy (Bull) and Sell (Bear) "Power Balance Algorithm by Vadim Gimelfarb published at Stocks & Commodities V. 21:10 (68-72).
Custom Weighting Coefficient for Exponential Moving Average (nEMA) adaptation work by @XeL_Arjona with contribution help from @RicardoSantos at TradingView @pinescript chat room.
Morphic Numbers (PHI & Plastic) Pine Script adaptation from it's algebraic generation formulas by @XeL_Arjona
Fractal Deviation Bands idea by @XeL_Arjona
CHANGE LOG:
ACCUMULATION / DISTRIBUTION CLOUD: I decided to change it's name from the Buy to Sell Pressure. The code is essentially the same as older versions and they are the center core (VORTEX?) of all derived New stuff which are:
MORPHIC NUMBERS: The "Golden Ratio" expressed by the result of the constant "PHI" and the newer and same in characteristics "Plastic Number" expressed as "PN". For more information about this regard take a look at: HERE!
CUSTOM(K) EXPONENTIAL MOVING AVERAGE: Some code has cleaned from last version to include as custom function the nEMA , which use an additional input (K) to customise the way the "exponentially" is weighted from the custom array. For the purpose of this indicator, I implement a volatility algorithm using the Average True Range of last 9 periods multiplied by the morphic number used in the fractal study. (Golden Ratio as default) The result is very similar in response to classic EMA but tend to accelerate or decelerate much more responsive with wider bars presented in trending average.
FRACTAL DEVIATION BANDS: The main idea is based on the so useful Standard Deviation process to create Bands in favor of a multiplier (As John Bollinger used in it's own bands) from a custom array, in which for this case is the "Volume Pressure Moving Average" as the main Vortex for the "Fractallitly", so then apply as many "Child bands" using the older one as the new calculation array using the same morphic constant as multiplier (Like Fibonacci but with other approach rather than %ratios). Results are AWSOME! Market tend to accelerate or decelerate their Trend in favor of a Fractal approach. This bands try to catch them, so please experiment and feedback me your own observations.
EXTERNAL TICKER FOR VOLUME DATA: I Added a way to input volume data for this kind of study from external tickers. This is just a quicky-hack given that currently TradingView is not adding Volume to their Indexes so; maybe this is temporary by now. It seems that this part of the code is conflicting with intraday timeframes, so You are advised.
This CODE is versioned as BETA FOR TESTING PROPOSES. By now TradingView Admins are changing lot's of things internally, so maybe this could conflict with correct rendering of this study with special tickers or timeframes. I will try to code by itself just the core parts of this study in order to use them at discretion in other areas. ALL NEW IDEAS OR MODIFICATIONS to these indicator(s) are Welcome in favor to deploy a better and more accurate readings. I will be very glad to be notified at Twitter or TradingView accounts at: @XeL_Arjona
Lucas' Money GlitchHere's a description you can use to publish your indicator to TradingView:
Title: Triple SuperTrend + RSI + Fib BB + Volume Oscillator
Short Description:
Advanced multi-indicator system combining three SuperTrends, RSI, Fibonacci Bollinger Bands, DEMA filter, and Volume Oscillator for precise trade entry and exit signals.
Full Description:
Overview
This comprehensive trading indicator combines multiple proven technical analysis tools to identify high-probability trade setups with built-in risk management through automated take profit levels.
Key Features
๐ Triple SuperTrend System
Uses three SuperTrend indicators with different ATR periods (10, 11, 12) and multipliers (1.0, 2.0, 3.0)
Requires all three SuperTrends to align before generating signals
Reduces false signals and confirms trend strength
๐ Volume Oscillator Filter
Calculates volume momentum using short and long-term moving averages
Requires volume oscillator to be above 20% threshold for trade entries
Ensures trades only occur during periods of strong volume activity
Displayed as a clean histogram in separate pane (green = bullish, red = bearish)
๐ฏ RSI Confirmation
7-period RSI must be above 50 for buy signals
RSI must be below 50 for sell signals
Prevents counter-trend entries
๐ 200 DEMA Trend Filter
Double Exponential Moving Average acts as major trend filter
Optional: Only buy above DEMA, only sell below DEMA
Can be toggled on/off based on trading style
๐ Fibonacci Bollinger Bands
Uses 2.618 Fibonacci multiplier (Golden Ratio)
200-period basis
Price touching bands triggers exit signals
Helps identify overextended moves
Entry Signals
BUY Signal (Green Triangle):
All three SuperTrends turn bullish simultaneously
RSI > 50
Price above 200 DEMA (if filter enabled)
Volume Oscillator > 20%
SELL Signal (Red Triangle):
All three SuperTrends turn bearish simultaneously
RSI < 50
Price below 200 DEMA (if filter enabled)
Volume Oscillator > 20%
Exit Signals
Automatic Exits Occur When:
Any of the three SuperTrends changes direction
Price touches Fibonacci Bollinger Band (upper or lower)
Take Profit target is reached (1.5x the distance from entry to ST1)
Exit Labels:
๐ "TP" = Take Profit hit
๐ก "X" = SuperTrend change or BB touch
Visual Elements
Orange Line: Dynamic take profit level based on SuperTrend distance
Green/Red Lines: Three SuperTrend levels (varying opacity)
Purple Bands: Fibonacci Bollinger Bands with shaded area
Blue Line: 200 DEMA
Background Tint: Green when all bullish, red when all bearish
Volume Histogram: Separate pane showing volume oscillator
Dashboard Display
Real-time information table showing:
Current position status (Long/Short/Flat)
RSI value
Volume Oscillator percentage
Overall trend direction
Alert Conditions
Set up custom alerts for:
Buy signals
Sell signals
Take profit hits
Exit signals
Customizable Parameters
SuperTrend Settings:
Individual ATR periods and multipliers for each SuperTrend
Default: ST1(10,1.0), ST2(11,2.0), ST3(12,3.0)
Volume Oscillator:
Short length (default: 5)
Long length (default: 10)
Threshold percentage (default: 20%)
Toggle filter on/off
Other Filters:
RSI length (default: 7)
DEMA length (default: 200)
Fib BB length and multiplier
Take profit multiplier (default: 1.5x)
Best Use Cases
Trend following strategies
Swing trading
Day trading on higher timeframes (15min+)
Works on all markets: Stocks, Forex, Crypto, Futures
Notes
This is an indicator, not an automated strategy
Signals are for informational purposes only
Always practice proper risk management
Test on historical data before live trading
Works best in trending markets
Metals vs DXY CorrelationThere's a growing interest in Gold and Metals in general - due to safe have demand - a lot of traders get blindsided by sudden consolidation and reversals while trading Gold or Silver. The key is to know that GC is closely related to DXY because large institutions and central banks hedge the two instruments. They are inversely correlated for the most part.
This indicator looks at price action applies Pearson correlation to find the strength in their "entanglement" and tells you if its is strongly, weakly or positively correlated.
It has helped me stay away from the markets when there's a strong inverse correlation because the price action can be very unpredictable.
Hopefully you find this useful.
Moon Phases Long/Short StrategyThis is an experiment of Moon Phases, likely buy when full moon and sell when new moon with few changes, like it would buy a day ahead or sometimes sell a day post these events, with Stop loss and take profits, 50% profitable so sounds good to me
Long only good for bitcoin gold, both modes(L+S) better for stocks and alt coins
EMA+MACDๅจๆ0่ฝดไธปๅพๅจๆMACD๏ผEMA55ไฝไธบๅฝๅๅจๆๅจๆ0่ฝดไฝฟ็จใEMA13ไฝไธบๅฐ4ๅๅจๆๅจๆ0่ฝดใๅฝๅๅจๆDIF็บฟ็ฉฟ่ถ0่ฝดๆ ่ฎฐ+MACD้ๆญปๅๆ ่ฎฐใ
The main chart dynamic MACD and EMA55 are used as the dynamic 0-axis for the current cycle. EMA13 is used as the dynamic 0- axis for the smaller 4x cycle. The current cycle's DIF line has crossed the 0-axis, marked with a "+" sign indicating a golden cross on the MACD.
XAU Aurum Precision Scalper Pro v1.0๐ Aurum Precision Scalper Pro v1.0
SMMA 21/50/200 + RSI14 | Multi-Rule Gold Strategy (M3โM15)
๐ก Overview
Aurum Precision Scalper Pro is a professional multi-rule intraday strategy built for scalping and day-trading XAUUSD (Gold) on short timeframes (3m, 5m, 15m).
It combines RSI, SMMA trend filters, volume, and volatility logic with clean breakout and mean-reversion mechanics.
Optimized for the LondonโNew York overlap, this system captures directional moves while filtering out noise and false breakouts โ the most common trap for gold traders.
โ๏ธ Core Components
1๏ธโฃ Multi-Timeframe Guardrail
Works only on 3m / 5m / 15m charts for precision.
Prevents accidental backtests on irrelevant timeframes.
2๏ธโฃ SMMA Trend Framework
Uses SMMA(21) for short-term bias,
SMMA(50) for medium-term direction,
SMMA(200) for higher-order trend control.
RSI(14) confirms momentum and prevents chasing extreme moves.
3๏ธโฃ Global Filters
โ
Trend filter (optional):
โโข Longs only if close > SMMA200
โโข Shorts only if close < SMMA200
โ
SMMA proximity filters:
โโข Blocks trades when SMMA21โSMMA50 or SMMA21โSMMA200 are too close โ reduces chop.
โ
Volume filter:
โโข Requires volume > SMA(volume) ร multiplier.
โ
Impulse filter:
โโข Body size โฅ k ร ATR (volatility confirmation).
โ
Active-session filter:
โโข Default: 07:00โ20:00 CET (Europe/Brussels).
4๏ธโฃ XAUUSD Preset (optional toggle)
When symbol = โXAUโ or โGOLDโ, auto-applies gold-specific tuning:
RSI thresholds tightened (BUY > 55 / SELL < 45)
Stronger volume & volatility filters
Stricter SMMA distance checks
Automatic session activation
โ๏ธ Entry Rules
Rule Setup Type Logic Summary
R1 Full SMMA breakout Price closes above (or below) all SMMAs + RSI confirms direction
R2 SMMA21 touch + alignment Price bounces on 21 while aligned with 50 & 200 + RSI filter
R3 3-bar engulfing reversal After 3 candles in one direction, an engulfing opposite bar + RSI momentum
R4 SMMA21/50 crossover 21 crosses 50 with trend & volume confirmation
All rules respect your global filters (trend, volume, impulse, proximity, sessions).
R2โR4 entries can be individually toggled ON/OFF in inputs.
๐ฐ Exit Logic
Simple % exits (for quick prototyping):
โโข TP = +X% (default 1.0%)
โโข SL = โX% (default 0.5%)
All entries are managed individually (R1โR4 IDs).
More advanced versions include ATR-based partials, breakeven and dynamic trailing logic.
๐จ Visuals
SMMA21 โ teal line
SMMA50 โ orange line
SMMA200 โ magenta line
On-chart labels for each rule (BUY/SELL R1โR4).
Alerts for all entry conditions โ ready for automation or alerting bots.
๐ง Suggested Usage
Best window: 14:00โ17:00 CET (LondonโNew York overlap).
Ideal timeframes: M5 and M15.
Avoid over-trading during low volatility (Asian session).
For XAUUSD, enable all filters for realistic conditions.
Recommended baseline:
TP = 1.0%
SL = 0.5%
UseVolFilter = true
UseImpulse = true
GapFilter = true
TrendFilter = true
๐ Performance Tips
โ
Stronger filter = fewer but higher-quality trades.
โ
When gold volatility spikes (CPI/NFP/FOMC), increase โminGap%โ thresholds slightly.
โ
For smooth trend capture, use R4 (SMMA21/50 cross) with trend filters ON.
โ
For reversals, combine R3 (engulfing) + RSI confirmation.
๐งพ Changelog (v1.0)
โ
Multi-timeframe guard (3/5/15min only)
โ
4 rule logic (R1โR4)
โ
Global filters: trend, volume, impulse, proximity
โ
XAUUSD preset with adaptive parameters
โ
Session/timezone logic
โ
Simple exits for fast backtesting
โ
On-chart labels and alert system
๐งญ Recommended Title / Tagline for TradingView
Aurum Precision Scalper Pro v1.0
โA high-precision RSI-SMMA strategy for Gold scalpers โ designed for the LondonโNY overlap.โ
๐ Tags
#XAUUSDโ#Goldโ#Scalpingโ#SMMAโ#RSIโ#Strategyโ#DayTradingโ#PineScriptV6โ#ATRโ#TrendFollowingโ#Breakout
ALMASTO โ Pro Trend & Momentum (v1.1)ALMASTO โ Pro Trend & Momentum Strategy
Description:
This strategy is designed for precision trading in both Forex (FX) and Crypto markets.
It combines multi-timeframe trend confirmation (EMA200), momentum filters (RSI, MACD, ADX), and ATR-based dynamic risk management.
ALMASTO โ Pro Trend & Momentum Strategy automatically manages take-profit levels, stop-loss, and breakeven adjustments once TP1 is reached โ providing a structured and emotion-free trading approach.
Optimal Use
Works best on lower timeframes (5mโ15m) with strong liquidity sessions.
Optimized for pairs like EURUSD, XAUUSD, and BTCUSDT.
Built for trend-following setups and momentum reversals with high volatility confirmation.
Recommended Settings
๐น Forex โ 5m
EMA Fast = 34, EMA Slow = 200, HTF = 1H
RSI (14): Long โฅ 55 / Short โค 45
MACD (8 / 21 / 5), ADX Len 10 / Min 27
ATR Len 7, Stop Loss = ATR ร 2.1
TP1 = 1.1 RR, TP2 = 2.3 RR
Session = 07:00โ11:00 & 12:30โ16:00 (Exchange Time)
Risk = 0.8% per trade
๐น Forex โ 15m
EMA Fast = 50, EMA Slow = 200, HTF = 4H
RSI (14): Long โฅ 53 / Short โค 47
MACD (12 / 26 / 9), ADX Min 24
ATR Len 10, SL = ATR ร 1.9
TP1 = 1.2 RR, TP2 = 2.6 RR
Risk = 1.0% per trade
๐น Crypto โ 5m (BTC/USDT)
EMA Fast = 34, EMA Slow = 200, HTF = 4H
RSI (14): Long โฅ 56 / Short โค 44
MACD (8 / 21 / 5), ADX Min 30
ATR Len 7, SL = ATR ร 2.2
TP1 = 1.0 RR, TP2 = 2.5 RR
Session = 00:00โ06:00 & 12:00โ22:00 (UTC)
Risk = 0.5% per trade
Core Features
โ
Auto breakeven after TP1
โ
Dual take-profit system (1:1 & 1:2 RR)
โ
ATR-based stop & trailing logic
โ
Filters for session time, volume, and volatility
โ
Candle-body vs ATR size filter to avoid noise
โ
Optional cooldown between trades
Important Notes
Use bar close confirmation only (barstate.isconfirmed) to avoid repainting on lower timeframes.
Adjust commission (0.01โ0.03%) and slippage (1โ2 ticks) in Strategy Tester for realistic results.
Avoid low-liquidity hours (after 21:00 UTC for FX / after midnight for crypto).
Backtest using realistic broker data (e.g., BlackBull Markets / Bybit / Binance Futures).
Best results occur during London & New York sessions with moderate volatility.
โ ๏ธ Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice.
Use proper risk management and test thoroughly before using on live accounts.
Developed by KING FX Labs
Built and optimized by Yousef Almasto โ combining advanced price-action logic, multi-timeframe EMA structure, and volatility-adaptive ATR management.
Tested across Forex, Gold, and Crypto markets to ensure consistent performance and minimal drawdown.
๐ โPrecision Trading. Zero Emotion. Pure Momentum.โ
Daytrade Forex Scalper TwinPulse Auction Timer IndicatorWhat this indicator is
TwinPulse Auction Timer is a multi component execution aid designed for liquid markets. It looks for two families of opportunities
Breakouts that leave a compression area after a fresh sweep
Reversals that trigger after a sweep with strong wick polarity
It does not try to predict future prices. It measures present auction conditions with transparent rules and shows you when those conditions align. You get a simple table that says LONG SHORT or WAIT, optional session shading, clean entry and exit level visuals, and alerts you can wire to your workflow.
Why it is different
Most tools show a single signal. TwinPulse combines several independent signals into an Edge Score that you can tune. The components are
โข Pulse. A signed measure of wick asymmetry with candle body direction
โข Compression. Current true range compared with an average range
โข Sweep timer. Bars elapsed since the most recent sweep of a prior high or low
โข Bias. Direction of a higher timeframe candle
โข Regime. Efficiency ratio and the relation of micro to macro volatility
โข Location. Distance from the daily anchored VWAP
โข Session. London and New York filter by time windows
Each component is visible in the inputs and in the table so you can understand why a suggestion appears. The script uses request.security() with lookahead off in all calls so it does not peek into the future. Shapes may move while a bar is open since price is still forming. They stop moving when the bar closes.
What you will see on the chart
โข L and S shapes on entry bars
โข An Exit shape at the price where a stop or the runner target would have been hit
โข Four horizontal lines while a trade is active
Entry
Stop
TP1 at one R
TP2 at the runner target expressed in R
โข Labels anchored to each line so you can instantly read Entry SL TP1 and TP2 with current values
โข Optional shading during your session windows
โข Optional daily VWAP line
The table in the top right shows
Action LONG SHORT IN LONG IN SHORT or WAIT
Session ON or OFF
Bias UP DOWN or FLAT
Pulse value
Compression value
Edge L percent and Edge S percent
How it works in detail
Pulse
For each bar the script measures up wick minus down wick divided by range and multiplies that by the sign of the candle body. The result is averaged with pulse_len. Positive numbers indicate aggressive buying. Negative numbers indicate aggressive selling. You control the minimum absolute value with pulse_thr.
Compression
Compression is the ratio of current range to an average range. You can choose the range basis. HL SMA uses simple high minus low smoothed by range_len. ATR uses classic True Range smoothed by atr_len. Values below comp_thr indicate a coil.
Sweeps and the timer
A sweep occurs when price trades beyond the highest high or lowest low seen in the previous sweep_len bars. A strict sweep requires a close back inside that prior range. The timer measures how many bars have elapsed since the last sweep. Breakout setups require the timer to exceed timer_thr.
Bias on a confirmation timeframe
A higher timeframe candle is read with confirm_tf. If close is above open bias is UP. If close is below open bias is DOWN. This keeps breakouts aligned with the prevailing drift.
Regime filters
Efficiency ratio measures the straight line change over the sum of absolute bar to bar changes over er_len. It rises in trendy conditions and falls in noise. Minimum efficiency is controlled by er_min.
Micro to macro volatility ratio compares a short lookback average range with a longer lookback average range using your chosen basis. For breakouts you usually want micro volatility to be near or above macro hence mvr_min. For reversals you often want micro volatility that is not overheated relative to macro hence mvr_max_rev.
VWAP distance gate
Daily anchored VWAP is rebuilt from the open of each session. The script computes the absolute distance from VWAP in units of your average range and requires that distance to exceed vwap_dist_thr when use_vwap_gate is true. This keeps entries away from the mean.
Edge Score
Each gate contributes a weight that you control. The script sums weights of the satisfied gates and divides by the sum of all weights to produce an Edge percent for long and an Edge percent for short. You can then require a minimum Edge percent using edge_min_pct. This turns the indicator into a step by step checklist that you can tune to your taste.
Using the indicator step by step
Choose markets and timeframes
The logic is designed for liquid instruments. Major currency pairs, index futures and cash index CFDs, and the most liquid crypto pairs work well. On intraday use one to fifteen minutes for signals and fifteen to sixty minutes for confirmation. On swing use one hour to one day for signals and one day for confirmation.
Decide on entry mode
Breakouts require a compression area and a sweep timer. Reversals require a strict sweep and a strong pulse. If you are unsure leave the default which allows both.
Pick a range basis
For FX and crypto HL SMA is often stable. For indices and single name equities with gaps ATR can adapt better. If results look too reactive increase the window. If results are too slow reduce it.
Tune regime filters
If you trade trend continuation raise er_min and mvr_min. If you trade counter rotation lower them and rely on the reversal path with the strict sweep condition.
Set the VWAP gate
Enabling it helps you avoid entries at the mean. Push the threshold higher on range bound days. Reduce it in strong trend days.
Table driven decision
Watch Action and the Edge percents. If the script says WAIT you can read Pulse and Compression to see what is missing. Often the best trades appear when both Edge percents are well separated and your session switch is ON.
Use the visuals
When a suggestion triggers you will see entry stop and targets. You can mirror the levels in your own workflow or use alerts.
Consider bar close
Signals are computed in real time. For a strict process you can wait until the bar closes to reduce noise.
Inputs explained with quick guidance
Setup
Signal TF chooses where the logic is computed. Leave blank to use the chart.
Confirm TF sets the higher timeframe for bias.
Session filter restricts signals to the London and New York windows you specify.
Invert flips long and short. It is useful on inverse instruments.
Logic options
Entry mode allows Breakouts Reversals or Both.
Average range basis selects HL SMA or ATR.
ATR length is used when ATR is selected.
Pulse source can be Regular OHLC or Heikin Ashi. Heikin Ashi smooths noisy series, but the script still runs on regular bars and you should publish and use it on standard candles to respect the platform guidance.
Core numeric settings
Sweep lookback controls the size of the liquidity pool targeted by the sweep condition.
Pulse window smooths the wick polarity measure.
Average range window controls your base range when you use HL SMA.
Pulse threshold sets the minimum polarity required.
Compression threshold sets the maximum current range relative to average to consider the market coiled.
Expansion timer bars sets how much time has passed since the last sweep before you allow a breakout.
Regime filters
Efficiency ratio length and minimum value keep you out of aimless drift.
Micro and Macro range lengths feed the micro to macro ratio.
Minimum micro to macro for breakouts and maximum micro to macro for reversals steer the two entry families.
VWAP gate and distance threshold keep you away from the mean.
Levels and trade management visuals
Runner target in R sets TP2 as a multiple of initial risk.
Stop distance as average range multiple sets initial risk size for the visuals.
Move stop to entry after one R touch turns on break even logic once price has traveled one risk unit.
Trail buffer as R fraction uses the last sweep as an anchor and keeps a dynamic stop at a chosen fraction of R beyond it.
Cooldown after exit prevents immediate re entries.
Edge Score
Weights for pulse compression timer bias efficiency ratio micro to macro VWAP gate and session let you align the checklist with your style.
Minimum Edge percent to suggest applies a final filter to LONG or SHORT suggestions.
UI
Table and markers switch the compact dashboard and the shapes.
TP and SL lines and labels draw and name each level.
TP1 partial label percent is printed in the TP1 label for clarity.
Session shading helps with focus.
Daily VWAP line is optional.
Alerts
The script provides alerts for Long Short Exit and for Edge percent crossing the threshold on either side. Use them to drive notifications or to sync with webhooks and your broker integration. Alerts trigger in real time and will repaint during a bar. For conservative use trigger on bar close.
Recommended presets
Intraday trend continuation
Confirm TF fifteen minutes
Entry mode Breakouts
Range basis HL SMA
Pulse threshold near 0.10
Compression threshold near 0.60
Timer around 18
Minimum efficiency ratio near 0.20
Minimum micro to macro near 1.00
VWAP gate enabled with distance near 0.35
Edge minimum 50 or higher
Intraday mean reversion at sweeps
Entry mode Reversals
Pulse source Regular OHLC
Compression threshold can be a little higher
Maximum micro to macro near 1.60
Efficiency ratio minimum lower near 0.12
VWAP gate enabled
Edge minimum 40 to 60
Swing trend continuation
Signal TF one hour
Confirm TF one day
Range basis ATR
ATR length around 14
Average range window 20 to 30
Efficiency ratio minimum near 0.18
Micro to macro windows 12 and 60
Edge minimum 50 to 70
These are starting points only. Your instrument and timeframe will require small adjustments.
Limitations and honest warnings
No indicator is perfect. TwinPulse will mark attractive conditions that do not always lead to profitable trades. During economic releases or very thin liquidity the assumptions behind compression and sweeps may fail. In strong gap environments the HL SMA basis may lag while ATR may overreact. Heikin Ashi pulse can help in choppy markets but it will lag during sharp reversals. Session times use the exchange time of your chart. If you switch symbol or exchange verify the windows.
Edge percent is not a probability of profit. It is the fraction of satisfied gates with your chosen weights. Two traders can set different weights and see different Edge readings on the same bar. That is the design. The score is a guide that helps you act with discipline.
This indicator does not place orders or manage real risk. The lines and labels show a model entry a model stop and two model targets built from the average range at entry and from recent swing points. Use them as references and not as hard rules. Always test on historical data and demo first. Past results do not guarantee anything in the future.
Credits and originality
All code in this publication is original and written for this indicator. The concept of the efficiency ratio originates from Perry Kaufman. The use of a daily anchored volume weighted average price is a standard industry tool. The specific combination of pulse from wick polarity strict sweep timing compression and the tunable Edge Score is unique to this script at the time of publication. If you reuse parts of the open source code in your own work remember to credit the author and contribute meaningful improvements.
How to read the table at a glance
Action reflects your current state.
IN LONG or IN SHORT appears while a trade is active.
LONG or SHORT appears when conditions for entry are met and the Edge threshold is satisfied.
WAIT appears when at least one gate is missing.
Session shows ON during your chosen windows.
Bias shows the color of the confirmation candle.
Pulse is the smoothed polarity number.
Comp shows current range divided by the average range. Values below one mean compression.
Edge L percent and Edge S percent show the long and short checklists as percents.
Final thoughts
Markets move because orders accumulate at certain prices and at certain times. The indicator tries to measure two things that often matter at those turning points. One is the existence of a hidden imbalance revealed by wick polarity and by sweeps of prior extremes. The other is the presence of energy stored in a coil that can release in the direction of a drift. Neither force guarantees profit. Together they can improve your selection and your timing.
Use the defaults for a few days so you learn the personality of the signals. After that adjust one group at a time. Start with the session filter and the Edge threshold. Then tune compression and the timer. Finally adjust the regime filters. Keep notes. You will learn which weights matter for your market and timeframe. The result is a process you can apply with consistency.
Disclaimer
This script and description are for education and analysis. They are not investment advice and they do not promise future results. Use at your own risk. Test thoroughly on historical data and in simulation before considering any live use.
Retracement FiboNacci๐ฏ Core Functionality
Automatic Swing Detection: Uses ZigZag algorithm to detect significant price swings
Dual Modes:
Fibonacci Retracements - Traditional price-based levels
Fibonacci Time Zones - Time-based projections
Multi-Timeframe Analysis: Works on any timeframe while detecting swings from higher timeframes
โ๏ธ Customization Options
Fibonacci Levels:
Fully customizable Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%)
Individual color selection for each level
Toggle on/off specific levels as needed
Display Settings:
Line Styling: Choose between Solid, Dashed, or Dotted lines
Line Thickness: Adjustable from 1 to 5 pixels
ZigZag Visibility: Toggle base ZigZag line display
Label Management:
Fibonacci Labels: Show percentage retracement levels
Price Labels: Display actual price values
Flexible Positioning:
Left, Right, Both sides, or Auto-centering
Independent control for Fib and Price labels
Option to hide labels completely
๐ง Technical Specifications
ZigZag Parameters:
Depth: 12 bars
Deviation: 1%
Backstep: 2 bars
Real-time Updates: Automatically redraws when new swings are detected
Clean Interface: Removes old drawings to prevent chart clutter
Usage Scenarios
๐ Trend Analysis
Identify retracement levels during pullbacks
Spot potential reversal zones at key Fibonacci levels
Measure swing magnitudes for position sizing
โฐ Time Projections
Use Time Zone mode for forecasting potential reversal times
Combine price and time analysis for confluence
๐จ Visual Customization
Color-code important levels (e.g., 61.8% as golden ratio)
Adjust label sizes for better readability
Choose line styles that complement your chart setup
Ideal For
Swing traders identifying entry/exit points
Position traders finding optimal accumulation zones
Technical analysts validating support/resistance levels
Multi-timeframe analysts correlating higher timeframe structure
Pro Tips
Combine with Volume: Confirm reactions at Fibonacci levels with volume spikes
Multiple Timeframes: Use higher timeframe Fibonacci levels for major S/R
Confluence Trading: Look for Fibonacci levels aligning with previous support/resistance
Risk Management: Use Fibonacci extensions for profit targets
1m Scalping ATR (with SL & Zones)A universal ATR indicator that anchors volatility to your stop-loss.
Read any market (FX, JPY pairs, Gold/Silver, indices, crypto) consistentlyโregardless of pip/point conventions and timeframe.
Why this indicator?
Classic ATR is absolute (pips/points) and feels different across markets/TFs. ATR Takeoff normalizes ATR to your stop-loss in pips and highlights clear zones for โquiet / ideal / too volatile,โ so you instantly know if a 10-pip SL fits current conditions.
Key features
Auto pip detection (FX, JPY, XAU/XAG, indices, BTC/ETH).
Selectable ATR source: chart timeframe or fixed ATR TF (e.g., โ15โ, โ30โ, โ60โ).
Display modes:
Percent of SL โ ATR relative to SL in %, great for M1 (typical 10โ30%).
Multiple of SL โ ATR as a multiple of SL (e.g., 0.6ร / 1.0ร / 1.2ร).
Panel zones:
Green = โReady for takeoffโ (โค Low), Yellow = reference (Mid), Red = too volatile (โฅ High).
Status badge (top-right): Quiet / ATR ok / Wild, current ATR/SL value, ATR TF used.
Direction-agnostic: Works the same for longs and shorts.
Inputs (at a glance)
Length / Smoothing (RMA/SMA/EMA/WMA): ATR base settings.
Your Stop-Loss (Pips): Reference SL (e.g., 10).
ATR Timeframe (empty = chart): Use chart TF or a fixed TF.
Display Mode: โPercent of SLโ or โMultiple of SL.โ
Low/Mid/High (Percent Mode): Zone thresholds in % of SL.
Low/Mid/High (Multiple Mode): Zone thresholds in รSL.
Recommended defaults
Length 14, Smoothing RMA, SL 10 pips
Display Mode: Percent of SL
Low/Mid/High (%): 15 / 20 / 25
ATR Timeframe: empty (= chart) for reactive, or โ30โ for smoother M30 context with M1 entries.
How to use
Set SL (pips). 2) Choose display mode. 3) Optionally pick ATR TF.
Interpretation:
โค Low (green): setups allowed.
โ Mid (yellow): neutral reference.
โฅ High (red): too volatile โ adjust SL/size or wait.
Note: Auto-pip relies on common ticker naming; verify on exotic symbols.
Disclaimer: For research/education. Not financial advice.
GRG/RGR Signal, MA, Ranges and PivotsThis indicator is a combination of several indicators.
It is a combination of two of my indicators which I solely use for trading
1. EMA 10-20-50-200, Pivots and Previous Day/Week/Month range
2. 3/4-Bar GRG / RGR Pattern (Conditional 4th Candle)
You can use them individually if you already have some of them or just use this one. Belive me when I say, this is all you need, along with market structure knowlege and even if you donโt have that, this indicator has been doing wonders for me. This is all I use. I do not use anything else.
**Note - Do checkout the indicators individually as I have added valuable information in the comment section.
It contains the following,
1. 10 EMA/SMA - configurable
2. 20 EMA/SMA - configurable
3. 50 EMA/SMA - configurable
4. 200 EMA/SMA - configurable
5. Previous Day's Range - configurable
6. Previous Week's Range - configurable
7. Previous Month's Range - configurable
8. Pivots - configurable
9. Buy Sell Signal - configurable
The Moving Averages
It is a very important combination and using it correctly with price action will strengthen your entries and exits.
The ema's or sma's added are the most powerful ones and they do definitely act as support and resistance.
The Daily/Weekly/Monthly Ranges
The Daily/Weekly/Monthly ranges are extremely important for any trader and should be used for targets and reversals.
Pivots
Pivots can provide support and resistance level. R5 and S5 can be used to check for over stretched conditions. You can customise them however you like. It is a full pivot indicator.
It is defaulted to show R5 and S5 only to reduce noise in the chart but it can be customised.
The 3/4 RGR or GRG Signal Generator
Combined with a 3/4 RGR or GRG setup can be all a trader needs.
You don't need complex strategies and SMC concepts to trade. Simple EMAs, ranges and RGR/GRG setup is the most winning combination.
This indicator can be used to identify the Green-Red-Green or Red-Green-Red pattern.
It is a price action indicator where a price action which identifies the defeat of buyers and sellers.
If the buyers comprehensively defeat the sellers then the price moves up and if the sellers defeat the buyers then the price moves down.
In my trading experience this is what defines the price movement.
It is a 3 or 4 candle pattern, beyond that i.e, 5 or more candles could mean a very sideways market and unnecessary signal generation.
How does it work?
Upside/Green signal
1. Say candle 1 is Green, which means buyers stepped in, then candle 2 is Red or a Doji, that means sellers brought the price down. Then if candle 3 is forming to be Green and breaks the closing of the 1st candle and opening of the 2nd candle, then a green arrow will appear and that is the place where you want to take your trade.
2. Here the buyers defeated the sellers.
3. Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
4. Important - We need to enter the trade as soon as the price moves above the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close. Ignore wicks.
5. But for a more optimised entry I have added an option to use candleโs highs and lows instead of open and close. This reduces lot of noise and provides us with more precise entry. This setting is turned on by default.
6. I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
7. I call it the +-+ or GRG pattern or Green-Red-Green or Buyer-Seller-Buyer or Seller defeated or just Buyer pattern.
8. Stop loss can be candle 2's mid for safe traders (that includes me) or candle 2's body low for risky traders.
9. Back testing suggests that body low will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Downside/Red signal
1. Say candle 1 is Red, which means sellers stepped in, then candle 2 is Green or a Doji, that means buyers took the price up. Then if candle 3 is forming to be Red and breaks the closing of the 1st candle and opening of the 2nd candle then a Red arrow will appear and that is the place where you want to take your trade.
2. Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
3. We need to enter the trade as soon as the price moves below the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close.
4. But for a more optimised entry I have added an option to use candleโs highs and lows instead of open and close. This reduces lot of noise and provides us with more precise entry. This setting is turned on by default.
5. I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
6. I call it the -+- or RGR pattern or Red-Green-Red or Seller-Buyer-Seller or Buyer defeated or just Seller pattern.
7. Stop loss can be candle 2's mid for safe traders ( that includes me) or candle 2's body high for risky traders.
8. Back testing suggests that body high will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Combining Indicators and Signal
Combining these indicators with GRG/RGR signal can be very powerful and can provide big moves.
1. MA crossover and Signal - This is very powerful and provides a very big move. Trades can be held for longer. If after taking the trade we notice that the MA crossover has happened then trades can be held for higher targets.
2. Pivots and Signal - Pivots and add a support or resistance point. Take profits on these points. R5/S5 are over streched conditions so we can start looking for reversal signals and ignore other signals
3. Intraday Range - first 1, 5, 15 min of the day - Sideways days is when price will stay in these ranges. You can take profits at these ranges or if the range is broken and we get a signal, then it can mean that the direction will be sustained.
4. Previous Day/Week/Month Ranges - These can be used as Take Profit points if the price is moving towards them after getting the signal. If the range is broken and we get a signal then it can be a strong signal. They can also be used as reversal points if a strong signal is generated.
Important Settings
1. Include 4th Candle Confirmation - You can enable or disable the 4th candle signal to avoid the noise, but at times I have noticed that the 4th candle gives a very strong signal or I can say that the strong signal falls on the 4th candle. This is mostly a coincidence.
2. Bars to check (default 10) - You can also configure how many previous bars should the signal be generated for. 10 to 30 is good enough. To backtest increase it to 2000 or 5000 for example.
3. Use Candle High/Low for confirmation instead of Candle Open/Close - More optimized entry and noise reduction. This option is now defaulted to false.
4. Show Green-Red-Green (bull) signals - Show only bull entries. Useful when I have a predefined view i.e, I know market is going to go up today.
5. Show Red-Green-Red (bear) signals - Show only bear entries. Useful when I have a predefined view i.e, I know market is going to go down today.
6. 3rd candle should be a Strong candle before considering 4th candle - This will enforce additional logic in 4 candle setup that the 3rd candle is the candle in our direction of breakout. This means something like GRGG is mandatory, which is still the default behaviour. If disabled, the 3rd candle can be any candle and 4th candle will act as our breakout candle. This behaviour has led to breakouts and breakdowns as times, hence I added this as a separate feature. Vice-versa for a RGGR.
For a 4 candle setup till now we were expecting GRGG or RGRR but we can let the system ignore the 3rd candle completely if needed.
This will result in additional signals.
7. Three intraday ranges added for index and stock traders - 1 min, 5 min and 15 min ranges will be displayed. These are disabled by default except 15 min. These are very important ranges and in sideways days the price will usually move within the 15 min. A breakout of this range and a positive signal can be a very powerful setup.
Safe traders can avoid taking a trade in this range as it can lead to fakeouts.
The line style, width, color and opacity are configurable.
Pointers/Golden Rules
1. If after taking the trade, the next candle moves in your direction and closes strong bullish or bearish, then move SL to break even and after that you can trail it.
2. If a upside trade hits SL and immediately a down side trade signal is generated on the next candle then take it. Vice versa is true.
3. Trades need to be taken on previous 2 candle's body high or low combined and not the wicks.
4. The most losses a trader takes is on a sideways day and because in our strategy the stop loss is so small that even on a sideways day we'll get out with a little profit or worst break even.
5. Hold trades for longer targets and don't panic.
6. If last 3-4 days have been sideways then there is a good probability that today will be trending so we can hold our trade for longer targets. Inverse is true when the market has been trending for 2-3 days then volatility followed by sideways is coming (DOW theory). Target to hold the trade for whole day and not exit till the day closes.
7. In general avoid trading in the middle of the day for index and stocks. Divide the day into 3 parts and avoid the middle.
8. Use Support/Resistance, 10, 20, 50, 200 EMA/SMA, Gaps, Whole/Round numbers(very imp) for identifying targets.
9. Trail your SL.
10. For indexes I would use 5 min and 15 min timeframe and at times 10 mins.
11. For commodities and crypto we can use higher timeframe as well. Look for signals during volatile time durations and avoid trading the whole day. Signal usually gives good targets on those times.
12. If a GRG or RGR pattern appears on a daily timeframe then this is our time to go big.
13. Minimum Risk to Reward should be 1:2 and for longer targets can be 1:4 to 1:10.
14. Trade with small lot size. Money management will happen automatically.
15. With small lot size and correct Risk-Reward we can be very profitable. Don't trade with big lot size.
16. Stay in the market for longer and collect points not money.
17. Very imp - Watch market and learn to generate a market view.
18. Very imp - Only 3 type of candles are needed in trading -
Strong Bullish (Big Green candle), Strong Bearish (Big Red candle),
Hammer (it is Strong Bullish), Inverse Hammer (it is Strong Bearish)
and Doji (indecision or confusion).
If on daily timeframe I see Strong Bullish candle previous day then I am biased to the upside the next day, if I see Strong Bearish candle the previous day then I am biased to the downside the next day, if I see Doji on the previous day then I am cautious the next day, if there are back to back Dojis forming in daily or weekly then I am preparing for big move so time to go big once I get the signal.
19. Most Important Candlestick pattern - Bullish and Bearish Engulfing
20. The only Chart patterns I need - โจ
a) Falling Wedge/Channel Bullish Pattern Uptrend or Bull Flag - Buying - Forming over a couple days for intraday and forming over a couple of weeks for swing โจ
b) Falling Wedge/Channel Bullish Pattern Downtrend or Falling Channel - Buyingโจ
c) Rising Wedge Bearish Pattern Uptrend or Rising Channel - Sellingโจ
d) Rising Wedge Bearish Pattern Downtrend or Bear flag - Selling
e) Head and Shoulder - Over a longer period not for intraday. In 15 min takes few days and for swing 1hr or 4h or daily can take few days
โจf) M and W pattern - Reversal Patterns - They form within the above 4 patterns, usually resulting in the break of trend line
21. How Gaps work - โจ
a) Small Gap up in Uptrend - Market can fill the gap and reverse. The perception is that people are buying. If previous day candle was Strong Bullish then market view is up.โจ
b) Big Gap up in Uptrend - Not news driven - Profit booking will come but may not fill the entire gapโจ
c) Big Gap up in Uptrend - News driven, war related, tax, interest rate - Market can keep going up without stopping.โจ
c) Flat opening in Uptrend - Big chance of market going up. If previous day candle was Strong Bullish then view is upwards, if it was Doji then still upwards.โจ
d) Gap down in Uptrend - Market is surprised. After going down initially it can go upโจ
e) Small Gap down in Downtrend - Market can fill the gap and keep moving down. If previous day candle was Strong Bearish then view is still down.โจ
f) Flat opening in Downtrend - View is down, short today.โจ
g) Big Gap down in Downtrend - Profit booking and foolish buying will come but market view is still down.โจ
h) Gap down with News - Volatility, sideways then down. โจ
i) Gap Up in Downtrend - Can move up - Price can move up during 2/3rd of the day and End of the day revert and close in red.
22. Go big on bearish days for option traders. Puts are better bought and Calls are better sold.
23. Cluster of green signals can lead to bigger move on the upside and vice versa for red signals.
24. Most of this is what I learned from successful traders (from the top 2%) only the indicator is mine.
RSI Scalping Gold (XAUUSD) - v5Displays the EMA9 and SMA20 to identify the trend.
Colors the area between the two averages to better visualize the equilibrium zone.
Displays green (buy) and red (sell) arrows aligned with the candles.
The RSI is calculated but hidden from the main chart (you can activate it by checking โDisplay on chartโ in the settings).
MTF Market Bias+ (Smart Multi-Timeframe Trend Dashboard)The MTF Market Bias+ indicator provides a clear, data-driven view of market direction across multiple timeframes โ from scalper to swing trader level.
It automatically calculates the bullish / bearish / neutral bias for each selected timeframe using various configurable methods such as EMA slope, price vs EMA, or EMA50 vs EMA200.
This tool gives you an instant overview of market alignment and helps you identify when lower and higher timeframes are in sync โ the most powerful condition for high-probability trades.
๐ Core Features
โ
Multi-Timeframe Bias Dashboard: Visual table showing bullish/bearish sentiment across your chosen timeframes (from 3m to 1W).
โ๏ธ Customizable Methods: Choose between
EMA Slope (default) โ detects trend direction by EMA momentum
Price vs EMA โ shows short-term strength or weakness
EMA50 vs EMA200 โ classic golden cross vs death cross structure
๐จ Configurable Colors, Size & Layout: Adjust background, text, and label sizes for any chart style.
๐ Summary Row: Displays the majority trend (bullish, bearish, or neutral) with real-time score.
๐งฉ Adaptive Background Mode (optional): Automatically colors your chart background according to overall bias.
๐ก Method Info Panel: Clearly shows which method and parameters are active (e.g. โEMA Slope | EMA=50โ).
๐ How to Use
Add the indicator to your chart.
Select the timeframes you want to monitor (e.g. 3m, 5m, 15m, 1h, 4h, D, W).
Watch for alignment between lower and higher timeframes:
When all turn green โ strong bullish alignment โ consider longs.
When all turn red โ strong bearish alignment โ consider shorts.
Mixed colors indicate consolidation or correction phases.
Combine it with your favorite Fair Value Gap, CHOCH/BOS, or Liquidity Sweep strategy to significantly improve trade timing and confidence.
๐งฉ Authorโs Note
This indicator is designed for traders who want fast, visual confirmation of multi-timeframe structure without cluttering their charts.
Itโs simple, lightweight, and highly adaptable โ whether youโre scalping on 3-minute charts or swing trading daily candles.
Kalman Filter [DCAUT]โ Kalman Filter
๐ ORIGINALITY & INNOVATION
The Kalman Filter represents an important adaptation of aerospace signal processing technology to financial market analysis. Originally developed by Rudolf E. Kalman in 1960 for navigation and guidance systems, this implementation brings the algorithm's noise reduction capabilities to price trend analysis.
This implementation addresses a common challenge in technical analysis: the trade-off between smoothness and responsiveness. Traditional moving averages must choose between being smooth (with increased lag) or responsive (with increased noise). The Kalman Filter improves upon this limitation through its recursive estimation approach, which continuously balances historical trend information with current price data based on configurable noise parameters.
The key advancement lies in the algorithm's adaptive weighting mechanism. Rather than applying fixed weights to historical data like conventional moving averages, the Kalman Filter dynamically adjusts its trust between the predicted trend and observed prices. This allows it to provide smoother signals during stable periods while maintaining responsiveness during genuine trend changes, helping to reduce whipsaws in ranging markets while not missing significant price movements.
๐ MATHEMATICAL FOUNDATION
The Kalman Filter operates through a two-phase recursive process:
Prediction Phase:
The algorithm first predicts the next state based on the previous estimate:
State Prediction: Estimates the next value based on current trend
Error Covariance Prediction: Calculates uncertainty in the prediction
Update Phase:
Then updates the prediction based on new price observations:
Kalman Gain Calculation: Determines the weight given to new measurements
State Update: Combines prediction with observation based on calculated gain
Error Covariance Update: Adjusts uncertainty estimate for next iteration
Core Parameters:
Process Noise (Q): Represents uncertainty in the trend model itself. Higher values indicate the trend can change more rapidly, making the filter more responsive to price changes.
Measurement Noise (R): Represents uncertainty in price observations. Higher values indicate less trust in individual price points, resulting in smoother output.
Kalman Gain Formula:
The Kalman Gain determines how much weight to give new observations versus predictions:
K = P(k|k-1) / (P(k|k-1) + R)
Where:
K is the Kalman Gain (0 to 1)
P(k|k-1) is the predicted error covariance
R is the measurement noise parameter
When K approaches 1, the filter trusts new measurements more (responsive).
When K approaches 0, the filter trusts its prediction more (smooth).
This dynamic adjustment mechanism allows the filter to adapt to changing market conditions automatically, providing an advantage over fixed-weight moving averages.
๐ COMPREHENSIVE SIGNAL ANALYSIS
Visual Trend Indication:
The Kalman Filter line provides color-coded trend information:
Green Line: Indicates the filter value is rising, suggesting upward price momentum
Red Line: Indicates the filter value is falling, suggesting downward price momentum
Gray Line: Indicates sideways movement with no clear directional bias
Crossover Signals:
Price-filter crossovers generate trading signals:
Golden Cross: Price crosses above the Kalman Filter line, suggests potential bullish momentum development, may indicate a favorable environment for long positions, filter will naturally turn green as it adapts to price moving higher
Death Cross: Price crosses below the Kalman Filter line, suggests potential bearish momentum development, may indicate consideration for position reduction or shorts, filter will naturally turn red as it adapts to price moving lower
Trend Confirmation:
The filter serves as a dynamic trend baseline:
Price Consistently Above Filter: Confirms established uptrend
Price Consistently Below Filter: Confirms established downtrend
Frequent Crossovers: Suggests ranging or choppy market conditions
Signal Reliability Factors:
Signal quality varies based on market conditions:
Higher reliability in trending markets with sustained directional moves
Lower reliability in choppy, range-bound conditions with frequent reversals
Parameter adjustment can help adapt to different market volatility levels
๐ฏ STRATEGIC APPLICATIONS
Trend Following Strategy:
Use the Kalman Filter as a dynamic trend baseline:
Enter long positions when price crosses above the filter
Enter short positions when price crosses below the filter
Exit when price crosses back through the filter in the opposite direction
Monitor filter slope (color) for trend strength confirmation
Dynamic Support/Resistance:
The filter can act as a moving support or resistance level:
In uptrends: Filter often provides dynamic support for pullbacks
In downtrends: Filter often provides dynamic resistance for bounces
Price rejections from the filter can offer entry opportunities in trend direction
Filter breaches may signal potential trend reversals
Multi-Timeframe Analysis:
Combine Kalman Filters across different timeframes:
Higher timeframe filter identifies primary trend direction
Lower timeframe filter provides precise entry and exit timing
Trade only in direction of higher timeframe trend for better probability
Use lower timeframe crossovers for position entry/exit within major trend
Volatility-Adjusted Configuration:
Adapt parameters to match market conditions:
Low Volatility Markets (Forex majors, stable stocks): Use lower process noise for stability, use lower measurement noise for sensitivity
Medium Volatility Markets (Most equities): Process noise default (0.05) provides balanced performance, measurement noise default (1.0) for general-purpose filtering
High Volatility Markets (Cryptocurrencies, volatile stocks): Use higher process noise for responsiveness, use higher measurement noise for noise reduction
Risk Management Integration:
Use filter as a trailing stop-loss level in trending markets
Tighten stops when price moves significantly away from filter (overextension)
Wider stops in early trend formation when filter is just establishing direction
Consider position sizing based on distance between price and filter
๐ DETAILED PARAMETER CONFIGURATION
Source Selection:
Determines which price data feeds the algorithm:
OHLC4 (default): Uses average of open, high, low, close for balanced representation
Close: Focuses purely on closing prices for end-of-period analysis
HL2: Uses midpoint of high and low for range-based analysis
HLC3: Typical price, gives more weight to closing price
HLCC4: Weighted close price, emphasizes closing values
Process Noise (Q) - Adaptation Speed Control:
This parameter controls how quickly the filter adapts to changes:
Technical Meaning:
Represents uncertainty in the underlying trend model
Higher values allow the estimated trend to change more rapidly
Lower values assume the trend is more stable and slow-changing
Practical Impact:
Lower Values: Produces very smooth output with minimal noise, slower to respond to genuine trend changes, best for long-term trend identification, reduces false signals in choppy markets
Medium Values: Balanced responsiveness and smoothness, suitable for swing trading applications, default (0.05) works well for most markets
Higher Values: More responsive to price changes, may produce more false signals in ranging markets, better for short-term trading and day trading, captures trend changes earlier, adjust freely based on market characteristics
Measurement Noise (R) - Smoothing Control:
This parameter controls how much the filter trusts individual price observations:
Technical Meaning:
Represents uncertainty in price measurements
Higher values indicate less trust in individual price points
Lower values make each price observation more influential
Practical Impact:
Lower Values: More reactive to each price change, less smoothing with more noise in output, may produce choppy signals
Medium Values: Balanced smoothing and responsiveness, default (1.0) provides general-purpose filtering
Higher Values: Heavy smoothing for very noisy markets, reduces whipsaws significantly but increases lag in trend change detection, best for cryptocurrency and highly volatile assets, can use larger values for extreme smoothing
Parameter Interaction:
The ratio between Process Noise and Measurement Noise determines overall behavior:
High Q / Low R: Very responsive, minimal smoothing
Low Q / High R: Very smooth, maximum lag reduction
Balanced Q and R: Middle ground for most applications
Optimization Guidelines:
Start with default values (Q=0.05, R=1.0)
If too many false signals: Increase R or decrease Q
If missing trend changes: Decrease R or increase Q
Test across different market conditions before live use
Consider different settings for different timeframes
๐ PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES
Comparison with Traditional Moving Averages:
Versus Simple Moving Average (SMA):
The Kalman Filter typically responds faster to genuine trend changes
Produces smoother output than SMA of comparable length
Better noise reduction in ranging markets
More configurable for different market conditions
Versus Exponential Moving Average (EMA):
Similar responsiveness but with better noise filtering
Less prone to whipsaws in choppy conditions
More adaptable through dual parameter control (Q and R)
Can be tuned to match or exceed EMA responsiveness while maintaining smoothness
Versus Hull Moving Average (HMA):
Different noise reduction approach (recursive estimation vs. weighted calculation)
Kalman Filter offers more intuitive parameter adjustment
Both reduce lag effectively, but through different mechanisms
Kalman Filter may handle sudden volatility changes more gracefully
Response Characteristics:
Lag Time: Moderate and configurable through parameter adjustment
Noise Reduction: Good to excellent, particularly in volatile conditions
Trend Detection: Effective across multiple timeframes
False Signal Rate: Typically lower than simple moving averages in ranging markets
Computational Efficiency: Efficient recursive calculation suitable for real-time use
Optimal Use Cases:
Markets with mixed trending and ranging periods
Assets with moderate to high volatility requiring noise filtering
Multi-timeframe analysis requiring consistent methodology
Systematic trading strategies needing reliable trend identification
Situations requiring balance between responsiveness and smoothness
Known Limitations:
Parameters require adjustment for different market volatility levels
May still produce false signals during extreme choppy conditions
No single parameter set works optimally for all market conditions
Requires complementary indicators for comprehensive analysis
Historical performance characteristics may not persist in changing market conditions
USAGE NOTES
This indicator is designed for technical analysis and educational purposes. The Kalman Filter's effectiveness varies with market conditions, tending to perform better in markets with clear trending phases interrupted by consolidation. Like all technical indicators, it has limitations and should not be used as the sole basis for trading decisions, but rather as part of a comprehensive trading approach.
Algorithm performance varies with market conditions, and past characteristics do not guarantee future results. Always test thoroughly with different parameter settings across various market conditions before using in live trading. No technical indicator can predict future price movements with certainty, and all trading involves risk of loss.
Global Risk Terminal โ Multi-Asset Macro Sentiment IndicatorDescription:
The Global Risk Terminal is a sophisticated macro sentiment indicator that synthesizes signals from three key cross-asset relationships to produce a single, actionable risk appetite score. It is designed to help traders and investors identify whether global markets are in a risk-on (growth-seeking) or risk-off (defensive) regime. The indicator analyzes the behavior of commodities, equities, bonds, and currencies to generate a comprehensive view of market conditions.
Indicator Output:
The Global Risk Terminal produces a normalized risk score ranging from -1 to +1:
Positive values indicate risk-on conditions (growth assets favored)
Negative values indicate risk-off conditions (safe-haven assets favored)
Core Components:
Growth Pulse (Copper to Gold Ratio, HG/GC)
Purpose: Measures investor preference for industrial growth versus safe-haven assets.
Interpretation:
Rising ratio โ Copper outperforming gold โ Risk-on environment
Falling ratio โ Gold outperforming copper โ Risk-off environment
Flat ratio โ Transitional market phase
Technical Implementation: Dual moving average slope method (fast MA default 20, slow MA default 40). Positive slope = +1, negative slope = -1, flat slope = 0
Equity Rotation (Russell 2000 to S&P 500 Ratio, RTY/ES)
Purpose: Tracks rotation between small-cap and large-cap equities, revealing market risk appetite.
Interpretation:
Rising ratio โ Small-caps outperforming โ Strong risk-on
Falling ratio โ Large-caps outperforming โ Defensive positioning
Technical Implementation: Dual moving average slope method (same as Growth Pulse)
Flow Gauge (10-Year Treasury to US Dollar Index, ZN/DXY)
Purpose: Captures liquidity conditions and cross-asset capital flows.
Interpretation:
Rising ratio โ Treasury prices rising or USD weakening โ Liquidity expansion, risk-on environment
Falling ratio โ Treasury prices falling or USD strengthening โ Liquidity contraction, risk-off environment
Technical Implementation: Dual moving average slope method
Composite Risk Score Calculation:
Analyze each component for trend using dual moving averages
Assign signal values: +1 (risk-on), -1 (risk-off), 0 (neutral)
Average the three signals:
Risk Score = (Growth Pulse + Equity Rotation + Flow Gauge) / 3
Optional smoothing with exponential moving average (default 3 periods) to reduce noise
Interpreting the Risk Score:
+0.66 to +1.0: Full risk-on โ favor cyclical sectors, small-caps, growth strategies
+0.33 to +0.66: Moderate risk-on โ mostly bullish environment, watch for fading momentum
-0.33 to +0.33: Neutral/transition โ markets in flux, signals mixed, exercise caution
-0.66 to -0.33: Cautious risk-off โ favor defensive sectors, reduce high-beta exposure
-1.0 to -0.66: Full risk-off โ strong defensive positioning, prioritize safe-haven assets
How to Use the Global Risk Terminal to Frame Trades:
Aligning Trades with Market Regime
Risk-On (+0.33 and above): Look for buying opportunities in cyclical stocks, high-beta equities, commodities, and emerging markets. Use long entries for swing trades or intraday positions, following confirmed price action.
Risk-Off (-0.33 and below): Shift focus to defensive sectors, large-cap quality stocks, U.S. Treasuries, and safe-haven currencies. Prefer short entries or reduced exposure in risky assets.
Entry and Exit Framing
Use the risk score as a macro filter before executing trades:
Example: The risk score is +0.7 (strong risk-on). Prefer long positions in equities or commodities that are showing bullish confirmation on your regular chart.
Conversely, if the risk score is -0.7 (strong risk-off), avoid aggressive longs and consider short or defensive trades.
Watch for threshold crossings (+/-0.33, +/-0.66) as potential inflection points for adjusting position size, stop-loss levels, or sector rotation.
Confirming Trade Decisions
Combine the Global Risk Terminal with price action, volume, and trend indicators:
If equities rally but the risk score is declining, this may indicate a fragile rally driven by few leadersโtrade cautiously.
If equities fall but the risk score is rising, consider counter-trend entries or buying dips.
Risk Management and Position Sizing
Strong alignment across components โ increase position size and hold with wider stops
Mixed or neutral signals โ reduce exposure, tighten stops, or avoid new trades
Defensive regimes โ rotate into stable, low-volatility assets and increase cash buffer
Framing Trades Across Timeframes
Use the indicator as a strategic guide rather than a precise timing tool. Even without the MTF table:
Daily trend alignment โ Guide swing trade bias
Shorter timeframe price action โ Refine entry points and stop placement
Example: Daily chart shows +0.6 risk score โ identify high-probability long setups using intraday technical patterns (breakouts, trend continuation).
Sector and Asset Rotation
Risk-On: Focus on cyclical sectors (financials, industrials, materials, energy), small-caps, high-beta instruments
Risk-Off: Focus on defensive sectors (utilities, consumer staples, healthcare), large-caps, safe-haven instruments
Alert Integration
Set alerts on the risk score to notify you when markets move from neutral to risk-on or risk-off regimes. Use these alerts to plan entries, exits, or portfolio adjustments in advance.
Customization Options:
Moving Average Length (5โ100): Adjust sensitivity of trend detection
Score Smoothing (1โ10): Reduce noise or see raw risk score
Visual Themes: Six preset themes (Cyber, Ocean, Sunset, Monochrome, Matrix, Custom)
Display Options: Show or hide component dashboards, main header, risk level lines, gradient fill, and component signals
Label Size: Tiny, Small, Normal, Large
Alert Conditions:
Risk score crosses above +0.66 โ Strong risk-on
Risk score crosses below -0.66 โ Strong risk-off
Risk score crosses zero โ Neutral line
Risk score crosses above +0.33 โ Moderate risk-on
Risk score crosses below -0.33 โ Moderate risk-off
Data Sources:
HG1! โ Copper Futures (COMEX)
GC1! โ Gold Futures (COMEX)
RTY1! โ Russell 2000 E-mini Futures (CME)
ES1! โ S&P 500 E-mini Futures (CME)
ZN1! โ 10-Year U.S. Treasury Note Futures (CBOT)
DXY โ U.S. Dollar Index (ICE)
Notes and Limitations:
Works best during clear macro regimes and aligned trends
Use with price action, volume, and other technical tools
Not a standalone trading system; serves as a macro context filter
Equal weighting assumes all three components are equally important, but market conditions may vary
Past performance does not guarantee future results
Conclusion:
The Global Risk Terminal consolidates complex cross-asset signals into a simple, actionable score that informs market regime, portfolio positioning, sector rotation, and trading decisions. Its user-friendly layout and extensive customization options make it suitable for traders of all experience levels seeking macro-driven insights. By framing trades around risk score thresholds and combining macro context with tactical execution, traders can identify higher-probability opportunities and optimize position sizing, entries, and exits across a wide range of market conditions.
FVG Scanner ProFVG Scanner Pro โ Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. Itโs designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high (the current candleโs low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low (the current candleโs high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1โ5m โ 15m, 15m โ 1H, 1H โ 4H, 4H โ 1D, 1D โ 1W, 1W โ 1M, small 1M โ 3M, big โฅ3M โ 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR ร Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow โฒ/โผ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) ร multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow โฒ (bullish), Yellow โผ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (โ ๏ธ โOnce per barโ or โOnce per bar closeโ, your choice) and select from:
๐ข Bullish FVG Proximity โ price approaching a bullish gap bottom
๐ด Bearish FVG Proximity โ price approaching a bearish gap top
โ
New Bullish FVG Formed
โ ๏ธ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
Ajay R5.41๐ป Ajay Gold 3H Power Indicator ๐ป
Precision-Based Smart Sell System for Gold (XAU/USD)
๐ก Overview
This indicator is specifically designed for Gold (XAU/USD) and delivers best results on the 3-Hour Timeframe (3H TF).
It is a Smart Money Logic-based Sell Confirmation System, combining institutional structure and candle behavior to generate highly accurate bearish signals.
โ๏ธ Technical Foundation
The indicator uses multiple advanced confirmations:
๐ EMA Trend Filter โ Confirms downtrend
๐ช RSI Overbought Rejection โ Momentum reversal signal
๐ MACD Bearish Cross โ Confirms trend strength
๐ฏ๏ธ Bearish Candle Structure โ Price action validation
When all conditions align, a clear ๐ป Sell Signal is plotted on the chart.
๐ Hidden Feature
This indicator includes a hidden feature that activates only when the correct market structure forms.
It helps reduce false signals and increases accuracy without being visible on the chart โ fully automated internal logic.
๐ Recommended Settings
Symbol: XAU/USD (Gold)
Timeframe: 3-Hour (3H)
Market: Forex / Commodity
Mode: Sell-Only Confirmation Indicator
Performance: Best precision and consistency on 3H TF
๐ How to Use
Select XAU/USD on chart and set 3H timeframe.
Add the indicator to the chart.
Wait for the ๐ป Sell Signal and confirm the market structure after candle close.
Take entry according to your risk management.
โ ๏ธ Disclaimer
This indicator is for educational and analytical purposes only.
No system is 100% accurate โ always backtest and demo trade before using in real trading.
๐ฌ Credits
Developed by Ajay Sahu (India)
Based on Institutional & Smart Money Logic
Best results on 3H TF
Hidden Algorithm for XAU/USD traders