How to avoid repainting when using security() - viewing optionsHow to avoid repainting when using the security() - Edited PineCoders FAQ with more viewing options
This may be of value to a limited few, but I've introduced a set of Boolean inputs to PineCoders' original script because viewing all the various security lines at once was giving me a brain cramp. I wanted to study each behavior one-by-one. This version (also updated to PineScript v6) will allow users to selectively display each, or any combination, of the security plots. Each plot was updated to include a condition tied to its corresponding input, ensuring it only appears when explicitly enabled. The label-rendering logic only displays when its related plot is active; however, I've also added an input that allows you to remove all labels, enabling you to see the price action more clearly (the labels can sometimes obscure what you want to see). Run this script in replay mode to view the nuanced differences between the 12 methods while selecting/deselecting the desired plots (selecting all at once can be overcrowded and confusing).
All thanks and credit to PineCoders--these changes I made only provide more control over what’s shown on the chart without altering the core structure or intent of the original script. It helped me, so I thought I should share it. If I inadvertently messed something up, please let me know, and I will try to fix it.
I set the defaults for viewing monthly security functions on the daily timeframe. Only the first 2 security functions plot with the default settings, so change the settings as needed. Be sure to read the original notes and detailed explanations in the PineCoders posting "How to avoid repainting when using security() - PineCoders FAQ."
Bottom line, you should use one of the two functions: f_secureSecurity or f_security, depending on what you are trying to do. Hopefully, this script will make it a little easier for the visual learner to understand why (use replay mode or watch live price action on a lower timeframe).
خدمات Pine
Swing Z | Zillennial Technologies Inc.Swing Z by Zillennial Technologies Inc. is an advanced algorithmic framework built specifically for cryptocurrency markets. It integrates multiple layers of technical analysis into a single decision-support tool, generating buy and sell signals only when several independent confirmations align.
Core Concept
Swing Z fuses trend structure, momentum oscillators, volatility signals, and price action tools to capture high-probability trading opportunities in volatile crypto environments.
Trend Structure (EMA 9, 21, 50, 200)
Short-term EMAs (9 & 21) detect immediate momentum shifts.
Longer-term EMAs (50 & 200) define the broader trend and dynamic support/resistance.
Momentum & Confirmation Layer
RSI measures relative strength and market conditions.
MACD crossovers confirm momentum shifts and trend continuations.
Volatility & Market Pressure
TTM Squeeze highlights compression zones likely to precede breakouts.
Volume analysis confirms conviction behind directional moves.
VWAP (Volume Weighted Average Price) establishes intraday value zones and institutional benchmarks.
Price Action Filters
Fibonacci retracements are integrated to identify key reversal and continuation levels.
Signals are produced only when multiple conditions agree, reducing noise and improving reliability in fast-moving crypto markets.
Features
Tailored for cryptocurrency trading across major pairs (BTC, ETH, and altcoins).
Works effectively on swing and trend-based timeframes (1H–1D).
Combines trend, momentum, volatility, and price action into a single framework.
Generates clear Buy/Sell markers and integrates with TradingView alerts.
How to Use
Apply to a clean chart for the clearest visualization.
Use Swing Z as a swing trading tool, aligning entries with both trend structure and momentum confirmation.
Combine with your own stop-loss, take-profit, and position sizing rules.
Avoid application on non-standard chart types such as Renko, Heikin Ashi, or Point & Figure, which may distort results.
Disclaimer
Swing Z is designed as a decision-support tool, not financial advice.
All backtesting should use realistic risk, commission, and slippage assumptions.
Past results do not guarantee future performance.
Signals do not repaint but may adjust as new data develops in real-time.
Why Swing Z is original & useful:
Swing Z unifies EMA trend structure, RSI, MACD, TTM Squeeze, VWAP, Fibonacci retracements, and volume analysis into a single algorithmic framework. This multi-confirmation approach improves accuracy by requiring consensus across trend, momentum, volatility, and price action — a design made specifically for the challenges and volatility of cryptocurrency markets.
Market Spiralyst [Hapharmonic]Hello, traders and creators! 👋
Market Spiralyst: Let's change the way we look at analysis, shall we? I've got to admit, I scratched my head on this for weeks, Haha :). What you're seeing is an exploration of what's possible when code meets art on financial charts. I wanted to try blending art with trading, to do something new and break away from the same old boring perspectives. The goal was to create a visual experience that's not just analytical, but also relaxing and aesthetically pleasing.
This work is intended as a guide and a design example for all developers, born from the spirit of learning and a deep love for understanding the Pine Script™ language. I hope it inspires you as much as it challenged me!
🧐 Core Concept: How It Works
Spiralyst is built on two distinct but interconnected engines:
The Generative Art Engine: At its core, this indicator uses a wide range of mathematical formulas—from simple polygons to exotic curves like Torus Knots and Spirographs—to draw beautiful, intricate shapes directly onto your chart. This provides a unique and dynamic visual backdrop for your analysis.
The Market Pulse Engine: This is where analysis meets art. The engine takes real-time data from standard technical indicators (RSI and MACD in this version) and translates their states into a simple, powerful "Pulse Score." This score directly influences the appearance of the "Scatter Points" orbiting the main shape, turning the entire artwork into a living, breathing representation of market momentum.
🎨 Unleash Your Creativity! This Is Your Playground
We've included 25 preset shapes for you... but that's just the starting point !
The real magic happens when you start tweaking the settings yourself. A tiny adjustment can make a familiar shape come alive and transform in ways you never expected.
I'm genuinely excited to see what your imagination can conjure up! If you create a shape you're particularly proud of or one that looks completely unique, I would love to see it. Please feel free to share a screenshot in the comments below. I can't wait to see what you discover! :)
Here's the default shape to get you started:
The Dynamic Scatter Points: Reading the Pulse
This is where the magic happens! The small points scattered around the main shape are not just decorative; they are the visual representation of the Market Pulse Score.
The points have two forms:
A small asterisk (`*`): Represents a low or neutral market pulse.
A larger, more prominent circle (`o`): Represents a high, strong market pulse.
Here’s how to read them:
The indicator calculates the Pulse Strength as a percentage (from 0% to 100%) based on the total score from the active indicators (RSI and MACD). This percentage determines the ratio of circles to asterisks.
High Pulse Strength (e.g., 80-100%): Most of the scatter points will transform into large circles (`o`). This indicates that the underlying momentum is strong and It could be an uptrend. It's a visual cue that the market is gaining strength and might be worth paying closer attention to.
Low Pulse Strength (e.g., 0-20%): Most or all of the scatter points will remain as small asterisks (`*`). This suggests weak, neutral, or bearish momentum.
The key takeaway: The more circles you see, the stronger the bullish momentum is according to the active indicators. Watch the artwork "breathe" as the circles appear and disappear with the market's rhythm!
And don't worry about the shape you choose; the scatter points will intelligently adapt and always follow the outer boundary of whatever beautiful form you've selected.
How to Use
Getting started with Spiralyst is simple:
Choose Your Canvas: Start by going into the settings and picking a `Shape` and `Palette` from the "Shape Selection & Palette" group that you find visually appealing. This is your canvas.
Tune Your Engine: Go to the "Market Pulse Engine" settings. Here, you can enable or disable the RSI and MACD scoring engines. Want to see the pulse based only on RSI? Just uncheck the MACD box. You can also fine-tune the parameters for each indicator to match your trading style.
Read the Vibe: Observe the scatter points. Are they mostly small asterisks or are they transforming into large, vibrant circles? Use this visual feedback as a high-level gauge of market momentum.
Check the Dashboard: For a precise breakdown, look at the "Market Pulse Analysis" table on the top-right. It gives you the exact values, scores, and total strength percentage.
Explore & Experiment: Play with the different shapes and color palettes! The core analysis remains the same, but the visual experience can be completely different.
⚙️ Settings & Customization
Spiralyst is designed to be highly customizable.
Shape Selection & Palette: This is your main control panel. Choose from over 25 unique shapes, select a color palette, and adjust the line extension style ( `extend` ) or horizontal position ( `offsetXInput` ).
scatterLabelsInput: This setting controls the total number of points (both asterisks and circles) that orbit the main shape. Think of it as adjusting the density or visual granularity of the market pulse feedback.
The Market Pulse engine will always calculate its strength as a percentage (e.g., 75%). This percentage is then applied to the `scatterLabelsInput` number you've set to determine how many points transform into large circles.
Example: If the Pulse Strength is 75% and you set this to `100` , approximately 75 points will become circles. If you increase it to `200` , approximately 150 points will transform.
A higher number provides a more detailed, high-resolution view of the market pulse, while a lower number offers a cleaner, more minimalist look. Feel free to adjust this to your personal visual preference; the underlying analytical percentage remains the same.
Market Pulse Engine:
`⚙️ RSI Settings` & `⚙️ MACD Settings`: Each indicator has its own group.
Enable Scoring: Use the checkbox at the top of each group to include or exclude that indicator from the Pulse Score calculation. If you only want to use RSI, simply uncheck "Enable MACD Scoring."
Parameters: All standard parameters (Length, Source, Fast/Slow/Signal) are fully adjustable.
Individual Shape Parameters (01-25): Each of the 25+ shapes has its own dedicated group of settings, allowing you to fine-tune every aspect of its geometry, from the number of petals on a flower to the windings of a knot. Feel free to experiment!
For Developers & Pine Script™ Enthusiasts
If you are a developer and wish to add more indicators (e.g., Stochastic, CCI, ADX), you can easily do so by following the modular structure of the code. You would primarily need to:
Add a new `PulseIndicator` object for your new indicator in the `f_getMarketPulse()` function.
Add the logic for its scoring inside the `calculateScore()` method.
The `calculateTotals()` method and the dashboard table are designed to be dynamic and will automatically adapt to include your new indicator!
One of the core design philosophies behind Spiralyst is modularity and scalability . The Market Pulse engine was intentionally built using User-Defined Types (UDTs) and an array-based structure so that adding new indicators is incredibly simple and doesn't require rewriting the main logic.
If you want to add a new indicator to the scoring engine—let's use the Stochastic Oscillator as a detailed example—you only need to modify three small sections of the code. The rest of the script, including the adaptive dashboard, will update automatically.
Here’s your step-by-step guide:
#### Step 1: Add the User Inputs
First, you need to give users control over your new indicator. Find the `USER INTERFACE: INPUTS` section and add a new group for the Stochastic settings, right after the MACD group.
Create a new group name: `string GRP_STOCH = "⚙️ Stochastic Settings"`
Add the inputs: Create a boolean to enable/disable it, and then add the necessary parameters (`%K`, `%D`, `Smooth`). Use the `active` parameter to link them to the enable/disable checkbox.
// Add this code block right after the GRP_MACD and MACD inputs
string GRP_STOCH = "⚙️ Stochastic Settings"
bool stochEnabledInput = input.bool(true, "Enable Stochastic Scoring", group = GRP_STOCH)
int stochKInput = input.int(14, "%K Length", minval=1, group = GRP_STOCH, active = stochEnabledInput)
int stochDInput = input.int(3, "%D Smoothing", minval=1, group = GRP_STOCH, active = stochEnabledInput)
int stochSmoothInput = input.int(3, "Smooth", minval=1, group = GRP_STOCH, active = stochEnabledInput)
#### Step 2: Integrate into the Pulse Engine (The "Factory")
Next, go to the `f_getMarketPulse()` function. This function acts as a "factory" that builds and configures the entire market pulse object. You need to teach it how to build your new Stochastic indicator.
Update the function signature: Add the new `stochEnabledInput` boolean as a parameter.
Calculate the indicator: Add the `ta.stoch()` calculation.
Create a `PulseIndicator` object: Create a new object for the Stochastic, populating it with its name, parameters, calculated value, and whether it's enabled.
Add it to the array: Simply add your new `stochPulse` object to the `array.from()` list.
Here is the complete, updated `f_getMarketPulse()` function :
// Factory function to create and calculate the entire MarketPulse object.
f_getMarketPulse(bool rsiEnabled, bool macdEnabled, bool stochEnabled) =>
// 1. Calculate indicator values
float rsiVal = ta.rsi(rsiSourceInput, rsiLengthInput)
= ta.macd(close, macdFastInput, macdSlowInput, macdSignalInput)
float stochVal = ta.sma(ta.stoch(close, high, low, stochKInput), stochDInput) // We'll use the main line for scoring
// 2. Create individual PulseIndicator objects
PulseIndicator rsiPulse = PulseIndicator.new("RSI", str.tostring(rsiLengthInput), rsiVal, na, 0, rsiEnabled)
PulseIndicator macdPulse = PulseIndicator.new("MACD", str.format("{0},{1},{2}", macdFastInput, macdSlowInput, macdSignalInput), macdVal, signalVal, 0, macdEnabled)
PulseIndicator stochPulse = PulseIndicator.new("Stoch", str.format("{0},{1},{2}", stochKInput, stochDInput, stochSmoothInput), stochVal, na, 0, stochEnabled)
// 3. Calculate score for each
rsiPulse.calculateScore()
macdPulse.calculateScore()
stochPulse.calculateScore()
// 4. Add the new indicator to the array
array indicatorArray = array.from(rsiPulse, macdPulse, stochPulse)
MarketPulse pulse = MarketPulse.new(indicatorArray, 0, 0.0)
// 5. Calculate final totals
pulse.calculateTotals()
pulse
// Finally, update the function call in the main orchestration section:
MarketPulse marketPulse = f_getMarketPulse(rsiEnabledInput, macdEnabledInput, stochEnabledInput)
#### Step 3: Define the Scoring Logic
Now, you need to define how the Stochastic contributes to the score. Go to the `calculateScore()` method and add a new case to the `switch` statement for your indicator.
Here's a sample scoring logic for the Stochastic, which gives a strong bullish score in oversold conditions and a strong bearish score in overbought conditions.
Here is the complete, updated `calculateScore()` method :
// Method to calculate the score for this specific indicator.
method calculateScore(PulseIndicator this) =>
if not this.isEnabled
this.score := 0
else
this.score := switch this.name
"RSI" => this.value > 65 ? 2 : this.value > 50 ? 1 : this.value < 35 ? -2 : this.value < 50 ? -1 : 0
"MACD" => this.value > this.signalValue and this.value > 0 ? 2 : this.value > this.signalValue ? 1 : this.value < this.signalValue and this.value < 0 ? -2 : this.value < this.signalValue ? -1 : 0
"Stoch" => this.value > 80 ? -2 : this.value > 50 ? 1 : this.value < 20 ? 2 : this.value < 50 ? -1 : 0
=> 0
this
#### That's It!
You're done. You do not need to modify the dashboard table or the total score calculation.
Because the `MarketPulse` object holds its indicators in an array , the rest of the script is designed to be adaptive:
The `calculateTotals()` method automatically loops through every indicator in the array to sum the scores and calculate the final percentage.
The dashboard code loops through the `enabledIndicators` array to draw the table. Since your new Stochastic indicator is now part of that array, it will appear automatically when enabled!
---
Remember, this is your playground! I'm genuinely excited to see the unique shapes you discover. If you create something you're proud of, feel free to share it in the comments below.
Happy analyzing, and may your charts be both insightful and beautiful! 💛
VXN NY Open Prep TimeThis indicator is based on other open source scripts. It's designed for futures markets (e.g., NQ, MNQ, ES, MES) to plot a vertical line 15 minutes before the market opens at 9:30 AM Eastern Time (ET).
A vertical line is drawn at 9:15 AM ET to serve as a visual alert for traders preparing for the market open.
Enjoy this indicator? Consider a donation to support development! buymeacoffee.com
Support & Resistance Interactive PROThe Support & Resistance Interactive PRO indicator allows traders to plot and fully customize up to 10 Support & Resistance levels with maximum flexibility.
It is designed to provide clear, professional, and visually attractive charts for daily market analysis.
Features
Choose between Zone or Line mode for each level.
Adjustable Zone Size (percentage or ticks) to control the width of areas.
Custom labels & names for every level (e.g., Call Entry, Bot Target, Take Profit).
Automatic price display next to each level for better clarity.
Highlighted zones/lines with shadows for a more professional look.
Built-in alerts when price enters an SR zone or breaks support/resistance.
Usage:
Perfect for SPX, NASDAQ, Forex, and Crypto traders.
Helps identify reaction levels, breakout points, and trading zones with full control and clean visualization.
مؤشر الدعم والمقاومة التفاعلي PRO
هذا المؤشر يساعد المتداولين على رسم وتخصيص حتى 10 مستويات دعم ومقاومة بكل سهولة ومرونة.
تم تصميمه ليمنحك شارت واضح، احترافي، وجذاب للتحليل اليومي.
الميزات:
الاختيار بين عرض كمنطقة (Zone) أو خط (Line) لكل مستوى.
التحكم في حجم المنطقة (نسبة مئوية أو تيك) لتوسيع أو تضييق النطاق.
إمكانية تخصيص أسماء لكل مستوى (مثل: نقطة دخول كول، هدف بوت، جني ربح).
عرض السعر تلقائيًا بجانب كل مستوى لزيادة الوضوح.
مناطق وخطوط مميزة مع ظل بصري لزيادة احترافية الشارت.
تنبيهات مدمجة عند دخول السعر في منطقة S/R أو كسر دعم/مقاومة.
الاستخدام:
مثالي لمتداولي SPX، ناسداك، الفوركس، والكريبتو.
يساعد على تحديد مناطق الارتداد، الاختراقات، وأهم مستويات التداول بشكل مرن وواضح.
Ultimate Power S/R by Abu-SarahUltimate Power S/R by Abu-Sarah – Beta v1
An advanced indicator that automatically plots dynamic Support & Resistance levels using pivots and strength analysis.
It highlights the strongest levels respected by price and provides clear visual guidance for trading decisions.
✨ Features:
- Automatic drawing of S/R levels (no manual input).
- Extended levels across the chart (extend both).
- Auto coloring: Red = Resistance, Green = Support.
- Clear labels with price displayed next to lines.
- Filter levels by pivot strength & frequency.
- Full customization of line style, width, and colors.
- Built-in alerts for breakout & breakdown events.
📊 Usage:
Perfect for SPX / NASDAQ / Forex / Crypto traders.
Helps identify reversals and breakout zones with high accuracy.
Excellent tool for confirming entry & exit levels.
مؤشر القوة المطلقة S/R | BY ABU-SARAH – الإصدار التجريبي (بيتا v1)
مؤشر متطور يرسم مستويات الدعم والمقاومة الديناميكية بشكل ذكي باستخدام البيفوت وقوة تكرارها.
يعرض المستويات الأقوى التي يحترمها السعر، مع ألوان واضحة (أحمر للمقاومة – أخضر للدعم)،
ملصقات أسعار، وتنبيهات تلقائية عند الاختراق أو الكسر.
Trendlines AI Radar by Abu-SarahTrendlines AI Radar – v1
The Trendlines AI Radar is a professional tool built to automatically detect swing highs and lows and dynamically draw uptrend and downtrend lines with high accuracy.
This indicator filters out market noise by displaying only the most recent active trendlines, ensuring clarity and focus on the real price direction.
It combines multiple slope calculation methods: ATR, Standard Deviation, and Linear Regression – making it suitable for both intraday and swing traders.
Key Features:
- Automatic detection of dynamic trendlines.
- Displays only the latest active uptrend & downtrend.
- Multiple slope methods (ATR / Stdev / LinReg).
- Real-time alerts on breakout/breakdown.
- Fully customizable colors & extended lines.
- Designed for clarity, speed, and precision.
مؤشر Trendlines AI Radar هو أداة احترافية تقوم تلقائيًا باكتشاف القمم والقيعان ورسم الترندات الصاعدة والهابطة بدقة عالية.
يعتمد على طرق رياضية متقدمة لحساب الميل (ATR، Stdev، LinReg)، ويعرض فقط آخر ترند فعال لتقليل الضوضاء وتوضيح الاتجاه الحقيقي.
مصمم للمضارب اليومي والمتداول المتوسط المدى، مع تنبيهات فورية عند الاختراق أو الكسر.
Buyside & Sellside Liquidity by Abu-SarahThe Liquidity Zones Indicator automatically identifies liquidity pools (Buyside above highs, Sellside below lows)
and visualizes them on the chart. It also includes the option to display liquidity voids (FVGs) and custom labels.
Features:
- Buyside Liquidity: Detects zones above repeated highs.
- Sellside Liquidity: Detects zones below repeated lows.
- Liquidity Voids: Highlights imbalances (bullish & bearish).
- Customization: Line style, width, transparency, and label size.
- Mode: Present (last 500 bars) or Historical (full chart scan).
How it works:
Liquidity pools represent clusters of orders (stops).
When price sweeps these areas, reactions often occur:
1) Reversal (fakeout / stop hunt).
2) Continuation (break & retest).
Liquidity voids highlight inefficiencies that price often revisits.
مؤشر مناطق السيولة يكشف تلقائياً السيولة الشرائية فوق القمم والسيولة البيعية تحت القيعان،
مع إمكانية عرض الفجوات السعرية (FVG).
يساعد في كشف مناطق الستوبات، الاختراقات الوهمية، وتوقع تحركات المؤسسات.
Gold Scalping Trend Strategy [Optimized] ANT1 GOLD🟡 Gold Scalping Trend Strategy – Explained
This is a short-term scalping strategy designed for XAU/USD (gold), but it can also be applied to other volatile instruments.
It combines trend detection (moving averages + ATR filter) with scalping take-profit levels and a safety stop-loss.
The goal is to ride small but high-probability moves in the direction of the intraday trend while protecting capital.
Trade Size Calculator By Skapez Trade Size Calculator By Skapez — ARM it, Drag & Trade!
A simple, position-sizing calculator for easy trader sizing.
It plots Entry / Stop / TP lines, sizes your trade to a fixed % risk (e.g., 2%), calculates leverage, and shows clean labels (Risk $, TP $, Position $, Leverage ×). You can ARM a setup, drag the lines to fine-tune, and (optionally) trigger alerts for webhooks.
What it does:
Fixed-fractional risk : sizes position so SL equals your chosen % of account (e.g., 2%).
Leverage cap & lot rounding : respects your max leverage and exchange lot step.
Drag-to-edit : move Entry/Stop; TP and sizing update automatically.
Swing-stop helper (optional): snap SL to recent swing low/high or nearest pivot. (Auto stop loss finder)
Valid-until window: auto-expires stale setups (e.g., after 120 minutes).
Alerts-ready: add your own JSON in the alert to send to a bot/webhook.
Quick start (60 seconds)
Add to chart and open Settings.
In Risk, set:
Account Balance (USD) and Risk % (e.g., 2.0).
Side (Long/Short).
In Levels:
Put an Entry price (or leave 0 to use current price when you ARM).
Choose Stop: type it manually or toggle Swing stop helper.
Pick your Target R multiple (e.g., 3.0 for 3:1).
In Leverage, set:
Leverage Cap (e.g., 10×) and Min/Step Size (e.g., 0.001 BTC).
Toggle ARM on. Three lines appear. Drag the blue/red lines if needed; the green TP and all numbers update.
Tip: Pin the indicator to the Right Price Scale (format icon → “Pin to scale”) so everything lines up perfectly.
On-chart visuals
Blue = Entry (label shows Position $ and Leverage × to the far right).
Red = Stop (label shows Risk $).
Green = TP (label shows TP P&L $).
Works on any symbol/timeframe; prices are rounded to the symbol’s tick size.
That’s it—arm, drag, and go.
SMC Suite – OB • Breaker • Liquidity Sweep • FVGSMC Suite — Order Blocks • Breaker • Liquidity Sweep • FVG
What it does:
Maps institutional SMC structure (OB → Breaker flips, Liquidity Sweeps, and 3-bar FVGs) and alerts when price retests those zones with optional r ejection-wick confirmation .
Why this isn’t “just a mashup”?
This tool implements a specific interaction between four classic SMC concepts instead of only plotting them side-by-side:
1. OB → Breaker Flip (automated): When price invalidates an Order Block (OB), the script converts that zone into a Breaker of opposite bias (bullish ⇄ bearish), extends it, and uses it for retest signals.
2. Liquidity-Gated FVGs : Fair Value Gaps (3-bar imbalances) are optionally gated—they’re only drawn/used if a recent liquidity sweep occurred within a user-defined lookback.
3. Retest Engine with Rejection Filter : Entries are not whenever a zone prints. Signals fire only if price retests the zone, and (optionally) the candle shows a rejection wick ≥ X% of its range.
4. Signal Cooldown : Prevents spam by enforcing a minimum bar gap between consecutive signals.
These behaviors work together to catch the sequence many traders look for: sweep → impulse → OB/FVG → retest + rejection.
Concepts & exact rules
1) Impulsive move and swing structure
• A bar is “ impulsive ” when its range ≥ ATR × Impulsive Mult and it closes in the direction of the move.
• Swings use Pivot Length (lenSwing) on both sides (HH/LL detection). These HH/LLs are also used for sweep checks.
2) Order Blocks (OB)
• Bullish OB : last bearish candle body before an i mpulsive up-move that breaks the prior swing high . Zone = min(open, close) to low of that candle.
• Bearish OB : last bullish candle body before an impulsive down-move that breaks the prior swing low . Zone = high to max(open, close).
• Zones extend right for OB Forward Extend bars.
3) Breaker Blocks (automatic flip)
If price invalidates an OB (closes below a bullish OB’s low or above a bearish OB’s high), that OB flips into a Breaker of opposite bias:
• Invalidated bullish OB → Bearish Breaker (resistance).
• Invalidated bearish OB → Bullish Breaker (support).
Breakers get their own style/opacity and are used for separate Breaker Retest signals.
4) Liquidity Sweeps (decluttered)
• Bullish sweep : price takes prior high but closes back below it.
• Bearish sweep : price takes prior low but closes back above it.
Display can be tiny arrows (default), short non-extending lines, or hidden. Old marks auto-expire to keep the chart clean.
5) Fair Value Gaps (FVG, 3-bar)
• Bearish FVG : high < low and current high < low .
• Bullish FVG : low > high and current low > high .
• Optional gating: only create/use FVGs if a sweep occurred within ‘Recent sweep’ lookback.
6) Retest signals (what actually alerts)
A signal is true when price re-enters a zone and (optionally) the candle shows a rejection wick:
• OB Retest LONG/SHORT — same-direction retest of OB.
• Breaker LONG/SHORT — opposite-direction retest of flipped breaker.
• FVG LONG/SHORT — touch/fill of FVG with rejection.
You can require a wick ratio (e.g., bottom wick ≥ 60% of range for longs; top wick for shorts). A cooldown prevents back-to-back alerts.
How to use
1. Pick timeframe/market : Works on any symbol/TF. Many use 15m–4h intraday and 1D swing.
2. *Tune Pivot Length & Impulsive Mult:
• Smaller = more zones and quicker flips; larger = fewer but stronger.
3. Decide whether to gate FVGs with sweeps : Turn on “Require prior Liquidity Sweep” to focus on post-liquidity setups.
4. Set wick filter : Start with 0.6 (60%) for cleaner signals; lower it if too strict.
5. Style : Use the Style / Zones & Style / Breakers groups to set colors & opacity for OB, Breakers, FVGs.
6. Alerts : Add alerts on any of:
• OB Retest LONG/SHORT
• Breaker LONG/SHORT
• FVG LONG/SHORT
Choose “Once per bar close” to avoid intrabar noise.
Inputs (key)
• Swing Pivot Length — swing sensitivity for HH/LL and sweeps.
• Impulsive Move (ATR ×) — defines the impulse that validates OBs.
• OB/FVG Forward Extend — how long zones project.
• Require prior Liquidity Sweep — gate FVG creation/usage.
• Rejection Wick ≥ % — confirmation filter for retests.
• Signal Cooldown (bars) — throttles repeated alerts.
• Display options for sweep marks — arrows vs short lines vs hidden.
• Full color/opacity controls — independent palettes for OB, Breakers, and FVGs (fills & borders).
What’s original here
• Automatic OB → Breaker conversion with separate retest logic.
• Liquidity-conditioned FVGs (FVGs can be required to follow a recent sweep).
• Unified retest engine with wick-ratio confirmation + cooldown.
• Decluttered liquidity visualization (caps, expiry, and non-extending lines).
• Complete styling controls for zone types (fills & borders), plus matching signal label colors.
🔹 Notes
• This script is invite-only.
• It is designed for educational and discretionary trading use, not as an autotrader.
• No performance guarantees are implied — always test on multiple markets and timeframes.
[KINGS TRANSFORM]
Short description
KINGS TRANSFORM is a compact, transform-based momentum oscillator with a built-in trigger line and clear reference bands. It highlights crossover signals and visually marks momentum extremes to help you spot directional shifts and high-probability setups across timeframes.
Overview
KINGS TRANSFORM applies a robust transformation to price data, producing a primary oscillator and a smoothed trigger line. The indicator plots both lines along with horizontal reference bands so you can quickly see momentum bias, crossovers (signal events), and areas that historically represent strong/weak momentum.
Key features
Primary oscillator + trigger line (both plotted on the chart).
Built-in horizontal reference levels for quick overbought / oversold context.
Clear crossover signals: buy when the primary crosses above the trigger; sell when it crosses below.
Single, simple input (Length — default 9) for quick tuning.
Lightweight and fast — suitable for all timeframes and most instruments.
Clean visual design and adjustable precision for price-style plotting.
Inputs
Length — smoothing / lookback control (default 9).
No other inputs are required to run the indicator; it’s plug-and-play out of the box.
How to read the indicator (user-facing behavior — no internal formulas exposed)
Primary line vs Trigger line:
When the primary line crosses above the trigger line → a bullish signal (consider as potential long entry or confirmation).
When the primary line crosses below the trigger line → a bearish signal (consider as potential short/exit signal).
Reference bands: Multiple horizontal levels are shown to help identify strong momentum (outer bands) versus milder momentum (inner bands). Use them as context — moves into the outer bands often indicate stronger momentum conditions.
Multi-timeframe use: Works on intraday, daily and higher timeframes. For trade execution, prefer confirming the signal on a higher timeframe or combining with trend filters/support-resistance.
Best practices & recommendations
Use KINGS TRANSFORM as a confirmation tool rather than a sole trigger. Combine with price action, trend filters (moving averages / Alligator), volume, or other indicators.
Backtest and paper-trade settings on your chosen instrument and timeframe before going live.
The default Length = 9 is a starting point — increase for smoother, fewer signals; decrease for a more responsive (but noisier) reading.
Respect position sizing and risk management — no indicator is perfect.
Notes
The indicator is designed for visualization and signal identification only — it does not place orders.
Implementation details and internal transformation logic are intentionally withheld from this description. The indicator exposes clear, actionable outputs (lines, crossovers, reference bands) without revealing the underlying formulas.
Works on instruments that supply standard price series; no special data is required.
Credits & attribution
KINGS TRANSFORM — created and packaged for TradingView.
If you use or modify this script, please keep the original author attribution.
Dynamic Pivots • Fib Box --------------------------English----------------------------
Dynamic Pivots • Fib Box
This indicator detects dynamic pivots (new high/low within the selected lookback) and builds a Fibonacci Retracement Box (entry zone) plus Fibonacci Extension targets (TP1/TP2/TP3). Only one setup per direction is kept. While the zone is untouched, it tracks as a candidate; on the first wick touch it becomes active. A Minimum Entry→TP1 distance (%) filters out cramped, low-quality setups. Price labels are shown only for the newest visible box and are auto-cleared when that box disappears.
Key Inputs
Pivot Length – lookback bars to define pivot highs/lows.
Entry Levels (0–1) – Fibonacci retracements of the impulse (not percentages).
Take Profit (Extensions) – Fibonacci extensions for TP1/TP2/TP3.
Min Entry→TP1 Distance (%) – ensures TP1 isn’t too close.
Box Width (x10 bars) – horizontal extent of the zone.
Touch Tolerance (ticks) – buffer for touches/breaks (wicks/spread).
Price Text – show labels for the current box.
Logic & Visuals
Candidate turns direction-colored on activation; TP lines highlight on hit.
Untouched boxes expire after 200 bars.
Visualization/planning tool only — not a trading system; works on any symbol/timeframe.
Bias & Rules ChecklistThis script provides a clean trading checklist panel:
Bias calculation on a selectable timeframe (e.g., 1H, 4H, Daily)
Up to 5 fully customizable rules with individual scores
Automatic total score and percentage calculation
Designed and developed by ValieTrades
Position Size Calculator MKThis indicator uses for automating your trading very good for taking position with tension free
also have touch entry of price or closing basis entry and stop loss and also show live position
Pivot + Stochastic Filter Signals (Balanced)Pivot + Stochastic Filter Signals (Balanced)
This indicator combines Pivot Highs/Lows with the Stochastic Oscillator to generate accurate BUY and SELL signals.
A BUY signal appears when a Pivot Low forms and the Stochastic %K crosses above %D (optionally filtered by oversold conditions).
A SELL signal appears when a Pivot High forms and the Stochastic %K crosses below %D (optionally filtered by overbought conditions).
Key Features:
Clear BUY (green) and SELL (red) signals plotted directly on the chart.
Optional filter: only trigger signals in overbought/oversold zones.
Labels display pivot value with the corresponding signal.
Stochastic oscillator plotted for confirmation.
This tool is useful for traders who want to combine price action (pivots) with momentum confirmation (Stochastic crossovers) for higher accuracy in trend reversals and entry timing.
Liquidity Reversal Pro📌 Liquidity Reversal Pro
Liquidity Reversal Pro is a session-based trading tool designed to help traders identify institutional reversal zones and high-probability entry signals during major market sessions (Asia, London, New York).
🔑 Key Features:
Session Highlights:
Shades the background for Asia, London, and New York sessions, helping you visually separate the market phases.
Session High/Low Tracker:
Automatically marks session highs and lows with dotted lines, making it easy to spot liquidity pools and breakout/reversal areas.
Buy & Sell Arrows:
Plots BUY arrows (green) when bullish engulfing signals appear during the London session.
Plots SELL arrows (red) when bearish engulfing signals appear during the New York session.
Configurable Visuals:
Turn arrows on/off, adjust their size, and control visual offset for clarity.
📈 How to Use:
Asia Session (Accumulation)
The Asia range is marked with orange background + dotted lines.
This often acts as the consolidation/accumulation range before London volatility.
London Session (Expansion)
Blue shaded background.
A green BUY arrow appears if a bullish engulfing breakout forms above Asia range highs.
This suggests liquidity grab below lows, followed by upward expansion.
New York Session (Reversal/Continuation)
Green shaded background.
A red SELL arrow appears if bearish engulfing forms, often signaling NY reversals after London move.
Trading Plan (example use case):
Wait for Asia range to form (orange zone).
Look for breakouts or liquidity sweeps during London (blue).
Confirm with BUY/SELL arrows as extra confluence.
Manage trades into NY session (green), where reversals or continuations often occur.
⚠️ Notes:
This is not financial advice. Always combine with your own price action, risk management, and higher-timeframe bias.
Arrows are entry signals, not guarantees. They should be used as confirmation tools alongside liquidity concepts.
Previous Day OHLC Dashboard (Last N Days)Indicator: Previous Day OHLC Dashboard (Multi-Day)
This indicator displays a dashboard-style table on your chart that shows the Open, High, Low, and Close (OHLC) of the previous trading days. It’s designed to help traders quickly reference key daily levels that often act as important support and resistance zones.
🔑 Features:
Dashboard Table: Shows OHLC data for the last N trading days (default = 3, up to 10).
Customizable Appearance:
Change the position of the dashboard (Top-Right, Top-Left, Bottom-Right, Bottom-Left).
Adjust text size (Tiny → Huge).
Customize colors for header, labels, and each OHLC column.
Yesterday’s OHLC Lines (optional): Plots horizontal lines on the chart for the previous day’s Open, High, Low, and Close.
Intraday & Multi-Timeframe Compatible: Works on all timeframes below Daily — values update automatically from the daily chart.
📊 Use Cases:
Quickly identify yesterday’s key levels for intraday trading.
Track how current price reacts to previous day’s support/resistance.
Keep a multi-day reference for trend bias and range context.
⚙️ How it Works:
The indicator pulls daily OHLC values using request.security() with lookahead_on to ensure prior day’s values are extended across the next session.
These values are displayed in a compact table for quick reference.
Optionally, the most recent daily levels (D-1) are plotted as chart lines.
✅ Perfect for day traders, scalpers, and swing traders who rely on yesterday’s price action to plan today’s trades.
WAE SHK Teyla 3MDesigned to detect high-pressure market moments, where momentum and volume converge to trigger explosive moves. Ideal as an entry trigger in scalping strategies, especially when paired with STC and ST-MA.
TitanFlow Position CalculatorTitanFlow Position Calculator - Professional Risk Management Tool
Transform your trading with precision position sizing and advanced risk management
The TitanFlow Position Calculator is a comprehensive Pine Script indicator designed for serious traders who demand professional-grade risk management tools. Whether you're trading forex, commodities, indices, or crypto, this calculator ensures you never risk more than intended while maximizing your profit potential.
🎯 Key Features:
SMART POSITION SIZING
Automatic lot size calculation based on your risk parameters
Support for percentage risk, fixed amount, or losing streak buffer modes
Real-time position size updates as market conditions change
Double-up mode for aggressive trading strategies
MULTI-ASSET SUPPORT
Pre-configured settings for Forex Major/Minor pairs
Commodities: Gold, Silver, Oil with accurate pip values
Stock indices with proper contract specifications
Cryptocurrency trading support
Custom instrument configuration for any asset
ADVANCED RISK MANAGEMENT
Visual risk level categorization (Conservative, Moderate, Aggressive, Extreme)
Color-coded risk warnings with threshold alerts
Margin requirement calculations with leverage integration
Take profit level planning with lot distribution
PROFESSIONAL THEMES
TitanFlow Dark theme matching the professional trading platform
TitanFlow Light theme for bright chart environments
Classic dark/light themes for traditional traders
Full custom colour control for personalized setups
COMPREHENSIVE LEVERAGE SUPPORT
Complete leverage options from 1:1 to 1:500 including:
1:1, 1:10, 1:15, 1:20, 1:30, 1:50, 1:100, 1:200, 1:300, 1:400, 1:500
📊 What You'll See:
REAL-TIME CALCULATIONS
Position size in lots displayed prominently
Risk level percentage with color coding
Margin requirements in your account currency
Stop loss distance in pips
Take profit distribution across multiple levels
CLEAN INFORMATION TABLE
Account balance and currency display
Current risk amount being wagered
Calculated position size and margin needs
Risk categorization with visual indicators
Leverage ratio confirmation
SMART ALERTS
Extreme risk warnings (>5% per trade)
Large position alerts (>10 lots)
High margin usage notifications (>50% account)
Real-time risk assessment updates
🚀 Take Your Trading Further with TitanFlow
Want more than just position sizing?
Visit titanflow.co.uk to discover the complete TitanFlow trading ecosystem:
✅ Advanced Trading Dashboard - Comprehensive portfolio tracking and analytics
✅ Trade Journal Integration - Log and analyze every trade automatically
✅ AI-Powered Coaching - Get personalized trading insights and recommendations
✅ Monthly Performance Reports - Detailed analytics delivered to your inbox
✅ Risk Management Suite - Professional tools for serious traders
✅ Trading Calendar - Never miss important market events
✅ Community Access - Connect with successful traders worldwide
Special Offer: TradingView users get exclusive access to premium features. Transform your trading from guesswork to systematic success. coming soon
🎨 Customization Options:
Theme Selection
Choose from 5 professional themes
Customize every colour element
Match your chart aesthetic perfectly
Professional branding options
Display Controls
Position table in any corner
Show/hide alerts and warnings
Adjustable text sizes
Clean, distraction-free interface
💡 Perfect For:
Day Traders who need quick position sizing decisions
Swing Traders planning multi-level exits
Scalpers requiring precise risk control
Portfolio Managers overseeing multiple accounts
Risk Managers monitoring exposure levels
Trading Educators teaching proper risk management
🚀 How to Use:
Set Your Account - Enter balance and currency
Choose Risk Mode - Percentage (recommended 1-2%), fixed amount, or losing streak buffer
Configure Instrument - Select asset type or use custom settings
Set Stop Loss - Enter your stop distance in pips
Read Results - Get instant position size and risk analysis
⚠️ Risk Management Excellence:
This calculator embodies the core principle that successful trading is about risk management, not just profit hunting. By using proper position sizing, you'll:
Survive losing streaks with capital intact
Compound profits systematically
Sleep better knowing your risk is controlled
Build consistent trading habits
Protect your trading capital long-term
Ready to elevate your entire trading operation? Start with this position calculator, then visit titanflow.co.uk to unlock the full potential of systematic, professional trading.
This indicator is part of the TitanFlow trading ecosystem. titanflow.co.uk coming soon here you'll be able to obtain the complete professional trading platform.