Machine Learning: Logistic RegressionMulti-timeframe Strategy based on Logistic Regression algorithm
Description:
This strategy uses a classic machine learning algorithm that came from statistics - Logistic Regression (LR).
The first and most important thing about logistic regression is that it is not a 'Regression' but a 'Classification' algorithm. The name itself is somewhat misleading. Regression gives a continuous numeric output but most of the time we need the output in classes (i.e. categorical, discrete). For example, we want to classify emails into “spam” or 'not spam', classify treatment into “success” or 'failure', classify statement into “right” or 'wrong', classify election data into 'fraudulent vote' or 'non-fraudulent vote', classify market move into 'long' or 'short' and so on. These are the examples of logistic regression having a binary output (also called dichotomous).
You can also think of logistic regression as a special case of linear regression when the outcome variable is categorical, where we are using log of odds as dependent variable. In simple words, it predicts the probability of occurrence of an event by fitting data to a logit function.
Basically, the theory behind Logistic Regression is very similar to the one from Linear Regression, where we seek to draw a best-fitting line over data points, but in Logistic Regression, we don’t directly fit a straight line to our data like in linear regression. Instead, we fit a S shaped curve, called Sigmoid, to our observations, that best SEPARATES data points. Technically speaking, the main goal of building the model is to find the parameters (weights) using gradient descent.
In this script the LR algorithm is retrained on each new bar trying to classify it into one of the two categories. This is done via the logistic_regression function by updating the weights w in the loop that continues for iterations number of times. In the end the weights are passed through the sigmoid function, yielding a prediction.
Mind that some assets require to modify the script's input parameters. For instance, when used with BTCUSD and USDJPY, the 'Normalization Lookback' parameter should be set down to 4 (2,...,5..), and optionally the 'Use Price Data for Signal Generation?' parameter should be checked. The defaults were tested with EURUSD.
Note: TradingViews's playback feature helps to see this strategy in action.
Warning: Signals ARE repainting.
Style tags: Trend Following, Trend Analysis
Asset class: Equities, Futures, ETFs, Currencies and Commodities
Dataset: FX Minutes/Hours/Days
Cari dalam skrip untuk "algo"
[R&D] Moving CentroidThis script utilizes this concept. Instead of weighting by volume, it weights by amount of price action on every close price of the rolling window. I assume it can be used as an additional reference point for price mode and price antimode.
it is directly connected with Market (not volume) profile, or TPO charts.
The algorithm:
1) takes a rolling window of, for example, 50 data points of close prices:
2) for each of this closing prices, the algorithm will check how many bars touched this close price.
3) then: sum of datapoints * weights/sum of weights
Since the logic is implemented in pretty non-efficient way, the script sometimes can take time to make calculations. Moreover, it calculates the centroid taking into account only close prices, not every tick. of a given rolling window That's why it's still experimental.
Penunjuk Pine Script®
Enhanced Instantaneous Cycle Period - Dr. John EhlersThis is my first public release of detector code entitled "Enhanced Instantaneous Cycle Period" for PSv4.0 I built many months ago. Be forewarned, this is not an indicator, this is a detector to be used by ADVANCED developers to build futuristic indicators in Pine. The origins of this script come from a document by Dr. John Ehlers entitled "SIGNAL ANALYSIS CONCEPTS". You may find this using the NSA's reverse search engine "goggles", as I call it. John Ehlers' MESA used this measurement to establish the data window for analysis for MESA Cycle computations. So... does any developer wish to emulate MESA Cycle now??
I decided to take instantaneous cycle period to another level of novel attainability in this public release of source code with the following methods, if you are curious how I ENHANCED it. Firstly I reduced the delay of accurate measurement from bar_index==0 by quite a few bars closer to IPO. Secondarily, I provided a limit of 6 for a minimum instantaneous cycle period. At bar_index==0, it would provide a period of 0 wrecking many algorithms from the start. I also increased the instantaneous cycle period's maximum value to 80 from 50, providing a window of 6-80 for the instantaneous cycle period value window limits. Thirdly, I replaced the internal EMA with another algorithm. It reduces the lag while extracting a floating point number, for algorithms that will accept that, compared to a sluggish ordinary EMA return. You will see the excessive EMA delay with adding plot(ema(ICP,7)) as it was originally designed. Lastly it's in one simple function for reusability in a nice little package comprising of less than 40 lines of code. I hope I explained that adequately enough and gave you the reader a glimpse of the "Power of Pine" combined with ingenuity.
Be forewarned again, that most of Pine's built-in functions will not accept a floating-point number or dynamic integers for the "length" of it's calculation. You will have to emulate the built-in functions by creating Pine based custom functions, and I assure you, this is very possible in many cases, but not all without array support. You may use int(ICP) to extract an integer from the smoothICP return variable, which may be favorable compared to the choppiness/ringing if ICP alone.
This is commonly what my dense intricate code looks like behind the veil. If you are wondering why there is barely any notation, that's because the notation is in the variable naming and this is intended primarily for ADVANCED developers too. It does contain lines of code that explore techniques in Pine that may be applicable in other Pine projects for those learning or wishing to excel with Pine.
Showcased in the chart below is my free to use "Enhanced Schaff Trend Cycle Indicator", having a common appeal to TV users frequently. If you do have any questions or comments regarding this indicator, I will consider your inquiries, thoughts, and ideas presented below in the comments section, when time provides it. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
NOTICE: Copy pasting bandits who may be having nefarious thoughts, DO NOT attempt this, because this may violate Tradingview's terms, conditions and/or house rules. "WE" are always watching the TV community vigilantly for mischievous behaviors and actions that exploit well intended authors for the purpose of increasing brownie points in reputation scores. Hiding behind a "protected" wall may not protect you from investigation and account penalization by TV staff. Be respectful, and don't just throw an ma() in there branding it as "your" gizmo. Fair enough? Alrighty then... I firmly believe in "innovating" future state-of-the-art indicators, and please contact me if you wish to do so.
Penunjuk Pine Script®
SMC Pro BTC - ICT Order Blocks & FVG [DOE]# SMC Pro BTC - ICT Order Blocks & FVG
A multi-timeframe smart money concepts engine built exclusively for Bitcoin. This indicator combines order blocks, fair value gaps, liquidity sweeps, break of structure, and premium discount zone analysis into one backtest-verified, non-repainting strategy — every signal you see in history is exactly what you would have seen live.
Built by a former quantitative analyst from a US-based systematic fund. The structural logic behind this indicator is the same order flow mechanics that institutional algorithms use to identify and exploit liquidity imbalances — adapted for retail traders on TradingView. At the fund, we did not use RSI or MACD. We tracked where unfilled orders sat, where liquidity clustered, and where price needed to travel to resolve imbalances. That is what Smart Money Concepts formalizes, and that is what this indicator automates.
This is a free, open-source tool. All backtest results below are fully reproducible on your chart with the default settings. No hidden parameters. No curve-fitting. No repainting.
## TWO STRATEGY MODES — CHOOSE YOUR RISK PROFILE
The indicator offers two distinct execution modes built on the same structural foundation. The difference is filter strictness — one prioritizes opportunity, the other prioritizes quality. Both include commissions and slippage in their backtested results, because a backtest without commissions is fiction.
### AGGRESSIVE MODE
Entries fire on any valid Break of Structure (BOS) or Change of Character (CHoCH) confirmed by an order block and fair value gap on the confirmation timeframe. This mode captures more setups, including momentum re-entries and early reversal signals. It accepts a lower win rate in exchange for catching a larger portion of trending moves.
| Metric | Value |
|---|---|
| Total Trades | 55 |
| Win Rate | 49.09% |
| Net P&L | +49.12% |
| Profit Factor | 1.41 |
| Max Drawdown | 14.70% |
A 49% win rate may not sound impressive on the surface. But this is not a coin flip. The 1.41 profit factor means that winning trades meaningfully outweigh losers — the strategy is designed to let winners run through a configurable risk-to-reward ratio. Over 55 trades with real commissions (0.075% per trade) and slippage (3 ticks per order), the system returned nearly 50% on initial capital. That is what positive expectancy looks like in practice.
Mark Douglas wrote that there is a random distribution between wins and losses for any set of variables that define an edge. You do not need to win every trade. You need an edge and the discipline to follow it over a series. This mode is built for that exact mindset.
### SELECTIVE MODE
Adds a premium/discount zone filter on top of all Aggressive conditions. Longs are only permitted in the discount zone of the higher-timeframe dealing range. Shorts are only permitted in the premium zone. This single structural filter cuts the trade count by more than half while dramatically improving signal quality.
| Metric | Value |
|---|---|
| Total Trades | 21 |
| Win Rate | 61.90% |
| Net P&L | +26.92% |
| Profit Factor | 2.347 |
| Max Drawdown | 8.66% |
A profit factor above 2.0 combined with single-digit drawdown is rare for any fully disclosed, non-repainting BTC strategy. The Selective mode achieves both over three full years of data. The tradeoff is fewer trades — 21 versus 55 — which means this mode requires patience. It is designed for traders who prefer waiting for optimal positioning over catching every move.
Both modes are provided so you can evaluate the tradeoff between frequency and precision on your own terms. There is no objectively "better" mode. There is only the mode that matches your risk tolerance and psychological profile.
## ENTRY LOGIC — STEP BY STEP
Every signal is generated through a strict multi-timeframe confluence model. No single condition is sufficient. The indicator requires alignment across structure, zone, imbalance, and liquidity before producing a signal. Here is the full logic for long entries — short entries mirror the process with inverted conditions.
### LONG ENTRY SEQUENCE
**Step 1 — HTF Directional Bias (Break of Structure)**
The Direction Timeframe (default: 4H) detects a bullish break of structure or change of character using swing highs and lows. This establishes the higher-timeframe directional bias. Without bullish structure on the HTF, no long signal can fire. This is the first gate.
**Step 2 — MTF Confirmation (Structural Alignment)**
The Confirmation Timeframe (default: 1H) must confirm with its own bullish BOS or CHoCH, aligning both timeframes in the same direction. This dual-timeframe structural alignment filters out a significant amount of noise and counter-trend traps.
**Step 3 — Order Block Identification**
The script looks back up to the configured OB Lookback Bars to find the last bearish candle before the impulsive bullish move — the order block where smart money accumulated positions. This zone represents an area of institutional demand that is likely to attract price on a revisit.
**Step 4 — Fair Value Gap Validation**
The indicator checks for a bullish fair value gap (the gap between candle 1's high and candle 3's low in a three-candle sequence) that overlaps the identified order block zone. An OB alone is a level. An OB combined with an FVG is confluence — two independent structural signals agreeing on the same price zone. This overlap is where the highest-probability entries concentrate.
**Step 5 — Liquidity Sweep Confirmation**
Before the signal can fire, the indicator verifies that a recent liquidity sweep occurred within the configured Sweep Memory window. A liquidity sweep means price dipped below a prior swing low, triggering stop-loss orders and pending sell orders, before reversing. This is the classic ICT stop hunt — institutional participants accumulating liquidity from retail stop-outs. Without this sweep, the setup lacks the liquidity fuel that drives the reversal.
**Step 6 — Premium/Discount Zone Filter (Selective Mode Only)**
In Selective mode, the entry must occur in the discount zone of the HTF dealing range, defined by the P/D Zone Threshold parameter. This ensures longs are taken only when price is trading at a structural discount — the lowest-risk portion of the range.
**Step 7 — Execution**
All conditions are met. The long signal fires on the next confirmed bar. Stop-loss is placed below the order block low minus the SL Buffer percentage. Take-profit is calculated at the configured Risk:Reward Ratio distance from entry. Both levels are plotted visually on the chart.
### SHORT ENTRY SEQUENCE
The short entry mirrors the long with inverted conditions across all seven steps:
1. HTF bearish BOS or CHoCH establishes bearish bias
2. MTF bearish BOS or CHoCH confirms the direction
3. Bearish order block identified (last bullish candle before the sell-off)
4. Bearish fair value gap overlaps the order block zone
5. Liquidity sweep above a prior swing high (stop hunt to the upside)
6. Price in the premium zone of the HTF dealing range (Selective mode only)
7. SL placed above OB high plus buffer; TP calculated at R:R distance below entry
Every step is objective. There is no discretionary component. The indicator either detects the confluence or it does not. This is not chart art — it is structure, codified.
## FEATURES
- Non-repainting, non-lookahead signals — barstate.isconfirmed enforced on all calculations; what you see in history is what you would have seen live
- Multi-timeframe structure analysis — HTF for direction, MTF for confirmation, entry timeframe for execution
- Order block detection with configurable lookback depth and automatic invalidation when price trades through the zone
- Fair value gap multi-zone display — shows up to N unfilled FVGs per direction simultaneously, configurable by maximum count and maximum distance from current price, so you only see the gaps that are structurally relevant to your current timeframe and price action
- Liquidity sweep recognition with adjustable memory window for detecting stop hunts before entries
- Break of Structure (BOS) and Change of Character (CHoCH) detection via swing-point analysis on multiple timeframes
- Premium/discount zone mapping from the HTF dealing range, with configurable threshold for zone extremes
- Automatic trade management — stop-loss and take-profit levels plotted with visual trade boxes on every signal
- Two strategy modes — Aggressive for opportunity-seeking traders, Selective for precision-focused traders
- Fully configurable parameters — every setting is exposed with sensible defaults optimized for BTC 4H
- Built-in strategy engine — run backtests directly in TradingView's Strategy Tester with your own commission and slippage settings
- Clean chart presentation — signals, zones, and labels are designed for readability on both desktop and mobile
## SETTINGS DOCUMENTATION
**Strategy Mode** — Aggressive / Selective
Aggressive uses the full confluence model: BOS/CHoCH + Order Block + FVG + Liquidity Sweep. Selective adds the premium/discount zone filter on top of everything. If you are new to smart money concepts, start with Selective — fewer signals, but each one carries stronger structural backing.
**Direction TF (HTF)** — Default: 240 (4H)
The higher timeframe that establishes directional bias through structural breaks. Increase to Daily (1440) for fewer, higher-conviction signals on larger moves. Decrease to 60 (1H) for more responsive structure detection on shorter swings.
**Confirmation TF (MTF)** — Default: 60 (1H)
The mid timeframe that confirms HTF bias before any entry can trigger. Must be lower than or equal to the Direction TF. The default 240/60 pair provides a 4:1 ratio that balances responsiveness with structural reliability.
**Swing Length** — Default: 10 | Range: 3-50
The number of bars used to identify swing highs and swing lows for structural analysis. Lower values increase sensitivity (more BOS/CHoCH signals, more noise). Higher values detect only major structural shifts. The default of 10 is balanced for BTC on the 4H timeframe.
**OB Lookback Bars** — Default: 15 | Range: 3-30
How far back the script searches for a valid order block after a structural break is detected. Smaller values yield higher precision but may miss valid blocks that formed earlier. Larger values capture more blocks but increase the risk of the OB being partially mitigated.
**Sweep Memory** — Default: 20 bars | Range: 5-50
The lookback window for detecting a liquidity sweep before confirming an entry. If valid sweeps are being missed on your asset or timeframe, increase this value. If you want tighter sweep-to-entry timing, decrease it.
**Risk:Reward Ratio** — Default: 2.0 | Range: 1.0-5.0
Determines take-profit placement relative to stop-loss distance. At 2.0, the TP is placed twice the SL distance from entry. Higher values produce larger winning trades but lower win rates. Always re-run the backtest after changing this setting to understand the impact on overall expectancy.
**SL Buffer %** — Default: 0.3 | Range: 0.0-2.0
A buffer added beyond the order block boundary for stop-loss placement, designed to prevent wick stop-outs on volatile assets like BTC. At 0.3%, a $100,000 OB low places the stop-loss at $99,700.
**P/D Zone Threshold** — Default: 0.80 | Range: 0.50-0.85 | Selective Mode Only
Controls how deep into the premium or discount zone price must be for an entry to qualify. At 0.80, longs require price to be in the bottom 20% of the HTF range and shorts require the top 20%. At 0.50, the indicator uses standard equilibrium (above/below 50%). This parameter is ignored in Aggressive mode.
**Max FVGs per Side** — Default: 5 | Range: 1-10
Controls how many unfilled fair value gaps are displayed per direction (bullish and bearish independently). At 5, the chart shows up to 5 active bullish FVGs and 5 active bearish FVGs simultaneously. Lower values reduce visual clutter on smaller timeframes. Higher values provide more structural context on higher timeframes where gaps may persist longer. When the limit is reached, the oldest FVG is removed to make room for the newest one.
**FVG Max Distance %** — Default: 8.0 | Range: 1.0-25.0
FVGs whose midpoint is further than this percentage from the current price are automatically hidden. This keeps the chart focused on structurally relevant gaps — a gap at 85K is not actionable when price is at 97K. On higher timeframes or during high-volatility periods, increase this value to retain wider context. On lower timeframes or in tight ranges, decrease it to keep only the nearest gaps visible.
**Show Trade Boxes** — On / Off
Toggles the visual boxes that display entry, stop-loss, and take-profit levels for each signal. Green boxes indicate long positions. Red boxes indicate short positions.
## CONCEPTS EXPLAINED
For traders learning smart money concepts, here is a plain-language breakdown of every structural element this indicator uses.
**Order Blocks (OB)**
An order block is the last opposing candle before a significant impulsive move. In a bullish scenario, it is the last bearish candle before a strong rally. Institutional traders place large orders at these levels during accumulation or distribution phases, creating zones where price is statistically likely to react when it returns. Order blocks are the foundation of SMC entry models — they represent where smart money positioned itself.
**Fair Value Gap (FVG)**
A fair value gap is a three-candle price imbalance where a gap exists between candle 1's high (or low) and candle 3's low (or high). In a bullish FVG, candle 2 moved so aggressively that it left a gap between candle 1's high and candle 3's low. These gaps represent areas where price moved too fast for orders to fill completely. Markets tend to return to these inefficiencies to rebalance. When an FVG overlaps an order block, you have two independent structural signals pointing to the same zone — that is high-probability confluence.
**Break of Structure (BOS)**
A break of structure occurs when price moves beyond a prior swing high (bullish BOS) or swing low (bearish BOS) in the direction of the prevailing trend. It signals continuation — the trend is intact and expanding. This indicator uses BOS detection on both the higher timeframe and the confirmation timeframe to ensure structural alignment before entries.
**Change of Character (CHoCH)**
A change of character is a structural break against the prevailing trend, signaling a potential reversal. In a downtrend, a CHoCH occurs when price breaks above the most recent lower high. This is significant because it is the first objective signal that sellers may be losing control. The indicator treats CHoCH as a valid trigger alongside BOS, allowing entries on both trend continuations and early reversals.
**Liquidity Sweep**
A liquidity sweep occurs when price briefly pushes beyond a key structural level — a swing high or swing low — to trigger clustered stop-loss orders and pending orders, then reverses. This is a core ICT concept. Institutional participants need liquidity to fill large positions, and retail stop-losses provide that liquidity. The sweep-and-reverse pattern is one of the most reliable structural signals in price action analysis. This indicator requires a confirmed sweep before any entry signal fires.
**Premium and Discount Zones**
The premium/discount zone model divides the higher-timeframe dealing range into two halves using the 50% equilibrium level. The upper half is the premium zone — where price is expensive relative to the range, favoring short positions. The lower half is the discount zone — where price is cheap relative to the range, favoring long positions. The Selective mode narrows this further using the P/D Zone Threshold, requiring entries at the extremes of these zones for maximum positional advantage.
## HOW TO USE THIS INDICATOR
**Step 1 — Add to Chart**
Add the indicator to any BTCUSDT chart. The default settings are optimized for the 4H timeframe on Binance data, but the logic works on any Bitcoin pair and can be adapted to other timeframes by adjusting the Direction TF, Confirmation TF, and Swing Length parameters.
**Step 2 — Choose Your Mode**
Open Settings and select either Aggressive or Selective mode. Aggressive generates more signals and captures more of the trend. Selective generates fewer, higher-quality signals with tighter risk control. If you are still learning smart money concepts, Selective mode provides a cleaner read because every signal has maximum structural confluence.
**Step 3 — Read the Signals**
Entry arrows appear directly on the chart when all confluence conditions are met. Green arrows indicate long entries. Red arrows indicate short entries. Stop-loss and take-profit levels are plotted as horizontal lines extending from each signal.
**Step 4 — Enable Trade Boxes**
Turn on Show Trade Boxes in Settings for a clear visual representation of each trade's risk and reward. The box spans from entry to TP, with the SL level marked. This makes it easy to evaluate the risk-reward ratio of each signal at a glance.
**Step 5 — Run the Strategy Tester**
Open TradingView's Strategy Tester panel to verify the backtest results on your chart and data. Set commission and slippage to match your exchange's actual fees. The default commission of 0.075% per trade represents Binance taker fees. Adjust if you trade on a different exchange.
**Step 6 — Adjust Settings Carefully**
If you modify parameters, change one at a time and re-run the backtest after each change to understand the isolated impact. The default settings are the product of extensive testing — they are not arbitrary. Move away from them deliberately, not casually.
**Step 7 — Combine with Your Own Context**
This indicator provides structural signals based on smart money concepts. It does not account for fundamental catalysts, macroeconomic events, or on-chain data. Use these signals as one input within your broader analytical framework. The strongest results come from traders who combine structural signals with their own understanding of market context.
**Step 8 — Manage Risk**
No indicator guarantees profits. Size your positions according to your account size and risk tolerance. Never risk more than you can afford to lose on a single trade. The backtest results represent historical performance under specific conditions — live trading introduces variables that backtests cannot fully capture.
## BACKTEST CONDITIONS — FULL TRANSPARENCY
Every number published here is reproducible. Load the indicator with default settings on BTCUSDT 4H and open the Strategy Tester. Here are the exact conditions:
- Symbol: BTCUSDT (Binance)
- Timeframe: 4H
- Period: January 2023 through February 2026 (3+ years of data)
- Initial Capital: $10,000
- Order Size: 100% of equity per trade
- Commission: 0.075% per trade (Binance taker fee)
- Slippage: 3 ticks per order
- Non-repainting: barstate.isconfirmed enforced on all signal calculations
- No lookahead bias: lookahead = barmerge.lookahead_off on all request.security() calls
- No future leakage: entries execute on the bar after all conditions are confirmed
Sample sizes are moderate — 55 trades for Aggressive, 21 for Selective. The Selective mode's 21 trades in particular should be supplemented with forward-testing on live data to build stronger statistical confidence. Both modes are provided so you can evaluate the frequency-versus-quality tradeoff with full transparency.
Past performance under specific historical conditions does not guarantee future results. Markets evolve. Volatility regimes shift. The only honest way to evaluate any strategy is continuous forward-testing alongside historical backtesting.
## DISCLAIMER
This indicator is published for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset.
Trading Bitcoin and other financial instruments involves substantial risk of loss. Leverage, volatility, exchange downtime, liquidity gaps, and other real-world factors can significantly impact live performance versus backtested results.
You should carefully consider your financial objectives, level of experience, and risk appetite before trading. Never trade capital you cannot afford to lose. You are solely responsible for your own trading decisions and their outcomes.
The author makes no guarantees about the accuracy, completeness, or reliability of this indicator or its signals. Use it at your own risk.
---
**Suggested Tags:** `smartmoneyconcepts` `orderblocks` `fairvaluegap` `bitcoin` `ICT` `BOS` `liquidez` `bloques` `accionprecio`
---
## VERSION EN ESPANOL (Resumen)
Para la documentacion completa, consulta la seccion en ingles arriba. A continuacion, un resumen de los puntos clave.
---
### Que es SMC Pro BTC
Motor de smart money concepts multi-temporal construido exclusivamente para Bitcoin. Combina bloques de ordenes, fair value gaps, barridos de liquidez, rupturas de estructura y zonas premium/descuento en una sola estrategia verificada por backtest, sin repintado y de codigo abierto. Desarrollado por un ex-analista cuantitativo de un fondo sistematico en Estados Unidos — la misma mecanica de flujo de ordenes que usan los algoritmos institucionales, adaptada para traders retail en TradingView.
Todos los resultados son reproducibles con los ajustes por defecto. Sin parametros ocultos. Sin sobreajuste.
### Dos Modos de Estrategia
**Modo Agresivo** — Entradas en cualquier BOS/CHoCH valido confirmado por bloque de ordenes + FVG + barrido de liquidez. Mas operaciones, mayor exposicion a movimientos tendenciales.
| Metrica | Valor |
|---|---|
| Total de Trades | 55 |
| Win Rate | 49.09% |
| P&L Neto | +49.12% |
| Factor de Beneficio | 1.41 |
| Drawdown Maximo | 14.70% |
**Modo Selectivo** — Agrega filtro de zona premium/descuento. Longs solo en zona de descuento, shorts solo en zona premium. Menos operaciones, mayor calidad por senal.
| Metrica | Valor |
|---|---|
| Total de Trades | 21 |
| Win Rate | 61.90% |
| P&L Neto | +26.92% |
| Factor de Beneficio | 2.347 |
| Drawdown Maximo | 8.66% |
Ambos modos incluyen comisiones (0.075%) y slippage (3 ticks) en los resultados. No hay un modo objetivamente mejor — solo el que se ajusta a tu perfil de riesgo.
### Como Usar
- **Agrega el indicador** a cualquier chart BTCUSDT (optimizado para 4H, Binance). Selecciona modo Agresivo o Selectivo en Configuracion.
- **Lee las senales:** flechas verdes = largo, flechas rojas = corto. Activa Show Trade Boxes para ver entrada, SL y TP visualmente. Los FVGs activos se muestran como zonas en el chart — configura cuantos quieres ver y a que distancia maxima del precio con Max FVGs per Side y FVG Max Distance %.
- **Verifica con el Strategy Tester:** abre el panel de Strategy Tester de TradingView, ajusta comisiones y slippage a las tarifas de tu exchange, y confirma los resultados en tu propio chart.
- **Gestiona tu riesgo:** ningun indicador garantiza ganancias. Dimensiona posiciones segun tu cuenta y tolerancia al riesgo. Combina estas senales con tu propio analisis fundamental y de contexto de mercado.
### Condiciones del Backtest
BTCUSDT (Binance) | 4H | Enero 2023 - Febrero 2026 | Capital: $10,000 | 100% equity por trade | Comision: 0.075% | Slippage: 3 ticks | Sin repintado (barstate.isconfirmed) | Sin lookahead bias | Sin filtracion futura.
### Aviso Legal
Este indicador se publica con fines educativos e informativos unicamente. No constituye asesoria financiera ni recomendacion de compra o venta. Operar Bitcoin implica riesgo sustancial de perdida. Nunca operes con capital que no puedas permitirte perder. El rendimiento pasado no garantiza resultados futuros. Usalo bajo tu propio riesgo.
Strategi Pine Script®
Day trade futures - ES VWAP Pullback v2.0 [Signals]ES VWAP Institutional Pullback v2.0
—— STRATEGY VERSION ——
A futures day-trading system built specifically for /ES (S&P 500 E-mini) on the 5-minute timeframe. Designed around the premise that institutional algorithms benchmark entries against VWAP and that the highest-probability trades come from entering trend continuations after pullbacks — not from predicting reversals.
This is not a typical MACD crossover strategy. Every component is filtered and confirmed before a signal fires.
█ HOW IT WORKS
The system requires four conditions to align before entering a trade:
1. Higher-Timeframe Trend Confirmation
Uses a 50 EMA pulled from the 15-minute chart via request.security(). Price must be above this EMA for longs, below for shorts. This replaces the common approach of plotting a 200 EMA on the entry timeframe, which on a 5-minute chart represents ~17 hours of data and reacts too slowly to intraday regime changes.
2. VWAP Institutional Bias
Price must be above the session VWAP for longs, below for shorts. VWAP is the benchmark institutional algorithms use to evaluate execution quality. Trading in the direction of VWAP bias aligns your entries with the dominant order flow.
3. MACD Histogram Reversal (Not Raw Crossover)
Rather than entering on a standard MACD line crossover (which lags significantly on short timeframes), the system detects when the MACD histogram flips from negative to positive territory after being negative for at least two consecutive bars. This catches the exact moment selling pressure exhausts and buying momentum resumes — typically 1–3 bars earlier than a traditional crossover.
4. Volume Spike Confirmation
The entry bar must have volume ≥ 1.2× its 20-bar simple moving average. A MACD histogram flip on thin volume is noise. Requiring a volume spike confirms that institutional participation is actually present at the reversal point.
█ SESSION FILTER
Futures trade nearly 24 hours, but VWAP-based strategies degrade outside Regular Trading Hours when volume thins and price action becomes erratic. The system enforces a hard session window of 9:30 AM – 3:30 PM Eastern by default. All positions are automatically closed at session end if the EOD close option is enabled.
█ RISK MANAGEMENT
Dynamic ATR-Based Stops
Stop loss is calculated as 1.5× the 14-period ATR at the moment of entry. During volatile opens, your stop widens to give the trade room. During quiet midday action, it tightens to protect capital. This replaces fixed-point stops that get hunted during volatility expansion.
Partial Profit at 1R
When price reaches 1× your initial risk (the 1R level), 50% of the position is closed automatically. This locks in profit and reduces psychological pressure on the remaining runner.
Trailing Stop
After reaching the 1R trigger, a trailing stop activates at 0.75× ATR behind the current price. It only moves in your favor — never backward. This lets winners run in trending sessions while protecting gains.
Full Take Profit at 2R
The remaining position targets 2× the initial risk. Combined with the partial at 1R, the effective average exit on a full winner is approximately 1.5R.
█ BACKTEST REALISM
The strategy models:
• $2.50 per contract commission (round-trip ~$5.00, typical for /ES)
• 2-tick slippage ($25 per contract)
• No fills on close — orders process on the next bar
This matters. Many published strategies show inflated results because they assume zero friction. The performance you see in the Strategy Tester should be closer to what you would actually experience.
█ DASHBOARD
A real-time info table displays:
• Current HTF trend direction
• VWAP bias (above/below)
• Current ATR value
• Volume ratio vs. SMA (with color coding for spike detection)
• Session status (active/closed)
• Position status
• MACD histogram value
█ SETTINGS GUIDE
Inputs are grouped logically. Key tuning parameters:
Volume Multiple (default 1.2×) — Lower to 1.0× if you're getting too few signals in quieter sessions. Raise to 1.5× for stricter filtering.
HTF Timeframe (default 15m) — The 15-minute 50 EMA represents ~12.5 hours of trend data. You can try 30m for a slower, more conservative filter.
Trail Trigger (default 1.0R) — Set to 0.75R for more aggressive trailing. Set to 1.5R if you want the trail to activate later and give more room.
Trail Offset (default 0.75 ATR) — Lower values trail tighter (more likely to get stopped but lock more profit). Higher values give more room but risk giving back gains.
All filters (HTF, VWAP, Volume, Session) can be individually toggled off for testing which components add value in your specific market conditions.
█ WHAT THIS IS NOT
• This is not a scalping system. It targets 2R moves, not 2-tick scratches.
• This is not a reversal catcher. It trades pullbacks within established trends.
• This will not protect you from news events. Avoid FOMC, CPI, NFP, and other high-impact macro releases — no algorithm can predict those.
• This is not financial advice. Futures are leveraged instruments. Backtest results do not guarantee future performance.
█ RECOMMENDED USAGE
• Chart: /ES 5-minute
• Session: RTH only (9:30 AM – 3:30 PM ET)
• Avoid: 15 minutes before/after high-impact economic data
• Combine with: Level 2 / DOM for discretionary confirmation if available
—— INDICATOR VERSION ——
Same logic as the strategy but packaged as an indicator() for live discretionary trading:
• No backtest engine overhead — lighter on your chart
• Entry labels display exact SL, TP, and risk in points at signal time
• 1R level plotted in cyan for visual partial-profit reference
• Signal levels auto-expire after 50 bars or when SL/TP is hit
• Alert conditions registered for both long and short signals — configure through TradingView's alert dialog
Penunjuk Pine Script®
MetalMind: Kernel Flow v3Overview MetalMind: Kernel Flow v3 is a sophisticated trend-following system designed for institutional-grade precision. Unlike standard moving averages that suffer from lag, this indicator utilizes Non-Parametric Kernel Regression to estimate the underlying price flow with minimal noise and maximum responsiveness.
This "Institutional Edition" integrates a unique macro-filter based on the Gold/Silver Ratio (GSR), making it exceptionally powerful for trading precious metals (XAUUSD, XAGUSD) and correlated assets, though the logic works on any timeframe and asset class.
Key Features
1. AI Kernel Engine
At its core, the script uses a dual-layer Kernel Regression (Fast & Slow).
The Ribbon: Visualizes the spread between kernel bandwidths. An expanding ribbon indicates strong momentum, while a contracting ribbon warns of consolidation.
Adaptive Smoothness: The algorithm dynamically adjusts to price action, filtering out market noise without sacrificing entry speed.
2. Metal Intelligence (GSR Filter)
This is the standout feature of MetalMind.
The script pulls real-time data for Gold and Silver to calculate the GSR Z-Score.
Logic: A statistically high GSR often signals risk-off sentiment or liquidity contraction. The algorithm automatically suppresses Long signals when the GSR is unfavorable, preventing "bull traps."
Note: You can customize the tickers in settings (e.g., use Copper/Gold or crypto pairs if desired).
3. Volatility Spike Protection
Institutional algorithms do not chase news candles.
The Vol-Norm module detects abnormal volatility spikes (standard deviation outliers).
When a spike occurs, the signal engine freezes, waiting for the dust to settle. This prevents entering at the top of a news wick.
4. Multi-Factor Confluence A signal is only generated when multiple conditions align:
Trend: Kernel Crossover + Ribbon Alignment.
Strength: ADX > Threshold (default 20).
Momentum: RSI is not Overbought/Oversold.
Confirmation: Optional "Wait Bar" logic to prevent repainting/whipsaws.
How to Use
📈 BUY Signal (Green Label): Appears when the Fast Kernel crosses the Slow Kernel upwards, the Ribbon expands green, ADX confirms trend strength, and the GSR risk is low.
📉 SELL Signal (Red Label): Appears when the Fast Kernel crosses downwards, Ribbon expands red, and RSI/ADX filters are met.
✖ Grey "F" Marks: These are Filtered Signals. They show where the algorithm detected a cross but blocked the trade due to high risk (GSR, RSI, or ADX). Use these to learn what not to trade.
Settings
Kernel Lookback & Bandwidth: Adjust sensitivity to the trend.
GSR Tickers: Default is OANDA:XAUUSD/XAGUSD. Can be changed to any assets.
Filters: Toggle ADX, RSI, or GSR filters on/off based on your strategy.
Disclaimer: This tool is for educational purposes and trend analysis. Always manage your risk.
Penunjuk Pine Script®
ICT Macro Tracker | Multi-TFThis indicator extends the ICT Macro boundaries to different timeframe, not just the traditionally known 10min to 10min hourly window.
From 1-Hour to Monthly, each candle will close → open.
During this handoff is where the new OHLC sequence begins and liquidity seeks / rebalances inefficiencies.
Built on the foundation of @toodegrees ICT Algorithmic Macro Tracker°.
Extended to track candle boundary macros across multi-timeframe tiers with automatic timeframe alignment, session filtering, H/L tracking, and a full alert system.
💠 MACRO OHLC CONCEPT
Every candle must close before the next one opens. That transition is where the algorithm seeks liquidity or rebalances price.
One hour divides into four 15-minute candles, each maps to a leg of the OHLC sequence: Open, High (or Low), Low (or High), Close.
The traditional ICT macro captures a 20-minute window: last 10 minutes of the closing candle, first 10 of the new one.
Extend that to 15 minutes each side and the window now aligns with the full 15-minute OHLC legs. The close completing its delivery and the open beginning its new sequence.
This principle is fractal. The same close → open handoff applies at every timeframe:
Macro Breakdown
Monthly Macro → Daily
Last week of old month → First week of new month · ~10 trading days
Weekly Macro → 4-Hour
Thu / Fri → Mon / Tue · ~2.5 days
Daily Macro → 1-Hour
Last 6H of closing day → First 6H of new day · ~12 hours
4-Hour Macro → 15-Min
Last 1H of closing 4H → First 1H of new 4H · ~2 hours
1-Hour Macro → 1-Min
Last 15min of closing hour → First 15min of new hour · ~30 min
💠 FEATURES
Multi-Timeframe Macro Tiers
– 1H Macros: brackets at every hourly boundary (XX:45–XX:15 or XX:50–XX:10)
– 4H Macros: brackets at 4-hour boundaries (Full: 2H window / Half: 1H window)
– Daily Macros: brackets at daily boundaries (Full: 12H / Half: 6H)
– Weekly Macros: single bracket straddling the weekend
– Monthly Macros: single bracket straddling the month boundary
Auto
– Auto TF Alignment: automatically shows the right tier for your chart timeframe
≤3m → 1H · 5m → 4H · 15m → Daily · 1H → Weekly · 4H → Monthly
– Auto Futures Detection: aligns boundaries to exchange times (CME 6PM) or midnight based on symbol type
– Custom mode for manual control over all tiers and visibility
Visuals
– 50% temporal midpoint line marking the old close / new open transition
– H/L tracking with extending lines that detect mitigation (price breaks the level)
– H/L modes: "All" (every macro gets lines) or "Most Recent" (last completed only)
– Above/Below bracket positioning
– Tiered lane display — multiple active tiers stack vertically without overlapping
– Session filtering: toggle Asia, London, NY AM, NY PM independently per tier
Alerts
– On Open / On 50% / On Close for any active macro
– Pre-Alert and Pre-50% with configurable advance time (1min to Daily)
– Compatible with TradingView's "Any alert() function call"
💠 SETTINGS
📐 Settings
– Macros: main on/off toggle
– Above / Below: bracket display position relative to price
– 50%: show/hide temporal midpoint line
– H/L: toggle macro high/low tracking lines
– H/L Mode: "All" shows lines for every macro, "Most Recent" shows only the last completed
– TF Alignment: "Auto" assigns one tier per chart timeframe, "Custom" gives full manual control
– Futures: "Auto" detects via symbol type, "On" forces exchange-aligned boundaries (4H: 2,6,10,14,18,22 / Daily: 6PM), "Off" forces midnight-aligned
⏱ Intraday Macros
– 1H Macro: enable/disable, window size (15min: 30-min bracket or 10min: 20-min bracket), colour
– Session toggles: Asia (5pm–12am), London (12am–6am), NY AM (6am–12pm), NY PM (12pm–5pm)
– Apply Below: restrict 1H macros to chart timeframes at or below this setting
– 4H Macro: enable/disable, window size (Full: 1H+1H or Half: 30m+30m), colour
– 4H Session toggles with futures-aware boundary hours
– 4H Apply Below
📅 HTF Macros
– Daily Macro: enable/disable, window (Full: 6H+6H / Half: 3H+3H), colour, Apply Below
– Weekly Macro: enable/disable, window (Full: Thu–Tue / Half: Fri–Mon), colour, Apply Below
– Monthly Macro: enable/disable, window (Full: 7+7 days / Half: 3+3 days), colour, Apply Below
🔔 Alerts
– On Open / On 50% / On Close
– Advance: how far ahead pre-alerts fire (1min, 5min, 15min, 30min, 1H, 4H, Daily)
– Pre-Alert / Pre-50%: fires before the macro opens or reaches midpoint
💠USAGE
Start with Auto mode, it picks the right macro tier for your chart timeframe automatically.
Recommended starting points:
– 1-min to 3-min chart → 1H macros (every hourly boundary)
– 5-min chart → 4H macros (session-level boundaries)
– 15-min chart → Daily macros
– 1-hour chart → Weekly macros
– 4-hour chart → Monthly macros
Switch to Custom mode when you want multiple tiers visible at once or need fine control over which sessions and timeframes appear.
The bracket shows the macro time window. The 50% midpoint marks where the old candle's close transitions to the new candle's open. H/L lines mark where liquidity was created during the macro, watch for price to return and mitigate those levels.
Hover over any bracket label for detailed tooltip information including the exact time range, session, window size, and futures/midnight alignment.
💠ATTRIBUTION & OPEN SOURCE
Built on @toodegrees open-source ICT Algorithmic Macro Tracker°.
Massive thanks to @toodegrees for making the code open source.
Disclaimer
This tool is for educational purposes only and is not financial advice. Users assume full responsibility for their trading decisions. Past performance does not guarantee future results.
Penunjuk Pine Script®
Momentum Structural Volatility Oscillator [MSVO Pro]
The Momentum Structural Volatility Oscillator (MSVO) is a high-performance quantitative tool designed to capture impulsive trend shifts. By integrating normalized price action with a dual-stage smoothing engine, MSVO filters out market noise while maintaining high sensitivity to "Monster Stock" volatility patterns.
MSVO 动能结构振荡器是一款专为捕捉脉冲式趋势转折而设计的量化工具。它结合了归一化价格行为与双阶平滑引擎,在过滤市场杂讯的同时,保持对“妖股”级别波动模式的高度敏感。
-Dynamic Range Normalization: Unlike standard oscillators, MSVO utilizes a dynamic lookback window (21/8) to map price action into a normalized energy field.
-Weighted Smoothing Algorithm: It implements a professional 0.667/0.333 weighted smoothing logic to calculate the Signal Line, significantly reducing lag compared to traditional EMAs.
-Momentum Energy Cloud: The visual "Cloud" represents the gap between momentum and its signal line, highlighting the strength of the current trend acceleration.
-动态范围归一化: 不同于传统振荡器,MSVO 利用动态回溯窗口(21/8)将价格行为映射到归一化的能量场中。
-加权平滑算法: 采用专业的 0.667/0.333 加权平滑逻辑计算信号线,相比传统 EMA 大幅降低了信号滞后。
-动能能量云: 视觉化的“云带”代表了动能与其信号线之间的速率差,直观展示当前趋势加速的强度。
-INIT (Purple Label): Detects low-level momentum accumulation. A precursor to potential volatility breakouts.
-BUY/SELL (Triangles): Threshold-based confirmation when momentum crosses structural key levels (20/80).
-INIT (紫色标签): 探测低位动能累积,通常是潜在波动爆发的前兆。
-BUY/SELL (三角标记): 当动能穿越结构性关键位(20/80)时的阈值确认信号。
Penunjuk Pine Script®
PyraTime Liquidity & TimeThe Problem:
Why Most Traders Get Trapped Most trading indicators fail because they only look at half the picture: Price. Traders draw support and resistance lines, wait for the price to hit them, and then get stopped out by a wick that instantly reverses. This is a "Liquidity Sweep," and it is how institutional algorithms trap retail traders.
Furthermore, free indicators often suffer from the "Floating Indicator" bug—where lines detach from price during zooming—making them unreliable for precision trading.
The Solution: PyraTime Liquidity & Time PyraTime L&T solves this by filtering every price move through Time. It does not just ask "Is price at support?" It asks "Is price at support at the exact right time?"
This tool combines three institutional concepts into one dashboard:
Geometric Liquidity Traps: Identifies when a swing point is swept (false breakout) exactly during a Fibonacci Time Cluster.
Institutional Time Cycles: Projects future volatility windows (Gold Lines) based on the geometry of past pivots.
Silver Bullet Zones: Automatically highlights the specific hours where algorithms are most active (London, NY, Tokyo sessions).
How to Use This Indicator
1. The "Trap" Signal (Your Entry Trigger) The core function of this tool is to identify "Time-Price Traps."
Wait for a Signal: A "TRAP" or "SWEEP" label will appear when price breaks a previous high/low but closes back inside the range AND this happens inside a Fibonacci Time Cluster.
The Logic: This confirms that Time and Price have squared. It is a high-probability reversal signal.
Cyan Label: Bullish Trap (Look for Longs)
Pink Label: Bearish Trap (Look for Shorts)
2. The Golden Time Lines (Your Filter) The vertical Gold lines are future time projections.
Cluster Confirmation: If you see multiple Gold lines grouped closely together, expect high volatility or a reversal at that specific time.
Trade Filter: Do not take a trade just because a line appears. Use it to time your entry at a key price level.
3. Silver Bullet Zones (Session Awareness) The indicator highlights the three most powerful 60-minute windows in the market (New York Time).
London SB (03:00 - 04:00): Often sets the high or low of the London session.
New York SB (10:00 - 11:00): The classic "Silver Bullet" continuation or reversal window.
Tokyo SB (22:00 - 23:00): Key for crypto and Asian forex pairs.
PRO TIP: Managing the Noise
For High Timeframes (4H, Daily): Go to Settings and uncheck "Silver Bullet Zones." These zones are designed for intraday "zoning in" (1m to 15m charts) and will look cluttered on a Daily chart.
For Precision (1m - 15m): Turn the Silver Bullet Zones ON to see exactly when the algorithmic windows open.
Technical Features & Compliance
Zero Repainting: Signals are confirmed on candle close. History is never altered.
Floating Fix: Built with xloc.bar_time to ensure all drawings stay locked to their exact historical moment, regardless of chart scaling.
Memory Optimized: Automatically cleans up old lines to maintain maximum performance on all devices.
Penunjuk Pine Script®
Mizan Trinity OscillatorTitle: Mizan Trinity Oscillator
Description:
Introduction: The Truth Behind Price Price action can be deceptive. A rising candle does not always mean a rising trend. In the philosophy of Mizan, a price movement is an "Ontological Illusion" unless it is supported by three fundamental forces: Velocity, Money, and Mass.
The Mizan Trinity Oscillator (MTO) is designed to synthesize these three forces into a single, highly responsive frequency line. It acts as the "Engine Gauge" for your chart, telling you if the trend has fuel or if it's running on fumes.
The Trinity Synthesis (The Formula) Unlike standard oscillators (RSI, Stochastic) that only look at price, MTO combines three distinct data sets using a weighted "L-Score" algorithm:
Velocity (CCI): Represents the speed and momentum of the move. (Default Weight: 35%)
Money Flow (CMF): Represents the fuel injected into the market. (Default Weight: 45%)
Mass (OBV): Represents the volume weight behind the move. (Default Weight: 20%)
Unique Innovation: "Silence Mode" The most critical feature of MTO is its ability to stop talking.
The Gray Thin Line: When the market enters a "Choppy/Turbulent" phase or when volume drops significantly, the oscillator turns GRAY and becomes THIN.
Meaning: This is "Noise". The system is telling you that the data is unreliable. Do not trade when the line is gray.
How to Use:
Trend Following:
Thick Turquoise Line: Positive Flow (Valid Buying Pressure).
Thick Orange Line: Negative Flow (Valid Selling Pressure).
The "Ontological Divergence":
If Price is making a New High, but MTO is dropping (Orange) or turning Gray, this is a major warning. It means the "Smart Money" has stopped buying, and the price is rising only due to retail inertia. This is often a Bull Trap.
The Sniper Entry:
Wait for the line to switch from Gray (Silence) to a thick colored line. This indicates that clarity has returned to the market.
Dashboard: The panel on the top right shows the current Trinity Score (0-100) and the market Mode (Positive, Negative, or Silent).
Author's Note: This tool is created to help traders filter out the noise. If the oscillator is Gray, sit on your hands. If it's diverging, protect your capital. Trade the truth, not the illusion.
Penunjuk Pine Script®
[CT] MTF CISD w/ExtensionsThis indicator is a modified version of “Change in State of Delivery CISD” originally created by © AlgoAlpha and released under the Mozilla Public License 2.0. The core CISD logic, including how the script identifies qualifying bullish and bearish state changes and how it draws the original CISD levels, comes from AlgoAlpha’s work. The version you are using has been modified by © ChaosTrader63 to add multi time frame CISD functionality, optional HTF labeling and styling controls, and a configurable method to extend a user selected number of the most recent current time frame CISD levels beyond the last candle.
At its core, CISD is designed to identify moments when price behavior suggests a meaningful shift in control, where one side of the market has effectively “taken delivery” and the prior state has changed. The script watches price swings, then tracks specific candle state transitions that can act like triggers. When the conditions are met, it prints a CISD level as a horizontal line originating from the candle that defined the trigger and extending to the detection candle, creating a clear reference level that can behave like a decision point for future price interaction. In practice, those levels often act as areas where price may react, reject, or accept, because they represent the point where a meaningful state change was confirmed by price behavior rather than by a simple moving average or lagging trend filter.
The indicator also includes swing based liquidity tracking to provide context around potential liquidity events. It detects swing highs and swing lows using a pivot period you control, then maintains those swing levels as “liquidity lines” until they are either mitigated or expire after a set number of bars. When price wicks into one of those swing liquidity levels and confirms the mitigation, the script records that event. If a CISD trigger happens shortly after, and the new state change occurs with evidence that opposing liquidity was just taken, the script flags that as a stronger event by marking it on the chart. This is meant to separate normal CISD signals from those that occur after a sweep, because a sweep plus a decisive state change is often more meaningful than a state change that happens in the middle of noise.
The user controls in the calculations section determine how sensitive or selective the CISD detection is. The noise filter controls how strict the script is about qualifying the internal structure that leads to a CISD event. Higher values reduce noise and typically produce fewer, more selective CISD levels, while lower values will produce more frequent levels that may be less reliable in choppy conditions. The swing period controls how far back the script looks when identifying pivot highs and lows, which changes how “major” a swing must be to count as liquidity. The expiry bars setting controls how long older liquidity levels remain active before they stop updating or are removed, and the liquidity lookback determines how recently a swing mitigation must have occurred for the script to treat the CISD as happening with a sweep.
Visually, the script colors candles based on the current CISD trend state. When a bearish CISD is detected, the trend state flips bearish and candles are shaded using the bearish color with a user controlled transparency blend, and when a bullish CISD is detected the trend state flips bullish and candles are shaded using the bullish color. This makes the tool useful not only for marking levels, but also for keeping a simple “state” view on the chart so you can see when the indicator believes control has shifted. If you enable the option to use HTF trend for candle coloring, then the candle shading can reflect the higher time frame trend state instead of the local chart state, which is helpful when you want to trade a lower time frame while staying aligned with the higher time frame CISD bias.
The modifications add a higher time frame CISD layer so you can see more significant CISD levels from a chosen HTF while trading on a lower time frame chart. When enabled, the script computes CISD on the higher time frame through a request security call and then draws HTF CISD lines onto your current chart. You can require confirmed HTF signals only, which means the HTF CISD will print only after the HTF candle closes, reducing repaint style behavior and preventing the level from appearing and disappearing mid-candle. The HTF CISD lines keep the original bullish and bearish color scheme, and you can choose whether they render as solid or dashed to visually separate HTF structure from current time frame structure. The script can also place a label on the HTF CISD level, showing the selected HTF, for example “15 min HTF CISD,” and you can control the label background color, text color, size, and a horizontal offset so the label sits to the right of the current price rather than directly on top of the level.
The other key modification is the extension system for the current time frame CISD levels. The original script draws CISD levels from the origin candle to the detection candle, which is the “normal” behavior and is still preserved for all CISD levels. The enhancement allows you to choose how many of the most recent current time frame CISD levels you want to extend past the last candle by a defined number of bars. This is designed for traders who want their freshest decision levels projected into the future so they can be used as immediate references for reaction, acceptance, rejection, entries, or targets, without cluttering the chart by extending every single historical level. Because the extension uses the original line and simply moves the line’s end point to bar index plus your offset, it extends cleanly from the true starting point with no visual gap, and it automatically updates as new bars print. When a level is no longer within the most recent group, the script restores the original endpoint so older CISD lines revert back to normal and do not continue extending.
To use the indicator effectively, start by choosing whether you want it to be a current time frame decision tool, a higher time frame structure tool, or both. If you are trading lower time frames, enabling HTF CISD with confirmed only is usually the cleanest way to stay aligned with the dominant structure while avoiding levels that shift during an unclosed HTF candle. Then tune the swing period and noise filter to your market. If you are seeing too many levels in chop, increase the noise filter and consider a longer swing period so only larger structural transitions qualify. If you are missing important shifts, reduce the noise filter slightly so the script becomes more responsive. For execution, treat CISD levels like state change reference prices. When price returns to a bullish CISD level, look for acceptance above it to confirm continuation or rejection below it to warn of failure, and do the inverse for bearish levels. The liquidity sweep markers are especially useful as a context filter, because a CISD that occurs after a sweep often represents a more forceful transition where one side grabbed liquidity and then reversed state, which can create cleaner follow-through or stronger reaction zones.
Overall, this modified version keeps AlgoAlpha’s original CISD and liquidity framework intact, but adds the two things traders typically need when using a state change concept in live execution: the ability to overlay higher time frame CISD structure on a lower time frame chart, and the ability to project only the most relevant recent CISD levels into future bars so the levels are immediately actionable without turning the chart into a wall of extended lines.
Penunjuk Pine Script®
Polynomial Regression Clustering [LuxAlgo]The Polynomial Regression Clustering indicator utilizes K-Means clustering to categorize historical price data into discrete levels and fits polynomial regression curves to each identified cluster.
This tool allows traders to visualize non-linear trends within specific price regimes, providing a unique perspective on support, resistance, and price momentum.
🔶 USAGE
The indicator identifies "K" number of clusters based on the vertical distribution of price over a user-defined lookback period. Each cluster represents a group of bars that share similar price levels, and a polynomial regression line is calculated to represent the localized trend for that specific group.
🔹 Cluster Identification
The script groups price action into color-coded dots. By default, it uses the HL2 (Average price) to determine which cluster a bar belongs to. This is particularly useful for identifying historical value areas where price has spent a significant amount of time.
🔹 Polynomial Fitting
Unlike standard linear regression, which produces a straight line, the polynomial regression curves can bend to fit the data more accurately.
A Polynomial Degree of 1 will result in a standard linear regression (straight lines). A Polynomial Degree of 2 or higher allows for curves that capture parabolic moves or cyclical swings within each cluster.
🔹 Future Projections
The current active cluster (the one containing the most recent price point) can be projected into the future. This allows you to see where the localized trend for the current price regime is heading based on the mathematical fit of historical data.
🔶 DETAILS
🔹 K-Means Algorithm
The script uses an iterative K-Means algorithm to find the optimal centroids (center points) for the price levels. It calculates the distance of each price point to the nearest centroid and refines the centroid position until the clusters are stable or the maximum iterations are reached.
🔹 Regression Logic
Once price points are assigned to a cluster, the script solves for the coefficients of a polynomial equation that minimizes the distance between the line and the cluster's data points. To ensure numerical stability with higher degrees, the horizontal (time) axis is normalized before performing matrix operations.
🔶 SETTINGS
🔹 K-Means
Number of Clusters (K): Defines how many price levels the indicator should look for. Higher values create more granular levels. Lookback Period: The number of recent bars used to perform the clustering and regression calculation. Max Iterations: The maximum number of refinement steps for the K-Means algorithm.
🔹 Regression
Polynomial Degree: Controls the "bend" of the regression lines. Higher degrees allow for more complex curves. Extend All Fits to Current Bar: When enabled, the regression lines for all historical clusters are extended to the rightmost edge of the chart. Project Current Cluster into Future: Extends the current regime's regression line into the future (empty space) using a dashed line.
🔹 Visual Style
Show Regression Lines: Toggles the visibility of the polynomial curves. Show Cluster Dots: Toggles the visibility of the colored dots on each price bar. Dot Size: Adjusts the size of the cluster dots. Cluster Colors: Customizable colors for each of the identified clusters.
Penunjuk Pine Script®
Dynamic Trend-Based Fibonacci Extension💡 This indicator is a sophisticated, automated technical analysis tool designed to identify high-probability trend continuation setups using the principles of market structure and Fibonacci geometry. By algorithmically detecting "A-B-C" price structures (Pivot -> Impulse -> Retracement), it projects dynamic Fibonacci Extension levels to forecast potential price targets for the next impulsive move (Wave C to D). Unlike static drawing tools, this script adapts to market volatility and features an advanced invalidation engine to keep your charts clean and your risk managed.
✨ Originality and Utility
Traders often struggle with the subjectivity of drawing Fibonacci extensions manually. This script solves that by standardizing the identification of market structure using a proprietary ZigZag algorithm enhanced with Average True Range (ATR) for volatility-adjusted sensitivity.
Key unique features include:
Automated Structure Detection: Instantly spots Bullish (Higher High, Higher Low) and Bearish (Lower Low, Lower High) sequences without manual input.
Dynamic Invalidation: The script monitors price action in real-time. If price breaks the invalidation point (Point A), the structure is immediately "grayed out" or deleted, preventing you from trading based on broken setups.
Golden Zone Targeting: Highlights the high-probability reversal zone between the 1.5 and 1.618 extensions, often associated with the completion of a measured move.
JSON Alerting: Built-in support for algorithmic trading with structured JSON payloads (Entry, TP, SL) ready for webhook integration.
🔬 Methodology and Concepts
The core logic operates on a three-step algorithmic sequence:
1. Pivot Identification: The script uses a "ZigZag" approach to find significant swing highs and lows. It employs an ATR-based threshold (or fixed deviation) to filter out market noise, ensuring only significant structural points are considered.
2. Geometric Validation: It evaluates the last three pivot points (A, B, C) to confirm a valid trend structure.
Bullish Setup: Point C must be higher than Point A but lower than Point B (a valid retracement).
Bearish Setup: Point C must be lower than Point A but higher than Point B.
3. Projection Mathematics: Once a valid ABC structure is locked, the script calculates extension targets using the standard formula: Target = Price C + ((Price B - Price A) * Ratio) . It also supports Logarithmic Scale calculations for assets with exponential growth, such as cryptocurrencies, ensuring proportional accuracy over large price ranges.
🎨 Visual Guide
The indicator paints a clear, detailed roadmap on your chart. Here is how to interpret the visual elements:
● Structure Lines
Solid Line (A to B): Represents the initial "Impulse" leg of the move.
Dashed Line (B to C): Represents the "Retracement" or corrective leg.
Green Structures: Indicate Bullish setups (looking for long entries).
Red Structures: Indicate Bearish setups (looking for short entries).
Gray/Dimmed Structures: These are invalidated setups where the price has breached the Stop Loss level (Point A).
● Extension Levels (Targets)
The script projects the following key Fibonacci ratios extending from Point C:
0.618 (Wave 5): An early profit-taking level, often corresponding to a truncated 5th wave.
1.0 (Measured Move): Where the extension equals the length of the initial impulse (AB = CD pattern).
1.272 (Harmonic): A common extension level for corrective structures or deep pullbacks.
Golden Zone (1.5 - 1.618): A highlighted fill area. The 1.618 level (Solid Line) is the "Golden Ratio" and is statistically one of the most significant targets in trending markets, often labeled as "Wave 3".
● Labels
Points A, B, C: Clearly marks the swing points defining the structure.
Right-Side Labels: Display the Ratio (e.g., 1.618) and the exact Price Level for easy order placement.
📖 How to Use
This tool is best used as a trend-following system.
1. Trend Identification
Wait for a new Solid Colored Structure (Green or Red) to appear. This confirms that a valid ABC retracement has occurred.
2. Entry Strategy
The "Trigger" is generally the reversal from Point C. Aggressive traders enter near C, while conservative traders may wait for a breakout above B.
Stop Loss: Place your SL just beyond Point A . If price breaks A, the script will automatically gray out the structure, signaling invalidation.
3. Profit Taking
Use the projected extension lines as dynamic Take Profit (TP) zones:
TP1: 1.0 (The Measured Move).
TP2: The Golden Zone (1.5 to 1.618). This is often the strongest target for a Wave 3 impulsive move.
4. Automation
For automated traders, create an alert using the "Any alert() function call" option. The script outputs a JSON string containing the Action, Ticker, Entry Price, TP (1.618), and SL (Point A).
⚙️ Inputs and Settings
You can fully customize the script to fit your asset class and timeframe:
● ZigZag Detection
Pivot Lookback Depth: (Default: 5) Determines how many bars to check left/right for a pivot. Higher numbers find larger, more significant structures.
Use ATR-Based Threshold: (Default: True) Adapts the sensitivity to market volatility.
ATR Multiplier: (Default: 2.0) Adjusts how much price must reverse to form a new leg.
● Structure Invalidation
Enable Structure Invalidation: (Default: True) Toggles the logic that checks if Point A is breached.
Invalidation Action: Choose "Gray Out" to keep history visible but dimmed, or "Delete" to remove failed setups entirely.
● Fibonacci Settings
Use Logarithmic Scale: Essential for crypto or long-term timeframe analysis.
Show 0.618 / 1.0 / 1.272 / 1.618: Toggles individual levels on/off to declutter the chart.
Extend Lines Right: Extends the target lines into the future for better visibility.
● Display Settings
Keep Last N Structures: Controls how many historical structures remain on the chart to prevent visual clutter.
Show Elliott Wave Labels: Adds theoretical wave counts (e.g., "Wave 3") to the ratio labels.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in Fractal Market Geometry and Elliott Wave Theory .
1. The Golden Ratio (Phi - 1.618):
Mathematically derived from the Fibonacci sequence, the 1.618 ratio is omnipresent in natural growth patterns. In financial markets, it represents the psychological "tipping point" of crowd behavior during an impulsive trend. This script emphasizes the 1.618 extension as the primary target for a "Wave 3," which is academically cited as typically the longest and strongest wave in a 5-wave motive sequence.
2. Harmonic AB=CD Patterns:
The inclusion of the 1.0 extension validates the "Measured Move" concept. Statistically, markets often move in symmetrical legs where the secondary impulse (CD) equals the magnitude of the primary impulse (AB).
3. Volatility Normalization (ATR):
By utilizing the Average True Range (ATR) for pivot detection, the script adheres to statistical volatility normalization. This ensures that the structures identified are statistically significant relative to the asset's current volatility regime, rather than relying on arbitrary percentage moves which fail across different asset classes.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Penunjuk Pine Script®
Global Sessions & Kill Zones [jpkxyz]Global Sessions & ICT Kill Zones Indicator
Overview
The Global Sessions & ICT Kill Zones indicator is a comprehensive trading tool designed to help traders identify and visualize the most critical time periods in the 24-hour forex and futures markets. This indicator combines traditional trading session analysis with Inner Circle Trader (ICT) Kill Zone methodology, providing traders with a complete picture of when institutional activity and liquidity are at their peak.
Trading Theory & Foundation
Session-Based Trading
The forex market operates 24 hours a day across four major trading sessions: Sydney, Tokyo, London, and New York. Each session has distinct characteristics in terms of volatility, liquidity, and price behavior. Understanding these sessions is crucial because:
Volatility Patterns: Each session exhibits unique volatility profiles based on which markets are open and which institutional players are active
Liquidity Concentration: Major price movements tend to occur when multiple sessions overlap, as more market participants are active simultaneously
Market Structure: Session highs and lows often act as key support and resistance levels that price respects throughout the trading day
Time-Based Strategies: Many professional traders structure their strategies around specific sessions that align with their preferred instruments and trading style
ICT Kill Zones
The Inner Circle Trader (ICT) methodology emphasizes specific time windows called "Kill Zones" - periods when institutional algorithms and smart money are most active. These time windows represent optimal trading opportunities because:
Institutional Activity: Banks, hedge funds, and large institutions execute their orders during these predictable time windows
Algorithmic Trading: Many institutional algorithms are programmed to operate during these specific periods
Liquidity Sweeps: Kill Zones often feature stop hunts and liquidity grabs before directional moves
Higher Probability Setups: Price is more likely to respect technical levels and follow through on setups during these periods
The four ICT Kill Zones are:
Asian Kill Zone (00:00-03:00 UTC): Early Asian session institutional activity
London Kill Zone (07:00-10:00 UTC): London open and European institutional entry
New York Kill Zone (12:00-14:00 UTC): New York open and North American institutional entry
London Close Kill Zone (15:00-17:00 UTC): European session close and position squaring
What This Indicator Visualizes
Trading Session Boxes
The indicator draws high-to-low range boxes for each major trading session:
Sydney Session (21:00-06:00 UTC): Captures the Australian and early Asian trading activity
Tokyo Session (00:00-09:00 UTC): Represents the main Asian trading period
London Session (08:00-17:00 UTC): Covers the European trading hours
New York Session (13:00-22:00 UTC): Encompasses North American trading activity
Each session box displays:
The session's high and low price levels
Customizable colored borders and fills
Labels showing the exact high and low values
Real-time updates as price moves within the active session
Session Overlaps
The indicator automatically identifies and highlights all session overlaps with distinct colored boxes:
Sydney/Tokyo Overlap: Asian liquidity concentration
Tokyo/London Overlap: Asian-European transition period
London/New York Overlap: The most volatile period with maximum liquidity
Sydney/New York Overlap: Late US session into early Asian session
These overlaps are crucial because they represent periods of increased liquidity when multiple major markets are operating simultaneously, often leading to significant price movements and breakouts.
ICT Kill Zones
Kill Zones are displayed as vertical background highlights that span the entire chart height during their active periods:
Visual clarity: Semi-transparent colored backgrounds that don't obstruct price action
Label identification: Each Kill Zone is labeled at its start for easy recognition
Overlay capability: Kill Zones overlay on top of session boxes, allowing you to see both simultaneously
Independent control: Each Kill Zone can be toggled on/off individually
How Traders Can Use This Indicator
Entry Timing
Wait for Kill Zones: Use Kill Zones as your primary trading windows to increase the probability of institutional support for your trades
Session Boundaries: Look for breakouts or reversals at session open/close times when new participants enter the market
Overlap Periods: Focus on high-conviction setups during session overlaps when liquidity is highest
Support & Resistance
Session Highs/Lows: Previous session highs and lows often act as key support/resistance levels
Sweep Setups: Watch for price to sweep session highs/lows during Kill Zones, then reverse (liquidity grab)
Range Trading: Trade within session ranges during low-volatility periods, breakout during overlaps
Risk Management
Volatility Awareness: Adjust position sizing based on which session is active (London/NY overlap = highest volatility)
Stop Placement: Position stops outside of key session levels to avoid being caught in normal intraday ranges
Time-Based Exits: Consider exiting or tightening stops as sessions close and liquidity decreases
Strategy Development
Session-Specific Strategies: Develop different approaches for different sessions based on your instrument's behavior
Kill Zone Confirmation: Require setups to occur within Kill Zones for higher probability trades
Backtesting Framework: Use historical session and Kill Zone data to backtest time-based strategies
Full Customizability
Session Customization
Every aspect of each trading session can be customized:
Toggle Visibility: Show/hide any session independently
Time Adjustment: Modify start and end hours to match your broker's server time or personal preference
Color Schemes: Customize box colors and border colors for each session
Transparency: Adjust fill transparency to see price action clearly while maintaining visual reference
Kill Zone Customization
Complete control over ICT Kill Zone display:
Individual Toggles: Enable or disable each Kill Zone independently based on your trading style
Color Selection: Choose distinct colors for each Kill Zone (default: Green, Blue, Yellow, Red)
Transparency Control: All Kill Zones use 70% transparency by default, fully customizable
Label Display: Toggle Kill Zone labels on/off via the main label settings
Visual Preferences
Border Control: Toggle session box borders on/off for cleaner charts
Label Size: Choose from tiny, small, normal, large, huge, or auto-sizing for all labels
Label Colors: Customize label background and text colors to match your chart theme
Box Transparency: Set individual transparency levels for each session and overlap
Overlap Customization
All four session overlaps have independent color controls:
Sydney/Tokyo Overlap
Tokyo/London Overlap
London/New York Overlap
Sydney/New York Overlap
Technical Features
Midnight Handling
The indicator uses advanced hour-based detection that seamlessly handles sessions crossing midnight (like Sydney's 21:00-06:00 UTC timeframe) without breaking the visualization into separate boxes.
Real-Time Updates
Active Sessions: Boxes extend and update in real-time as price moves during active sessions
High/Low Tracking: Session highs and lows are continuously updated until the session closes
Kill Zone Detection: Background colors appear/disappear precisely at Kill Zone boundaries
Clean Chart Integration
Minimal Clutter: Only shows active and recently completed sessions
Overlay Friendly: Works seamlessly with other indicators and doesn't obstruct price action
Performance Optimized: Efficient code that doesn't slow down chart rendering
Ideal For
Forex Traders: Track the four major forex sessions and plan trades around overlaps
Futures Traders: Identify when specific futures markets have peak activity
ICT Students: Implement Inner Circle Trader concepts with visual Kill Zone references
Session Traders: Build strategies around specific session characteristics
Scalpers & Day Traders: Focus on high-liquidity periods for tighter spreads and better fills
Swing Traders: Use session levels as key support/resistance for multi-day trades
Best Practices
Start Simple: Enable only the sessions and Kill Zones relevant to your instruments
Color Code Strategically: Use colors that stand out on your chart theme but don't overwhelm
Combine with Price Action: Use session levels and Kill Zones as context, not as standalone signals
Match Your Timezone: Adjust session times if your broker uses non-UTC server time
Focus on Overlaps: Pay special attention to London/New York overlap for highest-probability setups
Journal Performance: Track which sessions and Kill Zones work best for your strategy
Conclusion
The Global Sessions & ICT Kill Zones indicator provides traders with institutional-grade time-based analysis in a highly customizable, visually clear format. By combining traditional session analysis with modern ICT Kill Zone theory, traders gain a comprehensive understanding of when markets are most likely to move and where key levels are established. Whether you're a scalper looking for the highest liquidity periods or a swing trader using session levels for support/resistance, this indicator adapts to your needs while keeping your charts clean and professional.
Trade smarter by trading when the market is most active and predictable.
Penunjuk Pine Script®
RLP V4.3 -Long Term Support/Resistance Levels (Refuges-Shelters)// Introduction //
We have utilized the Zigzag library technology from ©Trendoscope Pty Ltd for Zigzag generation, allowing users the freedom to choose which of the different Zigzags calculated by Trendoscope as "Levels and Sub-Levels" is most suitable for generating ideal phases for evaluation and selection as "most preponderant phases" over long-term periods of any asset, according to its particular behavior based on its age, volatility, and price trend.
// Theoretical Foundation of the Indicator //
Many traditional institutional investors use the latest higher-degree market phase that stands out from others (longest duration and greatest price change on daily timeframe) to base a Fibonacci retracement on whose levels they open long-term positions. These positions can remain open to be activated in the future even years in advance. The phase is considered valid until a new, more preponderant phase develops over time, at which point the same strategy is repeated.
// Indicator Objectives //
1) Automatically find the latest most preponderant long-term phase of an asset, analyzing it on daily timeframe while considering whether the long-term market trend is bullish or bearish.
2) Draw a Fibonacci Retracement over the preponderant phase (reversed if the phase is bullish).
3) The indicator automatically numbers and locates the 3 most preponderant phases, selecting Top-1 for initial Fibo drawing.
4) If the user disagrees with the indicator's automatic selection, they have the freedom to choose any of the other 2 Top phases for the Fibo drawing and its levels.
5) If the user disagrees with the amplitude or frequency of the initially drawn Zigzag phases, they can modify the Zigzag calculation algorithm parameters until one of the Top-3 matches the phase they had in mind.
6) As an experimental bonus, the indicator runs a popularity contest (CP) of "bullseye" daily price (OHLC) matches, subject to user-defined tolerance ranges, against all Fibo levels of the Top 3 selected phases, to verify which phase the market prices are validating as the most popular for placing trades. Contest results are displayed in the POP. CONTEST column of the Top-3 phases table. If the contest detects a change in the winning phase, a switch can be enabled to activate an alert that the user can utilize with TradingView's alert creator to display an alarm, send an email, etc.
7) This indicator was designed for users to find the preponderant long-term phase of their assets and manually record the date-price coordinates of the i0-i1 anchors of the preponderant phase. The Top-1 phase coordinates are shown in the Top-3 phases table where they can be captured. The date-price coordinates of all HH and LL pivots, from all Zigzag phases, can be displayed via a switch. With the pivots, the user can select a different phase than those automatically found by the indicator, according to the conclusions of their own research. Subsequently, the user can forget about this RLP indicator for a while and move on to apply in their normal trading our RLPS indicator (Simplified Long-Term Shelters), in which they can draw and simultaneously track the long-term shelters of up to 5 different assets, simply by entering their corresponding date-price coordinates, previously located with this RLP indicator or through their own observation.
// Additional Notes //
1) As of the this V4.3 publication date (01/2026), the Zigzag generation parameters were adjusted by default to find the long-term preponderant phases for the following assets: Bitcoin, Ethereum, Bitcoin futures BTC1! (all generated due to the 2020-2021 pandemic). It also provides by default the confirmed preponderant phases for the following assets: Apple, Google, Amazon, Microsoft, PayPal, NQ1!, ES1! and SP500 Cash.
2) Prices, phases, and levels shown on the graphic chart correspond to results obtained using daily Bitcoin data from the Bitstamp exchange, BTCUSD:BITSTAMP (popular here in Europe).
3) Any error corrections or improvements that can be made to the phase selection algorithms or the CP phase popularity contest algorithm will be highly appreciated (statistics and mathematics, among many other sciences, are not particularly our strong suit).
4) We sincerely regret to inform you that we have not included the Spanish translation previously provided, due to our significant concern regarding the ambiguous rules on publication bans related to indicators.
4) Sharing motivates. Happy hunting in this great jungle!
Penunjuk Pine Script®
Ranked Exchange Volume (REV)📊 Ranked Exchange Volume (REV) - Multi-Venue Volume Distribution Visualizer
## Stop Guessing Where the Real Volume Is. See It.
Most traders look at aggregate volume and miss the critical story: **where** that volume actually traded. Ranked Exchange Volume (REV) solves this by revealing the complete liquidity landscape across multiple trading venues in a single, elegant visualization.
This isn't just another volume indicator—it's a **dynamic stratified histogram** that automatically reorganizes exchange layers by magnitude on every bar, showing you **instant market dominance** at a glance.
---
## 🎯 The Core Innovation: Self-Organizing Volume Layers
REV displays volume from up to 10 different exchanges as **stacked, color-coded bars** where the largest volume source literally rises to the top. Watch as exchanges compete for dominance in real-time:
- **Largest volume = Top of the bar** (most visible position)
- **Smallest volume = Bottom of the bar** (foundation layer)
- **Everything in between = Automatically sorted on every candle**
This visual hierarchy makes it instantly obvious which venues are leading the market—no mental math required.
---
## ✨ Key Features
### 🔄 **Dynamic Layer Sorting**
Unlike static stacked charts, REV uses real-time stratification. If Binance had 60% of volume last bar but Coinbase takes 70% this bar, you'll see Coinbase jump to the top. The hierarchy reflects current reality, not a fixed order.
### 🎨 **10 Fully Customizable Exchange Slots**
Each exchange slot offers complete control:
- **Enable/Disable toggle** - Turn exchanges on/off without losing your configuration
- **Custom prefix** - Track ANY exchange on TradingView (BINANCE, KRAKEN, OANDA, FXCM, etc.)
- **Custom suffix** - Specify quote currency (USDT, USD, EUR, or leave blank for stocks/forex)
- **Display name** - Control how exchanges appear in the rankings table
- **Color selection** - Match your chart theme or use brand colors for instant recognition
### 📊 **Live Rankings Table**
A real-time leaderboard shows:
- **Rank** - Current position (1 = highest volume)
- **Exchange name** - With color-coded background
- **Volume** - Intelligently formatted with K/M/B units
- **Percentage** - Exact market share
**Table positioning:** Choose from 9 screen positions (top/middle/bottom × left/center/right) to keep your chart clean.
### 🧮 **Intelligent Volume Formatting**
REV automatically detects volume magnitude and applies the appropriate scale:
- **Billions** - Displays as "1.5B" for readability
- **Millions** - Displays as "342.8M"
- **Thousands** - Displays as "45.2K"
- **Full numbers option** - Toggle to see complete values (23,456,789)
The scale adjusts per-bar, so you always see the clearest representation.
### 🚨 **Three Built-In Alert Conditions**
1. **Exchange Dominance Alert (>50%)**
- Triggers when a single venue controls majority of volume
- Signals potential liquidity concentration risk or exchange-specific events
2. **Volume Spike Alert (>2x average)**
- Detects unusual aggregate activity across all venues
- Catches breakouts, news events, or institutional flow
3. **Liquidity Migration Alert**
- Fires when market leadership shifts between exchanges
- Reveals arbitrage opportunities or changing market structure
### 📈 **Optional Total Volume Line**
Display aggregate volume from all exchanges as a reference overlay with customizable color.
---
## 🌍 Market Compatibility: Beyond Crypto
While optimized for cryptocurrency (its primary design), REV works across multiple asset classes:
### ✅ **Cryptocurrency (Perfect Fit)**
**Why it excels:** Crypto trades 24/7 across dozens of global exchanges simultaneously. REV reveals true price discovery.
**Example configurations:**
- **BTC/USDT:** Compare Binance, Coinbase, OKX, Bybit, Kraken, Bitget
- **ETH/USD:** Track institutional venues (Coinbase, Kraken, Gemini) vs retail (Binance, Gate.io)
- **Altcoins:** Identify which exchanges have the deepest liquidity before placing large orders
**Trading applications:**
- **Arbitrage detection** - Spot when volume migrates between venues (price differential opportunities)
- **Exchange risk** - Don't trade on exchanges with suspiciously low volume
- **Whale tracking** - Sudden Coinbase dominance often signals institutional activity
- **Market maker identification** - Consistent Binance leadership suggests MM concentration
### ✅ **Forex (Excellent Fit)**
**Why it works:** Forex doesn't have centralized exchanges—it trades OTC across multiple broker feeds. REV shows which data providers are seeing the action.
**Example configurations:**
- **EUR/USD:** Compare OANDA, FXCM, FOREX.COM, FX_IDC, CAPITALCOM
- **GBP/JPY:** Track volatility across broker feeds
- **Exotics:** Verify liquidity before trading thin pairs
**Setup notes:**
- Leave **suffix field blank** for forex
- Use broker prefixes: OANDA, FXCM, FOREXCOM, FX_IDC, SAXO
- Symbol constructs as "OANDA:EURUSD"
**Trading applications:**
- **Spread verification** - Higher volume feeds typically offer tighter spreads
- **News event tracking** - See which brokers capture the most flow during announcements
- **Session analysis** - Watch London/NY volume shifts across different providers
### ⚠️ **Stocks (Limited But Useful)**
**Where it works:**
- **Dual-listed stocks** - Canadian companies on TSX and NYSE
- **International ADRs** - Same company, different exchanges
- **ETF arbitrage** - Compare volume across regional listings
**Example configurations:**
- **Shopify (SHOP):** Compare TSX vs NYSE volume
- **Alibaba (BABA):** NYSE vs HKEX volume
- **European stocks:** Compare primary exchange vs secondary listings
**Setup notes:**
- Leave **suffix field blank**
- Use exchange prefixes: NYSE, NASDAQ, TSX, LSE, XETRA
- Note: TradingView doesn't show per-venue volume for U.S. equities (NYSE vs BATS vs ARCA all aggregate)
**Limitations:** Most stocks trade primarily on one exchange, so REV is less valuable than in crypto/forex.
### ❌ **Futures (Not Recommended)**
Futures contracts differ by exchange (CME's ES ≠ EUREX's FESX), so volume isn't comparable.
---
## 📚 Practical Use Cases
### 1. **Pre-Trade Liquidity Analysis**
Before entering a large position, check which exchanges have sufficient volume to fill your order without slippage.
**Example:** You want to sell 50 BTC. REV shows Binance has 2,340 BTC volume this hour while a smaller exchange has only 87 BTC. Route your order to Binance for better execution.
### 2. **Exchange Risk Management**
Identify "fake volume" or wash trading by comparing venues.
**Red flag pattern:** An exchange consistently shows 10x the volume of competitors but with minimal price impact—likely artificial.
### 3. **Arbitrage Opportunity Detection**
When volume suddenly concentrates on one exchange, price premiums/discounts often appear.
**Alert pattern:** Liquidity Migration alert fires → Check price differences → Execute arb if spread exceeds fees.
### 4. **Institutional Flow Tracking**
In crypto, institutions typically use regulated exchanges (Coinbase, Kraken, Gemini).
**Pattern to watch:** Coinbase volume spikes to 60%+ dominance → Often precedes directional moves as institutions position.
### 5. **Market Structure Analysis**
Watch long-term trends in exchange dominance to understand market evolution.
**Example insight:** "Binance's market share has dropped from 70% to 45% over 6 months as traders diversify to OKX and Bybit."
### 6. **Event Response Comparison**
During major news events, see which exchanges react first.
**Analysis:** If one exchange shows volume spike 5 minutes before others, that feed may have faster news incorporation.
---
## ⚙️ Technical Specifications
- **Maximum exchanges:** 10 simultaneous venues
- **Sorting algorithm:** Bubble sort (O(n²) but optimal for n=10, prioritizes stability)
- **Update frequency:** Real-time, every bar
- **Data handling:** Gracefully ignores invalid symbols, treats NA as zero
- **Chart type:** Non-overlay (separate pane below price)
- **Performance:** Lightweight, no lag on any timeframe
---
## 🚀 Getting Started
### Quick Setup (5 Minutes)
**For Crypto Traders (Default Configuration):**
1. Add indicator to any crypto chart (BTC, ETH, SOL, etc.)
2. Works immediately—top 10 exchanges pre-configured
3. Customize colors if desired
4. Position table to your preference
**For Forex Traders:**
1. Open any forex pair (EUR/USD, GBP/JPY, etc.)
2. Go to Exchange 1 settings
3. Change prefix to "OANDA" (or your preferred broker)
4. **Clear the suffix field** (leave it blank)
5. Repeat for other exchanges (FXCM, FOREXCOM, FX_IDC, etc.)
6. Disable any unused exchange slots
**For Stock Traders (Dual-Listed):**
1. Open a dual-listed stock (e.g., SHOP on TSX)
2. Exchange 1: Prefix = "TSX", Suffix = blank, Name = "Toronto"
3. Exchange 2: Prefix = "NYSE", Suffix = blank, Name = "New York"
4. Disable exchanges 3-10
5. Compare volume distribution
### Advanced Customization
**Tracking Regional Markets:**
Want to compare Korean vs Japanese crypto exchanges?
- Exchange 1: UPBIT (Korean)
- Exchange 2: BITHUMB (Korean)
- Exchange 3: BITFLYER (Japanese)
- Exchange 4: COINCHECK (Japanese)
**Isolating Institutional Volume:**
Focus only on regulated U.S. exchanges:
- Enable: Coinbase, Kraken, Gemini
- Disable: All others
- Watch for >50% dominance alerts
---
## 👥 Who Is This For?
### ✅ **Perfect for:**
- **Crypto day traders** - Need to know where liquidity actually is
- **Arbitrage traders** - Spot cross-exchange inefficiencies
- **Institutional traders** - Validate execution venues before large orders
- **Forex scalpers** - Compare broker feeds for best execution
- **Market structure analysts** - Track long-term exchange dominance trends
### ❌ **Less useful for:**
- **Long-term investors** who don't care about short-term liquidity
- **Single-exchange traders** who never compare venues
- **Futures traders** (contracts differ by exchange)
---
## 🎓 Understanding the Visualization
**What each colored segment means:**
Each horizontal stripe represents one exchange's volume contribution. The **height** of each stripe shows that exchange's volume relative to others.
**Reading the pattern:**
- **Dominant top layer** (50%+ of bar) = Clear market leader
- **Evenly distributed layers** (10-15% each) = Fragmented liquidity
- **Sudden layer reorganization** = Liquidity migration event
- **Shrinking bottom layers** = Exchanges losing market share
**Color coding strategy:**
The indicator defaults to exchange brand colors for instant recognition:
- Yellow = Binance (their signature gold)
- Blue = Coinbase (their brand blue)
- Purple = Kraken (their brand purple)
- etc.
You can customize all colors to match your chart theme.
---
## 🔧 Configuration Tips
### **Best Practices:**
1. **Start with defaults** - Test on BTC/USDT to understand behavior
2. **Disable unused exchanges** - Cleaner visualization, faster computation
3. **Match your trading venues** - Only track exchanges you actually use
4. **Use brand colors initially** - Helps build visual pattern recognition
5. **Enable alerts strategically** - Don't spam yourself; focus on actionable signals
### **Common Mistakes to Avoid:**
❌ Tracking too many irrelevant exchanges (creates visual noise)
❌ Forgetting to clear suffix for forex/stocks (symbol won't construct properly)
❌ Using the same color for multiple exchanges (defeats instant recognition)
❌ Hiding the table permanently (you lose the percentage data)
---
## 📊 Performance Notes
- **Lightweight computation** - No impact on chart performance
- **Works on all timeframes** - 1-minute to monthly
- **Historical analysis** - Full bar history available (max_bars_back=5000)
- **Multi-monitor friendly** - Table positioning adapts to any screen layout
---
## 🆕 Future Enhancements (Planned)
While the current version is feature-complete, potential additions include:
- Volume-weighted average price (VWAP) overlay per exchange
- Historical dominance charts (which exchange led most this week/month)
- Correlation matrix (do exchanges move together or independently?)
**User feedback shapes development** - Comment with your requests!
---
## 💡 Pro Tips
### **Tip 1: The "Whale Exchange" Filter**
In crypto, institutions use Coinbase/Kraken. Enable ONLY these two exchanges to isolate professional flow and ignore retail noise.
### **Tip 2: The "Arbitrage Scanner"**
Set Liquidity Migration alert on 1-minute timeframe. When it fires, check price across exchanges—often there's a temporary premium/discount.
### **Tip 3: The "Liquidity Gauge"**
Before placing a large market order, switch to 5-minute timeframe and check last 10 bars. If your target exchange consistently has <20% of volume, you'll face slippage.
### **Tip 4: The "Market Structure Tracker"**
Take screenshots of the table weekly. Over time, you'll see exchange market share trends that reveal fundamental shifts in trader preferences.
### **Tip 5: The "News Event Validator"**
During major announcements (Fed decisions, earnings, etc.), watch which exchange shows volume first. That's where informed traders are positioned.
---
## 🎯 Summary
**Ranked Exchange Volume (REV) transforms volume analysis from a single number into a complete market microstructure view.**
Instead of seeing "1.2M volume," you see:
- Binance: 640K (53%)
- Coinbase: 280K (23%)
- OKX: 180K (15%)
- Bybit: 100K (9%)
**That's actionable intelligence.**
Whether you're executing a large crypto trade, arbitraging forex across brokers, or validating liquidity before buying a dual-listed stock, REV shows you **where the market actually is**—not where you assume it is.
---
## 📖 Quick Reference Card
| Feature | What It Does | Why It Matters |
|---------|-------------|----------------|
| **Dynamic Sorting** | Largest volume rises to top | Instant dominance identification |
| **10 Custom Slots** | Track any exchanges | Works for YOUR trading venues |
| **Live Rankings** | Real-time leaderboard | Precise market share data |
| **Smart Formatting** | Auto K/M/B scaling | Always readable, never cluttered |
| **Dominance Alert** | Warns at >50% concentration | Risk management for large orders |
| **Migration Alert** | Fires on leadership change | Arbitrage opportunity signal |
| **Spike Alert** | Detects 2x volume surges | Breakout/news confirmation |
| **Total Line** | Shows aggregate volume | Reference for overall activity |
| **Table Positioning** | 9 screen locations | Adapts to your layout |
| **Full/Short Toggle** | Complete vs abbreviated numbers | Flexibility for different assets |
---
## ✅ Installation & Support
**Install:** Add to your TradingView favorites, apply to any chart
**Updates:** Automatic through TradingView
**Support:** Comment with questions—active developer community
**Like this indicator?** Leave a ⭐ rating and share with fellow traders who need better volume intelligence.
---
**🚀 Start seeing the complete volume picture. Add Ranked Exchange Volume to your charts today.**
Penunjuk Pine Script®
ICT Flow Matrix [Ultimate]📊 Overview
ICT Flow Matrix is a comprehensive, all-in-one Smart Money Concepts (SMC) indicator built for traders who follow ICT (Inner Circle Trader) methodology. This indicator consolidates over 15 institutional trading concepts into a single, highly customizable tool—eliminating chart clutter from multiple indicators while providing deep market structure analysis.
Whether you're identifying liquidity pools, tracking order flow, or timing entries during ICT Macro windows, this indicator delivers institutional-grade analysis directly on your chart.
Pro Tip: use with ICT Market Regime Detector for clear language reads on everything.
⚡ Key Features
🎯 Price Delivery Arrays (PDAs)
Fair Value Gaps (FVG) — Automatic detection with customizable mitigation tracking (Wick Touch, 50% CE, Full Close)
Inverse FVGs (iFVG) — Identifies when FVGs fail and flip, creating new tradeable zones
Order Blocks (OB) — Last opposing candle before impulsive moves with adjustable impulse strength
Breaker Blocks (BB) — Automatically generated when Order Blocks fail
Rejection Blocks (RB) — Strong wick rejections indicating institutional defense
Volume Imbalances (VIMB) — Gaps between candle bodies showing aggressive institutional activity
📐 Market Structure & Liquidity
Market Structure Shifts (MSS) — Real-time detection of bullish/bearish structure breaks
Equal Highs/Lows (EQH/EQL) — Liquidity pools where stop losses accumulate
Buy-Side/Sell-Side Liquidity (BSL/SSL) — Swing point liquidity levels with sweep detection
Premium/Discount Zones — Visual shading showing institutional buying/selling areas
OTE Zone (61.8%-79%) — Optimal Trade Entry zone for high-probability entries
⏰ Time-Based Analysis
ICT Macro Times — All nine 30-minute algorithmic windows (02:45, 03:45, 04:45, 09:45, 10:45, 13:45, 14:45, 15:15, 15:45 NY Time)
Killzone Sessions — Asia, London, NY AM, NY PM with customizable times
Session Opens — Weekly, Monthly, Daily opening prices
Previous Period H/L — PDH/PDL, PWH/PWL, PMH/PML levels
📏 Dealing Ranges
Multi-Timeframe Ranges — 21-Day, 3-Day, Daily dealing ranges
Session Ranges — Asia, London, NY dealing ranges with equilibrium
Fibonacci Structure — 0%, 50% (EQ), 100% levels with P/D shading
🕯️ HTF Orderflow
Higher Timeframe Candles — Display up to 6 HTF candles with auto-timeframe selection
Candle Timer — Countdown to next HTF candle close
O/H/L Reference Lines — Current HTF open, high, low levels extended on chart
🎨 Visual Customization
5 Theme Presets — Dark Pro, Light Clean, Neon, Classic, Custom
Full Color Control — Customize every element individually
Zone Styles — Filled or Border Only options
Mitigation Effects — Visual fade when zones are mitigated
📋 Smart Dashboard
Real-Time Status — Structure bias, zone position, active session, OTE status
Confluence Score — Algorithmic scoring when multiple concepts align
Zone Counters — Active FVG, OB, BB, RB, VIMB, liquidity levels
3 Display Modes — Minimal, Compact, Detailed
🔔 Comprehensive Alert System
40+ Alert Conditions including:
FVG/OB/BB/RB/VIMB formation
Liquidity sweeps (EQH, EQL, BSL, SSL)
Market Structure Shifts
OTE zone entry
Macro time windows
Session opens
High confluence zones
Combo alerts (Macro + Confluence)
📖 How To Use
For Swing/Position Traders:
Enable HTF Orderflow to identify dominant trend direction
Use Dealing Ranges (3D, 21D) to find premium/discount zones
Look for OB/FVG confluence in discount (longs) or premium (shorts)
Confirm with MSS for trend alignment
For Day/Intraday Traders:
Mark the Asian Range during pre-market
Wait for London or NY AM Killzone
Enter during ICT Macro windows when price reaches FVG/OB in OTE zone
Target opposite liquidity (BSL for longs, SSL for shorts)
Confluence Trading:
Dashboard shows real-time confluence score
Score ≥ 3 indicates multiple ICT concepts aligned
Higher scores = higher probability setups
⚙️ Recommended Settings
Trading Style FVG Max OB Max History Bars HTF Candles
Scalping 3-5 2-3 100-200 3-4 Day Trading 5-8 3-5 200-400 4-5
Swing Trading 8-12 5-8 400-800 5-6
🎯 Best Practices
✅ Do:
Use HTF bias before taking LTF entries
Wait for Macro time windows for highest probability
Combine MSS + FVG/OB + OTE for A+ setups
Let mitigated zones fade (use Mitigation Fade setting)
❌ Avoid:
Trading against HTF structure
Entries outside Killzones (lower probability)
Ignoring liquidity targets
Over-cluttering chart (disable unused features)
📝 Version History
v6.0 (Current)
Complete rewrite in PineScript v6
Added ICT Macro Times with bracket/background styles
Enhanced confluence detection algorithm
Improved HTF candle rendering with multiple styles
Added Inverse FVG detection
Session-based Dealing Ranges
Performance optimizations
40+ alert conditions
⚠️ Disclaimer
This indicator is a technical analysis tool designed to visualize ICT/SMC concepts. It does not provide financial advice or guarantee profitable trades. Past performance is not indicative of future results. Always use proper risk management and trade responsibly.
💬 Support & Feedback
If you find this indicator valuable, please leave a comment or boost! Your feedback helps improve future updates.
Questions? Drop a comment below—I actively respond to all questions about the indicator's features and usage.
Penunjuk Pine Script®
Penny Stock Short Signal Pro# Penny Stock Short Signal Pro (PSSP) v1.0
## Complete User Guide & Documentation
---
# 📋 TABLE OF CONTENTS
1. (#introduction)
2. (#why-short-penny-stocks)
3. (#the-7-core-detection-systems)
4. (#installation--setup)
5. (#understanding-the-dashboard)
6. (#input-settings-deep-dive)
7. (#visual-elements-explained)
8. (#alert-configuration)
9. (#trading-strategies)
10. (#risk-management)
11. (#best-practices)
12. (#troubleshooting)
13. (#changelog)
---
# Introduction
**Penny Stock Short Signal Pro (PSSP)** is a comprehensive Pine Script v6 indicator specifically engineered for identifying high-probability short-selling opportunities on low-priced, high-volatility stocks. Unlike generic indicators that apply broad technical analysis, PSSP is purpose-built for the unique characteristics of penny stock price action—where parabolic moves, retail FOMO, and violent reversals create predictable patterns for prepared traders.
## Key Features
- **7 Independent Detection Systems** working in concert to identify exhaustion points
- **Composite Signal Engine** that requires multiple confirmations before triggering
- **Real-Time Dashboard** displaying all signal states and market metrics
- **Automatic Risk Management** with dynamic stop-loss and profit target calculations
- **Customizable Sensitivity** for different trading styles (scalping vs. swing)
- **Built-in Alert System** for all major signal types
## Who Is This For?
- **Active Day Traders** looking to capitalize on intraday reversals
- **Short Sellers** who specialize in penny stocks and small caps
- **Momentum Traders** who want to identify when momentum is exhausting
- **Risk-Conscious Traders** who need clear entry/exit levels
---
# Why Short Penny Stocks?
## The Penny Stock Lifecycle
Penny stocks follow a remarkably predictable lifecycle that creates shorting opportunities:
```
PHASE 1: ACCUMULATION
└── Low volume, tight range
└── Smart money quietly building positions
PHASE 2: MARKUP / PROMOTION
└── News catalyst or promotional campaign
└── Volume increases, price begins rising
└── Early momentum traders enter
PHASE 3: DISTRIBUTION (YOUR OPPORTUNITY)
└── Parabolic move attracts retail FOMO buyers
└── Smart money selling into strength
└── Volume climax signals exhaustion
└── ⚠️ PSSP SIGNALS FIRE HERE ⚠️
PHASE 4: DECLINE
└── Support breaks, panic selling
└── Price returns toward origin
└── Short sellers profit
```
## Why Shorts Work on Penny Stocks
1. **No Fundamental Support**: Most penny stocks have no earnings, revenue, or assets to justify elevated prices
2. **Promotional Nature**: Many rallies are driven by promoters who will eventually stop
3. **Retail Exhaustion**: Retail buying power is finite—when it's exhausted, gravity takes over
4. **Float Dynamics**: Low float stocks move fast in both directions
5. **Technical Levels Matter**: VWAP, round numbers, and prior highs become self-fulfilling resistance
---
# The 7 Core Detection Systems
PSSP employs seven independent detection algorithms. Each identifies a specific type of exhaustion or reversal signal. When multiple systems fire simultaneously, the probability of a successful short dramatically increases.
---
## 1. PARABOLIC EXHAUSTION DETECTOR
### What It Detects
Identifies when price has moved too far, too fast and is likely to reverse. This system looks for the classic "blow-off top" pattern common in penny stock runners.
### Technical Logic
```
Parabolic Signal = TRUE when:
├── Consecutive green candles ≥ threshold (default: 3)
├── AND price extension from VWAP ≥ threshold ATRs (default: 1.5)
└── OR shooting star / upper wick rejection pattern forms
```
### Visual Representation
```
╱╲ ← Shooting star / upper wick
╱ ╲ (Parabolic exhaustion)
╱
╱
╱
══════════════ VWAP
╱
╱
```
### Why It Works on Penny Stocks
Penny stocks are notorious for parabolic moves driven by retail FOMO. When everyone who wants to buy has bought, there's no one left to push prices higher. The shooting star pattern shows that sellers are already stepping in at higher prices.
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Lookback Period | 10 | 3-30 | Bars to analyze for pattern |
| Extension Threshold | 1.5 ATR | 0.5-5.0 | How far above VWAP is "parabolic" |
| Consecutive Green Bars | 3 | 2-10 | Minimum green bars for exhaustion |
---
## 2. VWAP REJECTION SYSTEM
### What It Detects
Volume Weighted Average Price (VWAP) is the single most important level for institutional traders. This system identifies when price tests above VWAP and gets rejected back below—a powerful short signal.
### Technical Logic
```
VWAP Rejection = TRUE when:
├── Candle high pierces above VWAP
├── AND candle closes below VWAP
├── AND candle is bearish (close < open)
└── AND rejection distance is within sensitivity threshold
```
### Visual Representation
```
High ──→ ╱╲
╱ ╲
VWAP ════════╱════╲═══════════
Close ←── Rejection
```
### Extended VWAP Signals
The system also tracks VWAP standard deviation bands. Rejection from the upper band (2 standard deviations above VWAP) is an even stronger signal.
### Why It Works on Penny Stocks
- Algorithms and institutions use VWAP as their benchmark
- Failed attempts to reclaim VWAP often lead to waterfall selling
- VWAP acts as a "magnet" that price tends to revert toward
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Rejection Sensitivity | 0.5 ATR | 0.1-2.0 | How close to VWAP for valid rejection |
| Show VWAP Line | True | - | Display VWAP on chart |
| Show VWAP Bands | True | - | Display standard deviation bands |
| Band Multiplier | 2.0 | 0.5-4.0 | Standard deviations for bands |
---
## 3. VOLUME CLIMAX DETECTOR
### What It Detects
Identifies "blow-off tops" where extreme volume accompanies a price spike. This often marks the exact top as it represents maximum retail participation—after which buying power is exhausted.
### Technical Logic
```
Volume Climax = TRUE when:
├── Current volume ≥ (Average volume × Climax Multiple)
├── AND one of:
│ ├── Selling into the high (upper wick > lower wick on green bar)
│ └── OR post-climax weakness (red bar following climax bar)
```
### Visual Representation
```
Price: ╱╲
╱ ╲
╱ ╲
╱ ╲
╱
Volume:
▂▃▅▇██▇▅▃▂▁
↑
Volume Climax (3x+ average)
```
### Why It Works on Penny Stocks
- Retail traders pile in at the top, creating volume spikes
- Market makers and smart money use this liquidity to exit
- Once the volume spike passes, there's no fuel left for higher prices
- The "smart money selling into dumb money buying" creates the top
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Volume MA Length | 20 | 5-50 | Period for average volume calculation |
| Climax Volume Multiple | 3.0x | 1.5-10.0 | Multiple of average for "climax" |
| Show Volume Bars | True | - | Visual volume representation |
---
## 4. RSI DIVERGENCE ANALYZER
### What It Detects
Bearish divergence occurs when price makes higher highs but RSI (momentum) makes lower highs. This indicates that momentum is weakening even as price pushes higher—a warning of imminent reversal.
### Technical Logic
```
Bearish Divergence = TRUE when:
├── RSI is in overbought territory (> threshold)
├── AND RSI is declining (current < previous < prior)
└── Indicates momentum exhaustion before price catches up
```
### Visual Representation
```
Price: /\ /\
/ \ / \ ← Higher high
/ \/
/
/
RSI: /\
/ \ /\
/ \/ \ ← Lower high (DIVERGENCE)
/ \
════════════════════ Overbought (70)
```
### Why It Works on Penny Stocks
- Penny stocks often push to new highs on weaker and weaker momentum
- Divergence signals that fewer buyers are participating at each new high
- Eventually, the lack of buying pressure leads to collapse
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| RSI Length | 14 | 5-30 | Standard RSI calculation period |
| Overbought Level | 70 | 60-90 | RSI level considered overbought |
| Divergence Lookback | 14 | 5-30 | Bars to look back for swing highs |
---
## 5. KEY LEVEL REJECTION TRACKER
### What It Detects
Identifies rejections from significant price levels where shorts are likely to be concentrated: High of Day (HOD), premarket highs, and psychological levels (whole and half dollars).
### Technical Logic
```
Level Rejection = TRUE when:
├── Price touches key level (within 0.2% tolerance)
├── AND candle is bearish (close < open)
├── AND close is in lower portion of candle range
│
├── Key Levels Tracked:
│ ├── High of Day (HOD)
│ ├── Premarket High
│ └── Psychological levels ($1.00, $1.50, $2.00, etc.)
```
### Visual Representation
```
HOD ─────────────────────────────────
╱╲ ← Rejection
╱ ╲
╱ ╲
╱
─────────────────────────────────
PM High ─────────────────────────────
```
### Why It Works on Penny Stocks
- **HOD**: The high of day is where the most traders are trapped long. Failure to break HOD often triggers stop-loss cascades
- **Premarket High**: Represents overnight enthusiasm; failure to exceed often means the "news" is priced in
- **Psychological Levels**: Round numbers ($1, $2, $5) attract orders and act as natural resistance
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Track HOD Rejection | True | - | Monitor high of day |
| Track Premarket High | True | - | Monitor premarket resistance |
| Track Psychological Levels | True | - | Monitor round numbers |
---
## 6. FAILED BREAKOUT DETECTOR
### What It Detects
Identifies "bull traps" where price breaks above resistance but immediately fails and closes back below. This traps breakout buyers and often leads to accelerated selling.
### Technical Logic
```
Failed Breakout = TRUE when:
├── Price breaks above recent high (lookback period)
├── AND one of:
│ ├── Same bar closes below the breakout level
│ └── OR following bars show consecutive red candles
```
### Visual Representation
```
╱╲
╱ ╲ ← False breakout
Recent High ══╱════╲════════════════
╱ ╲
╱ ╲
╱ ╲ ← Trapped longs panic sell
```
### Why It Works on Penny Stocks
- Breakout traders enter on the break, providing exit liquidity for smart money
- When the breakout fails, these traders become trapped and must exit
- Their forced selling accelerates the decline
- Penny stocks have thin order books, making failed breakouts especially violent
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Breakout Lookback | 5 | 2-15 | Bars to define "recent high" |
| Confirmation Bars | 2 | 1-5 | Bars to confirm failure |
---
## 7. MOVING AVERAGE BREAKDOWN SYSTEM
### What It Detects
Monitors exponential moving averages (EMAs) for bearish crossovers and price rejections. EMA crosses often signal trend changes, while rejections from EMAs indicate resistance.
### Technical Logic
```
MA Breakdown = TRUE when:
├── Bearish EMA cross (fast crosses below slow)
└── OR EMA rejection (price tests EMA from below and fails)
```
### Visual Representation
```
╱╲ ← Rejection from EMA
╱ ╲
EMA 9 ═══════════╱════╲═══════════
╲
EMA 20 ═══════════════════╲════════
╲
Bearish cross ↓
```
### Why It Works on Penny Stocks
- EMAs smooth out the noise and show underlying trend direction
- When fast EMA crosses below slow EMA, it signals momentum shift
- Rejected attempts to reclaim EMAs show sellers are in control
### Key Settings
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Fast EMA | 9 | 3-20 | Short-term trend |
| Slow EMA | 20 | 10-50 | Medium-term trend |
| Show EMAs | True | - | Display on chart |
---
# Installation & Setup
## Step 1: Access Pine Editor
1. Open TradingView (tradingview.com)
2. Open any chart
3. Click "Pine Editor" at the bottom of the screen
## Step 2: Create New Indicator
1. Click "Open" → "New blank indicator"
2. Delete any existing code
3. Paste the entire PSSP code
## Step 3: Save and Add to Chart
1. Click "Save" (give it a name like "PSSP")
2. Click "Add to chart"
3. The indicator will appear with default settings
## Step 4: Configure Settings
1. Click the gear icon (⚙️) on the indicator
2. Adjust settings based on your trading style (see Settings section)
3. Click "OK" to apply
## Recommended Chart Setup
- **Timeframe**: 1-minute or 5-minute for scalping, 15-minute for swing shorts
- **Chart Type**: Candlestick
- **Extended Hours**: Enable if trading premarket/afterhours
- **Volume**: Can disable default volume since PSSP tracks it
---
# Understanding the Dashboard
The real-time dashboard provides at-a-glance status of all systems:
```
┌─────────────────────────────────────────┐
│ 📊 SHORT SIGNAL DASHBOARD │
├─────────────────────────────────────────┤
│ Signal Strength: 5/7 │
├─────────────────────────────────────────┤
│ ─── ACTIVE SIGNALS ─── │
│ │
│ Parabolic Exhaustion 🔴 2.1 ATR │
│ VWAP Rejection 🔴 Above │
│ Volume Climax 🔴 4.2x Avg │
│ RSI Divergence ⚪ RSI: 68 │
│ Level Rejection 🔴 @ HOD │
│ Failed Breakout 🔴 │
│ MA Breakdown ⚪ Bullish │
├─────────────────────────────────────────┤
│ ─── RISK LEVELS ─── │
│ Stop: $2.45 T1: $2.10 T2: $1.85 │
└─────────────────────────────────────────┘
```
## Dashboard Elements Explained
### Signal Strength Indicator
| Rating | Signals | Color | Interpretation |
|--------|---------|-------|----------------|
| STRONG | 5-7 | Red | High-confidence short opportunity |
| MODERATE | 3-4 | Orange | Decent setup, consider other factors |
| WEAK | 1-2 | Gray | Insufficient confirmation |
| NONE | 0 | Gray | No short signals active |
### Signal Status Icons
- 🔴 = Signal is ACTIVE (condition met)
- ⚪ = Signal is INACTIVE (condition not met)
### Contextual Metrics
Each signal row includes relevant metrics:
- **Parabolic**: Shows ATR extension from VWAP
- **VWAP**: Shows if price is Above/Below VWAP
- **Volume**: Shows current volume as multiple of average
- **RSI**: Shows current RSI value
- **Level**: Shows which level was touched (HOD, PM High, etc.)
- **MA**: Shows EMA relationship (Bullish/Bearish)
### Risk Levels
When a composite short signal fires:
- **Stop**: Suggested stop-loss level (high + ATR multiple)
- **T1**: First profit target (1:1 risk/reward)
- **T2**: Second profit target (user-defined R:R)
---
# Input Settings Deep Dive
## Group 1: Parabolic Exhaustion
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| Lookback Period | 10 | 15 | 5 | Bars analyzed for pattern |
| Extension Threshold | 1.5 | 2.0 | 1.0 | ATRs above VWAP for "parabolic" |
| Consecutive Green Bars | 3 | 4 | 2 | Minimum green bars required |
**Tuning Tips:**
- Lower thresholds = more signals but more false positives
- Higher thresholds = fewer signals but higher quality
- For very volatile penny stocks, consider higher thresholds
## Group 2: VWAP Rejection
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| Rejection Sensitivity | 0.5 | 0.3 | 0.8 | ATR distance for valid rejection |
| Show VWAP Line | True | True | True | Display VWAP |
| Show VWAP Bands | True | True | True | Display deviation bands |
| Band Multiplier | 2.0 | 2.5 | 1.5 | Standard deviations for bands |
**Tuning Tips:**
- Tighter sensitivity (lower number) = must reject very close to VWAP
- Wider bands = less frequent upper band rejections but more significant
## Group 3: Volume Climax
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| Volume MA Length | 20 | 30 | 10 | Baseline volume period |
| Climax Volume Multiple | 3.0 | 4.0 | 2.0 | Multiple for "climax" status |
| Show Volume Profile | True | True | True | Visual volume bars |
**Tuning Tips:**
- Higher multiple = only extreme volume spikes trigger
- Shorter MA = more responsive to recent volume changes
- For highly liquid stocks, consider higher multiples
## Group 4: Momentum Divergence
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| RSI Length | 14 | 21 | 7 | RSI calculation period |
| Overbought Level | 70 | 75 | 65 | Threshold for "overbought" |
| Divergence Lookback | 14 | 20 | 10 | Bars for swing high detection |
**Tuning Tips:**
- Lower overbought threshold = more frequent signals
- Shorter RSI length = more responsive but noisier
## Group 5: Key Level Rejection
| Setting | Default | Description |
|---------|---------|-------------|
| Enable | True | Master toggle for level system |
| Track Premarket High | True | Monitor premarket resistance |
| Track HOD Rejection | True | Monitor high of day |
| Track Psychological Levels | True | Monitor round numbers |
**Tuning Tips:**
- Disable premarket tracking if stock doesn't have significant premarket activity
- Psychological levels work best on stocks under $10
## Group 6: Failed Follow-Through
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| Breakout Lookback | 5 | 8 | 3 | Bars defining "recent high" |
| Confirmation Bars | 2 | 3 | 1 | Bars to confirm failure |
**Tuning Tips:**
- Shorter lookback = more breakouts detected but smaller significance
- More confirmation bars = higher confidence but later entry
## Group 7: Moving Average Signals
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Enable | True | True | True | Turn system on/off |
| Fast EMA | 9 | 12 | 5 | Short-term trend |
| Slow EMA | 20 | 26 | 13 | Medium-term trend |
| Show EMAs | True | True | True | Display on chart |
**Tuning Tips:**
- Standard 9/20 works well for most penny stocks
- Faster EMAs (5/13) for scalping, slower (12/26) for swing trading
## Group 8: Composite Signal
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Minimum Signals | 3 | 4-5 | 2 | Signals needed for trigger |
| Show Dashboard | True | True | True | Display signal table |
| Dashboard Position | top_right | - | - | Screen location |
**Tuning Tips:**
- **Minimum Signals is the most important setting**
- Higher minimum = fewer trades but higher win rate
- Lower minimum = more trades but more false signals
## Group 9: Risk Management
| Setting | Default | Conservative | Aggressive | Description |
|---------|---------|--------------|------------|-------------|
| Show Stop Levels | True | True | True | Display stop loss |
| Stop ATR Multiple | 1.5 | 2.0 | 1.0 | Stop distance in ATRs |
| Show Targets | True | True | True | Display profit targets |
| Target R:R | 2.0 | 1.5 | 3.0 | Risk:Reward for Target 2 |
**Tuning Tips:**
- Tighter stops (lower ATR multiple) = less risk but more stop-outs
- Higher R:R targets = bigger winners but fewer targets hit
## Group 10: Visual Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Bullish Color | Green | Color for bullish elements |
| Bearish Color | Red | Color for bearish/short signals |
| Warning Color | Orange | Color for caution signals |
| Neutral Color | Gray | Color for inactive elements |
---
# Visual Elements Explained
## Chart Overlays
### VWAP Line (Blue)
- **Solid blue line** = Volume Weighted Average Price
- Price above VWAP = bullish bias
- Price below VWAP = bearish bias
- **Use**: Short when price rejects from above VWAP
### VWAP Bands (Purple circles)
- Upper band = 2 standard deviations above VWAP
- Lower band = 2 standard deviations below VWAP
- **Use**: Extreme extension to upper band signals potential reversal
### EMAs (Orange and Red)
- **Orange line** = Fast EMA (9-period default)
- **Red line** = Slow EMA (20-period default)
- **Use**: Bearish cross or price rejection from EMAs confirms short
### HOD Line (Red, dashed)
- Shows the current day's high
- **Use**: Rejection from HOD is a key short signal
### Premarket High (Orange, dashed)
- Shows premarket session high
- **Use**: Failure to break PM high often signals weakness
## Signal Markers
### Individual Signal Markers (Small)
| Shape | Color | Signal |
|-------|-------|--------|
| ▼ Triangle | Purple | Parabolic Exhaustion |
| ✕ X-Cross | Blue | VWAP Rejection |
| ◆ Diamond | Yellow | Volume Climax |
| ● Circle | Orange | RSI Divergence |
| ■ Square | Red | Failed Breakout |
### Composite Short Signal (Large)
- **Large red triangle** with "SHORT" text
- Only appears when minimum signal threshold is met
- This is your primary trading signal
## Risk Level Lines
### Stop Loss (Red line)
- Calculated as: Entry + (ATR × Stop Multiple)
- Represents maximum acceptable loss
- **RESPECT THIS LEVEL**
### Target 1 (Light green line)
- First profit target at 1:1 risk/reward
- Consider taking partial profits here
### Target 2 (Dark green line)
- Second profit target at user-defined R:R
- Let winners run to this level
## Background Coloring
### Light Red Background
- Appears when composite short signal is active
- Indicates you should be looking for shorts, not longs
### Light Purple Background
- Appears during extreme parabolic extension
- Warning of potential imminent reversal
---
# Alert Configuration
## Available Alerts
### 1. Composite Short Signal
**Best for**: Primary trading signal
```
Condition: Composite short signal fires
Message: "PSSP: Short Signal Triggered - {ticker} at {close}"
```
### 2. Parabolic Exhaustion
**Best for**: Early warning of potential top
```
Condition: Parabolic exhaustion detected
Message: "PSSP: Parabolic exhaustion detected on {ticker}"
```
### 3. Volume Climax
**Best for**: Blow-off top identification
```
Condition: Volume climax occurs
Message: "PSSP: Volume climax / blow-off top on {ticker}"
```
### 4. Strong Short Setup (5+ Signals)
**Best for**: High-confidence opportunities only
```
Condition: 5 or more signals active
Message: "PSSP: STRONG short setup on {ticker}"
```
### 5. Very Strong Short Setup (6+ Signals)
**Best for**: Maximum confidence trades
```
Condition: 6 or more signals active
Message: "PSSP: VERY STRONG short setup on {ticker}"
```
### 6. Failed Breakout
**Best for**: Bull trap identification
```
Condition: Failed breakout detected
Message: "PSSP: Failed breakout detected on {ticker}"
```
### 7. Key Level Rejection
**Best for**: Resistance level plays
```
Condition: Key level rejection occurs
Message: "PSSP: Key level rejection on {ticker}"
```
## Setting Up Alerts in TradingView
1. Right-click on the chart
2. Select "Add Alert"
3. Set Condition to "Penny Stock Short Signal Pro"
4. Choose your desired alert condition
5. Configure notification method (popup, email, webhook, etc.)
6. Set expiration (or "Open-ended" for permanent)
7. Click "Create"
## Alert Strategy Recommendations
### For Active Day Traders
- Enable: Composite Short Signal, Volume Climax
- Set to: Popup + Sound
- Check frequently during market hours
### For Swing Traders
- Enable: Strong Short Setup (5+), Very Strong Short Setup (6+)
- Set to: Email + Mobile Push
- Review at key times (open, lunch, close)
### For Part-Time Traders
- Enable: Very Strong Short Setup (6+) only
- Set to: Email + SMS
- Only trade highest-conviction setups
---
# Trading Strategies
## Strategy 1: The Parabolic Fade
**Setup Requirements:**
- Parabolic Exhaustion signal ACTIVE
- Extension from VWAP ≥ 2.0 ATR
- Volume climax or declining volume on push
**Entry:**
- Short on first red candle after signal
- Or short on break below prior candle's low
**Stop Loss:**
- Above the high of the parabolic move
- Maximum: 1.5 ATR above entry
**Targets:**
- T1: VWAP (take 50% off)
- T2: Lower VWAP band or LOD
**Best Time:** 9:30-10:30 AM (morning runners)
---
## Strategy 2: VWAP Rejection Short
**Setup Requirements:**
- VWAP Rejection signal ACTIVE
- Price came from below VWAP
- Rejection candle has significant upper wick
**Entry:**
- Short on close below VWAP
- Or short on break below rejection candle low
**Stop Loss:**
- Above VWAP + 0.5 ATR
- Or above rejection candle high
**Targets:**
- T1: Lower VWAP band
- T2: Prior support or LOD
**Best Time:** Midday (11:00 AM - 2:00 PM)
---
## Strategy 3: HOD Failure Short
**Setup Requirements:**
- Level Rejection signal ACTIVE (HOD)
- Multiple tests of HOD without breakthrough
- Volume declining on each test
**Entry:**
- Short on confirmed HOD rejection
- Wait for close below the rejection candle
**Stop Loss:**
- Above HOD + 0.25 ATR (tight)
- Clear invalidation if HOD breaks
**Targets:**
- T1: VWAP
- T2: Morning support levels
**Best Time:** 10:30 AM - 12:00 PM
---
## Strategy 4: Volume Climax Fade
**Setup Requirements:**
- Volume Climax signal ACTIVE
- Volume ≥ 3x average on green candle
- Followed by bearish candle or upper wick
**Entry:**
- Short on first red candle after climax
- Or short on break below climax candle low
**Stop Loss:**
- Above climax candle high
- Give room for volatility spike
**Targets:**
- T1: 50% retracement of the run
- T2: VWAP or start of the run
**Best Time:** First hour of trading
---
## Strategy 5: The Full Composite (High Conviction)
**Setup Requirements:**
- Composite Short signal ACTIVE
- Minimum 4-5 individual signals
- Clear visual of signal markers clustering
**Entry:**
- Short immediately on composite signal
- Use market order for fast-moving stocks
**Stop Loss:**
- Use indicator's automatic stop level
- Do not deviate from system
**Targets:**
- T1: Indicator's T1 level (1:1)
- T2: Indicator's T2 level (2:1)
**Best Time:** Any time with sufficient signals
---
# Risk Management
## Position Sizing Formula
```
Position Size = (Account Risk %) / (Stop Loss %)
Example:
- Account: $25,000
- Risk per trade: 1% = $250
- Entry: $2.00
- Stop: $2.20 (10% stop)
- Position Size: $250 / 10% = $2,500 worth
- Shares: $2,500 / $2.00 = 1,250 shares
```
## Risk Rules
### The 1% Rule
Never risk more than 1% of your account on any single trade. For a $25,000 account, max risk = $250.
### The 2x Stop Rule
If your stop gets hit twice on the same stock, stop trading it for the day. The pattern isn't working.
### The Daily Loss Limit
Set a maximum daily loss (e.g., 3% of account). Stop trading if hit.
### The Size-Down Rule
After a losing trade, reduce your next position size by 50%. Rebuild after a winner.
## Short-Specific Risks
### The Short Squeeze
- Penny stocks can squeeze violently
- ALWAYS use stops
- Never "hope" a position comes back
- Size appropriately for volatility
### The Hard-to-Borrow
- Check borrow availability before trading
- High borrow fees eat into profits
- Some stocks become HTB mid-trade
### The Halt Risk
- Penny stocks can halt on volatility
- Position size for worst-case halt against you
- Halts can open significantly higher
---
# Best Practices
## DO's
✅ **Wait for multiple signals** - Single signals have lower accuracy
✅ **Trade with the trend** - Short when daily trend is down
✅ **Use the dashboard** - Check signal count before entering
✅ **Respect stops** - The indicator calculates them for a reason
✅ **Size appropriately** - Penny stocks are volatile; position small
✅ **Trade liquid stocks** - Volume ≥ 500K daily average
✅ **Know the catalyst** - Understand why the stock is moving
✅ **Take partial profits** - Secure gains at T1
✅ **Journal your trades** - Track what works and what doesn't
✅ **Time your entries** - Best shorts often come 10:30-11:30 AM
## DON'Ts
❌ **Don't short strong stocks** - If it won't go down, don't force it
❌ **Don't fight the tape** - A stock going up can keep going up
❌ **Don't average up on losers** - Adding to losing shorts is dangerous
❌ **Don't ignore the dashboard** - It exists to help you
❌ **Don't overtrade** - Quality over quantity
❌ **Don't short into news** - Wait for the reaction first
❌ **Don't trade the first 5 minutes** - Too chaotic for reliable signals
❌ **Don't hold overnight** - Penny stock gaps can destroy accounts
❌ **Don't trade without stops** - Ever.
❌ **Don't trade on tilt** - After losses, take a break
## Optimal Trading Windows
| Time (ET) | Quality | Notes |
|-----------|---------|-------|
| 9:30-9:35 | ⭐ | Too volatile, avoid |
| 9:35-10:30 | ⭐⭐⭐⭐⭐ | Best shorts, morning runners exhaust |
| 10:30-11:30 | ⭐⭐⭐⭐ | Secondary exhaustion, HOD rejections |
| 11:30-2:00 | ⭐⭐ | Midday lull, lower quality |
| 2:00-3:00 | ⭐⭐⭐ | Afternoon setups develop |
| 3:00-3:30 | ⭐⭐⭐⭐ | End of day momentum |
| 3:30-4:00 | ⭐⭐ | Closing volatility, risky |
---
# Troubleshooting
## Common Issues
### "Signals aren't appearing"
- Check that the relevant system is enabled in settings
- Ensure minimum signals threshold isn't too high
- Verify the stock has sufficient volume for calculations
### "Too many false signals"
- Increase minimum signals threshold
- Use more conservative settings (see Settings section)
- Focus on stocks with cleaner price action
### "Dashboard not showing"
- Ensure "Show Signal Dashboard" is enabled
- Check that your chart has enough space
- Try a different dashboard position
### "VWAP line is missing"
- VWAP requires intraday timeframes (1m, 5m, 15m, etc.)
- VWAP resets daily; won't show on daily+ charts
- Ensure "Show VWAP Line" is enabled
### "Stop loss seems too tight/wide"
- Adjust Stop ATR Multiple in Risk Management settings
- Lower multiple = tighter stop
- Higher multiple = wider stop
### "Alerts not triggering"
- Verify alert is set to the correct indicator
- Check that alert hasn't expired
- Ensure notification settings are configured in TradingView
## Performance Optimization
If the indicator is slow:
1. Reduce the number of visual elements shown
2. Disable unused signal systems
3. Use on fewer simultaneous charts
4. Close unused browser tabs
---
# Changelog
## Version 1.0 (Initial Release)
- 7 core detection systems implemented
- Real-time signal dashboard
- Automatic risk management calculations
- 7 alert conditions
- Full visual overlay system
- Comprehensive input settings
## Planned Features (Future Updates)
- Scanner integration for multi-stock screening
- Machine learning signal weighting
- Backtesting statistics panel
- Volume profile analysis
- Level 2 data integration (if available)
- Custom timeframe VWAP options
---
# Support & Feedback
## Reporting Issues
When reporting issues, please include:
1. TradingView username
2. Stock symbol and timeframe
3. Screenshot of the issue
4. Your indicator settings
5. Steps to reproduce
## Feature Requests
We welcome suggestions for improving PSSP. Consider:
- What specific pattern are you trying to catch?
- How would this help your trading?
- Any reference examples?
---
# Disclaimer
**IMPORTANT: This indicator is for educational and informational purposes only.**
- Past performance does not guarantee future results
- Short selling carries unlimited risk potential
- Always use proper position sizing and stop losses
- Paper trade before using real capital
- The creator assumes no liability for trading losses
- Consult a financial advisor before trading
**Trade at your own risk.**
---
*Penny Stock Short Signal Pro v1.0*
*Pine Script v6*
*© 2025*
Penunjuk Pine Script®
Kalman Absorption/Distribution Tracker 3-State EKFQuant-Grade Institutional Flow: 3-State EKF Absorption Tracker
SUMMARY
An advanced, open-source implementation of a 3-State Extended Kalman Filter (EKF) designed to track institutional Order Flow. By analyzing 1-second intrabar microstructure data, this script estimates the true Position, Velocity, and Volatility of the Cumulative Volume Delta (CVD), revealing hidden Absorption and Distribution events in real-time.
INTRODUCTION: THE SIGNAL AMIDST THE NOISE
In the world of technical analysis, noise is the enemy. Traditional indicators rely on Moving Averages (SMA, EMA) to smooth out price and volume data. The problem is the "Lag vs. Noise" paradox: to get a smooth signal, you must accept lag; to get a fast signal, you must accept noise.
This indicator solves that paradox by introducing aerospace-grade mathematics to the TradingView community: The 3-State Extended Kalman Filter (EKF).
Unlike moving averages that blindly average past data, a Kalman Filter is a probabilistic state-space model. It constantly predicts where the order flow "should" be, compares it to the actual measurement, and updates its internal model based on the calculated uncertainty of the market.
This script is not just another volume oscillator. It is a full microstructure analysis engine that digests intrabar data (down to 1-second resolution) to track the true intent of "Smart Money" while filtering out the noise of retail chop.
THE INNOVATION: WHY 3 STATES?
Most Kalman Filters found in public libraries are "1-State" (tracking price only) or occasionally "2-State" (tracking price and velocity). This script introduces a highly advanced 3-State EKF.
The filter tracks three distinct variables simultaneously in a feedback loop:
State 1: Position (The True CVD)
This is the noise-filtered estimate of the Cumulative Volume Delta. It represents the actual inventory accumulation of aggressive buyers versus sellers, stripped of random noise.
State 2: Velocity (The Momentum)
This tracks the rate of change of the order flow. Is buying accelerating? Is selling pressure fading even as price drops? This provides a leading signal before the cumulative value even turns.
State 3: Volatility (The Adaptive Regime)
This is the game-changer. The filter estimates the current volatility of the order flow (Log-Volatility). In high-volatility environments (like news events), the filter automatically widens its uncertainty bands (Covariance) and reacts faster. In low-volatility environments (chop), it tightens up and ignores minor fluctuations.
THE LOGIC: DETECTING ABSORPTION AND DISTRIBUTION
The core philosophy of this indicator is based on Wyckoff Logic: Effort vs. Result.
-- Effort: Represented by the CVD (Buying/Selling pressure).
-- Result: Represented by Price Movement.
When these two diverge, we have an actionable signal. The script uses the EKF Velocity state to detect these moments:
Absorption (Bullish)
This occurs when the EKF detects high negative Velocity (aggressive selling), but Price refuses to drop. The "Smart Money" is absorbing the sell orders via limit buys. The indicator highlights this as a Blue Event in the dashboard.
Distribution (Bearish)
This occurs when the EKF detects high positive Velocity (aggressive buying), but Price refuses to rise. Limit sellers are capping the market. The indicator highlights this as an Orange Event.
TECHNICAL DEEP DIVE: UNDER THE HOOD
For the developers and quants, here is how the Pine Script is architected using the "type" and "method" features of Pine Script v5.
1. Data Ingestion (Microstructure)
The script uses "request.security_lower_tf" to pull intrabar data regardless of your chart timeframe. This allows the script to see "inside" the bar. A 5-minute candle might look green, but the microstructure might reveal that 80% of the volume was selling absorption at the wick. This script sees that.
2. Tick Classification
Standard CVD assumes that if Price Close is greater than Price Open, all volume is buying. This is often flawed. This script offers three modes of tick handling, including a "High-Low Distribution" method that statistically apportions volume based on where the tick closed relative to its high and low.
3. The EKF Mathematics
The script implements the standard Extended Kalman Filter equations manually. It calculates the Jacobian matrix to handle the non-linear relationship between volatility and price. The "Process Noise Matrix" (Q) is dynamically scaled by the Volatility State. This means the mathematics of the indicator literally "breathe" with the market conditions—expanding during expansion and contracting during consolidation.
THE DASHBOARD & VISUALS:
The indicator features a professional-grade HUD (Heads Up Display) located on the chart table.
-- EKF State Vector: Displays the real-time Position, Velocity, and Volatility values derived from the matrix.
-- Ease of Movement (Wyckoff): Calculates how much price moves per 1,000 contracts of CVD. For example, if Price moves +5 points per 1k Buy CVD, but only -2 points per 1k Sell CVD, the "Path of Least Resistance" is clearly UP.
-- Session State: Tracks cumulative confirmed Bullish vs. Bearish events for Today, Yesterday, and the Day Before (3-Day Profile).
-- Bias Summary: An algorithmic conclusion telling you if the day is "Confirmed Bullish," "Accumulating," or "Neutral."
HOW TO TRADE THIS INDICATOR
Strategy A: The Reversal (Absorption Play)
Look for price making a Lower Low.
Look for the EKF Velocity (Histogram) to be Deep Red (High Selling Pressure).
Watch the Dashboard "Absorption" count increase.
SIGNAL: When EKF Velocity crosses back toward zero and turns grey/green, the absorption is complete. This indicates sellers are exhausted and limit buyers have control.
Strategy B: The Trend Continuation (Ease of Movement)
Check the Dashboard "Ease of Movement" section.
If "Price per +1K CVD" is significantly higher than "Price per -1K CVD", buyers are efficient.
Wait for a pullback where EKF Velocity hits the "Neutral Zone" (Gray).
SIGNAL: Enter Long when Velocity ticks positive again, aligning with the dominant Ease of Movement stats.
CONFIGURATION GUIDE:
Because this is a quant-grade tool, the settings allow for fine-tuning the physics of the filter.
-- Velocity Decay: Controls how fast momentum resets to zero. Set high (0.98) for trending markets, or lower (0.85) for mean-reverting chop.
-- Volatility Persistence: Controls how "sticky" volatility regimes are.
-- Process Noise: Increase this if the filter feels too laggy; decrease it if the filter feels too jittery (noisy).
-- Measurement Noise: Increase this to trust the Mathematical Model more than the Price Data (smoother output).
WHY OPEN SOURCE?
Complex statistical filtering is often sold behind closed doors in expensive "Black Box" algorithms. By releasing this 3-State EKF open source, the goal is to raise the standard of development on TradingView.
I encourage the community to inspect the code, specifically the "ekf_update_3state" function, to understand how matrix operations can be simulated in Pine Script to create adaptive, self-correcting indicators. And also update me for improvements.
DISCLAIMER:
This tool analyzes microstructure volume data. It requires a subscription plan that supports Intrabar inspection (Premium/Pro recommended for best results). Past performance of the Kalman Filter logic does not guarantee future results. Volume analysis is subjective and should be used as part of a comprehensive strategy.
SUGGESTED SETTINGS
-- Timeframe: Works best on 1m, 3m, or 5m charts (Intrabar data is fetched from 1S).
-- Asset Class: Highly effective on Futures (ES, NQ, BTC) and high-volume Forex/Crypto pairs where volume data is reliable.
-- Background: Dark mode recommended for Dashboard visibility.
WHAT IS A KALMAN FILTER?
Imagine driving a car into a tunnel where your GPS signal is lost.
Prediction: Your car knows its last speed (Velocity) and position. It predicts where you are every second inside the tunnel.
Update: When you exit the tunnel, the GPS connects again. The system compares where it thought you were versus where the satellite says you are.
Correction: It corrects your position and updates its estimate of your speed.
Now apply this to trading:
-- The Tunnel: Market Noise, wicks, and Fake-outs.
-- The Car: The True Market Trend.
-- This Indicator: The navigation system that tells you where the market actually is, ignoring the noise of the tunnel.
Enjoy the indicator and trade safe!
Dr. Jay Desai
(Investment Management & Derivatives Area, Gujarat University)
Penunjuk Pine Script®
Wyckoff v1.3: Effort vs ResultThis script helps a trader know the actions of smart money - clearly differentiating between valid and in-valid price moves. It is a not script that'll give you buy/sell signals, but in a very Wyckoff way give you the essentials of tape reading of the current chart.
Code Algo: From current candle to previous N candles (N is variable), it calculates a parameter called R = (high-low)/volume; for each candle, hence forming a distribution of R's. Hence, parameter R takes into account the price-volume relationship together, combined which is paramount for Wyckoff reading. Then it calculates mean (M) and standard deviation (sigma) of all those R's. Hence, M denotes the regular price movements expected from a given volume, which will also be a 'valid' move. Then we calculate ranges M-x*sigma and M+x*sigma (where x is a constant) for 3 values of x: 0.5, 1.5 and 2.2. These ranges give us deviations from M, split into 3 different levels. 1st range (E1) is closer to M, 2nd range (E2) is slightly more deviated from M, 3rd range (E3) includes large deviations and 4th range (E4) gives us largest deviations (highest Wyckoff invalidation). Henceforth, we can assess the current candles R value and check which range does it fall into. This gives us the validation degree of this current candle's move in perspective of how the market behaved previously. We assign symbol '+' for this current candle if R>M (hence showing exhaustion) or '-' if R
Penunjuk Pine Script®
Portfolio TrackerDescription
The Portfolio Tracker is a utility dashboard designed for traders who need to monitor the performance of a multi-asset portfolio directly from a single chart layout. While TradingView provides excellent charting for individual symbols, tracking the combined Profit & Loss (PnL) of a basket of 20 different securities (stocks, crypto, forex, or indices) usually requires switching tabs, using external spreadsheets, or logging into multiple exchange accounts.
This script solves that problem by allowing users to manually input their position details into a customizable table. It fetches real-time price data for each symbol and calculates the individual and total portfolio performance, including commission costs.
Why This Tool is Useful
This indicator was built to address specific pain points for active traders:
Consolidated View: Instead of checking 20 different charts to see how your positions are doing, you get a single, real-time snapshot of your entire portfolio's health on one screen.
Risk Management: By seeing the "Total PnL" and "Total Investment" in one place, traders can better understand their overall market exposure, rather than focusing on single winning or losing trades.
Flexible Accounting: The ability to switch between "Unit Price" and "Total Cost" inputs accommodates different trading styles—whether you are a scalper entering a single price or an investor averaging down with a specific total capital allocation.
CRITICAL: Input Logic & Warnings
To ensure accurate PnL calculations, users must understand the relationship between Quantity and Cost, especially when using "Total Cost (Manual)" mode.
The Golden Rule: Your Input Cost must always match the Total Quantity entered.
Example Scenario:
Imagine you buy 2 BTC at a price of $90,000 each.
Correct Entry: You must enter Quantity: 2 and Cost: 180000 ($90k x 2).
Result: If BTC drops to $85k, your Portfolio Value is $170k. The script correctly shows a PnL of -$10,000.
Result: If BTC rises to $95k, your Portfolio Value is $190k. The script correctly shows a PnL of +$10,000.
Incorrect Entry: If you enter Quantity: 2 but leave Cost at 90000 (the unit price).
Result: The script thinks you bought 2 BTC for a total of only $90k. It will instantly show a massive, incorrect profit because the math implies you bought 2 coins for the price of 1.
Please double-check your inputs. The script includes a "Sanity Check" feature to help catch these errors, but accurate data entry is the user's responsibility.
Key Features & Benefits
Multi-Asset Tracking (20 Slots): Monitor up to 20 different tickers simultaneously.
Real-Time Valuation: Uses request.security() to fetch the current market price for every symbol in the list. Your PnL updates with every tick of the market.
Flexible Cost Basis Modes:
Auto-Calc Mode: Enter Entry Price and Quantity. (Best for simple, single-entry trades).
Manual Cost Mode: Enter Total Invested Amount. (Best for averaged-down positions).
Advanced Commission Handling: Supports both Global and Individual commission rates. This provides a realistic "Net PnL" by factoring in fees on both the entry (cost basis) and the theoretical exit (current value).
Input Safety ("Sanity Check"): A logic check that compares the user's input against the current market value. If a user switches to "Total Cost" mode but leaves a small "Unit Price" value in the input field, the script flags the row to prevent irrational PnL percentages (e.g., >100,000%).
Clean & Customizable UI: The table can be positioned in 9 different locations, and inputs are hidden from the chart status line to keep the visual workspace clean.
How It Works
The script operates using a systematic loop that processes user inputs through a series of mathematical validations:
Data Acquisition: The script collects all 20 user inputs and utilizes request.security() to fetch the real-time close price for every non-empty symbol in the list.
Cost Basis Calculation:
In Auto-Calc Mode: The script calculates Raw Cost = Quantity * Input Price.
In Manual Mode: The script takes the Input Value directly as the Raw Cost.
"Round-Trip" Commission Modeling:
Entry Cost: Raw Cost * (1 + Commission%) (Fees increase your breakeven).
Exit Value: (Quantity * Current Price) * (1 - Commission%) (Fees reduce your payout).
Net PnL: Exit Value - Entry Cost.
Sanity Check Algorithm: Before displaying data, the script compares the Input Cost against the Gross Market Value (Qty * Price). If the Input Cost is less than a user-defined threshold (default 1%) of the Market Value, it triggers a warning, assuming the user forgot to update the field to a "Total Cost" figure.
Disclaimer
This script is for informational and educational purposes only. It is a tool to assist in tracking hypothetical or real positions based on manual user inputs and standard TradingView data feeds. It should not be relied upon as a primary accounting ledger or tax reporting tool. Past performance is not indicative of future results. Trading involves risk. Always verify your PnL against your actual exchange or broker statements.
Penunjuk Pine Script®
Jake's Candle by Candle UpgradedJake's Candle by Candle Upgraded
The "Story of the Market" Automated
This is not just another signal indicator. Jake's Candle by Candle Upgraded is a complete institutional trading framework designed for high-precision scalping on the 1-minute and 5-minute timeframes.
Built strictly on the principles of Al Brooks Price Action and Smart Money Concepts (SMC), this tool automates the rigorous "Candle-by-Candle" analysis used by professional floor traders. It moves beyond simple pattern recognition to read the "Story" of the market—Context, Setup, and Pressure—before ever allowing a trade.
The Philosophy: Why This Tool Was Built
Most retail traders fail for two reasons:
Getting Trapped: They enter on the first sign of a reversal (H1/L1), which is often an institutional trap.
Trading Chop: They bleed capital during low-volume, sideways markets.
This tool solves both problems with an Algorithmic Discipline Engine. It does not guess. It waits for the specific "Second Leg" criteria used by institutions and physically disables itself during dangerous market conditions.
Key Features
1. The Context Dashboard (HUD)
A professional Heads-Up Display in the top-right corner keeps you focused on the macro picture while you scalp.
FLOW: Monitors the 20-period Institutional EMA. (Green = Bull Flow, Red = Bear Flow). You are prevented from trading against the dominant trend.
STATE: A built-in "Volatility Compressor." If it says "⚠️ CHOP / RANGE", the algorithm is disabled. It protects you from overtrading during lunch hours or low-volume zones.
SETUP: Live tracking of the Al Brooks leg count. It tells you exactly when the algorithm is "Waiting for Pullback" or "Searching for Entry."
2. Smart "Trap Avoidance" Logic (H2/L2)
This tool uses the "Gold Standard" of scalping setups: The High 2 (H2) and Low 2 (L2).
It ignores the first breakout attempt (Leg 1), acknowledging it as a potential trap.
It waits for the pullback and only signals on the Second Leg, statistically increasing the probability of a successful trend resumption.
3. Volatility-Adaptive Risk Management
Stop calculating pips in your head. The moment a signal is valid, the tool draws your business plan on the chart:
Stop Loss (Red Line): Automatically placed behind the "Signal Bar" (the candle that created the setup) based on strict price action rules.
Take Profit (Green Line): Automatically projected at a 1.5 Risk-to-Reward Ratio.
Smart Adaptation: The targets expand and contract based on real-time market volatility. If the market is quiet, targets are tighter. If explosive, targets are wider.
4. The "Snap Entry" Signal
The BUY and SELL badges are not lagging. They are programmed with "Stop Entry" logic—appearing the exact moment price breaks the structure of the Signal Bar, ensuring you enter on momentum, not hope.
How to Trade Strategy
Check the HUD: Ensure FLOW matches your direction and STATE says "✅ VOLATILE".
Wait for the Badge: Do not front-run the tool. Wait for the BUY or SELL badge to print.
Set Your Orders: Once the signal candle closes:
Place your Stop Loss at the Red Line.
Place your Take Profit at the Green Line.
Walk Away: The trade is now a probability event. Let the math play out.
Technical Specifications
Engine: Pine Script v6 (Strict Compliance).
Best Timeframes: 1m, 5m.
Best Assets: Indices (NQ, ES), Gold (XAUUSD), and high-volume Crypto (BTC, ETH).
Penunjuk Pine Script®
HMA Fibo Trend RibbonHMA Fibo Trend Ribbon - Fibonacci Trend Indicator
📊 Indicator Description
This is a trend indicator based on the harmony of Fibonacci numbers. The indicator uses seven Hull Moving Averages with periods corresponding to the Fibonacci sequence: 8, 13, 21, 34, 55, 89, 144. This mathematical harmony allows the indicator to perfectly align with natural market cycles and wave structures.
🎯 Fibonacci Philosophy in Market Analysis
The Fibonacci sequence is not just a set of numbers, but a fundamental pattern found in nature, art, and financial markets. Using these periods provides:
Natural alignment with market cycles
Multifractal analysis (covering different wave levels)
Harmonious interaction between timeframes
Universal application across all timeframes
🔧 Indicator Settings
Visual Settings:
Show Main Line - Show main line (HMA 144 - golden ratio)
Show Ribbon Lines - Show the remaining 6 Fibonacci lines
Show Trend Change Labels - Show trend change labels
Show Info (Trend %) - Show info label with trend percentage
Ribbon Opacity - Ribbon transparency (0-100%)
🎨 Visualization of Fibonacci Structure
Color Harmony:
Each HMA line corresponds to a specific Fibonacci level
Collective movement creates the "Fibonacci Ribbon"
Color differentiation based on direction
Info Label:
Displays consensus of 7 Fibonacci levels
Percentage ratio of bullish/bearish lines
Color coding of the trend
📊 Interpretation of Fibonacci Signals
Consistency Levels:
7/7 lines in one direction - Perfect Fibonacci harmony
5-6/7 lines - Strong trend
3-4/7 lines - Consolidation/transition phase
0-2/7 lines - Opposite trend
🚀 Advantages of Fibonacci Approach
Natural harmony with market cycles
Universal - works on any asset and timeframe
Predictive power - anticipates reversal zones
Period synergy - signal amplification when aligned
Minimal lag - HMA responds better than regular MAs
⚡ Implementation Features
Technical Details:
Algorithm: Hull Moving Average (optimized for speed)
Periods: Pure Fibonacci sequence
Calculation: Consensus of 7 harmonic levels
Visualization: Intuitive color scheme
Performance:
Optimized for TradingView
Minimal system load
Support for all chart types
⚠️ Usage Recommendations
Combine with other Fibonacci tools
Verify signals on different timeframes
Use for trade entry filtering
Test on historical data before live trading
✍️ Author: A-Swift
📅 Version: 1.0 Fibonacci
🔗 Code: Open Source (MPL 2.0)
🧮 Basis: Fibonacci Sequence (8, 13, 21, 34, 55, 89, 144)
Fibonacci Fact:
The number 144 in the Fibonacci sequence is the square of its ordinal number (12²) and represents perfect harmony in market cycles. This makes the HMA with period 144 particularly significant for determining the main trend.
Penunjuk Pine Script®






















