Bänder und Kanäle
FusionFlow Pro – Trend & Regime🌀 FusionFlow Pro — Trend & Regime
Introduction
FusionFlow Pro is a visual trend-and-regime map designed for traders who prefer clarity over noise.
It blends multiple concepts—trend direction, volatility, volume behavior, higher-timeframe bias, and a smooth neon-gradient ribbon—into a single, readable structure.
This tool was built over many revisions and experiments, and it’s offered freely for the community. The goal is simple: provide a clean way to understand market context without overwhelming the chart.
About the Indicator
FusionFlow Pro combines several market components into one display:
• Trend Engine
Two adaptive moving averages form the core directional structure. Their separation, strength, and interaction define whether the market is leaning bullish, bearish, or neutral.
• Regime Classifier
The script can interpret either ADX or Choppiness Index to determine whether conditions favor trending behavior or range-bound phases.
• Volume & Momentum Influence
Volume expansion and short-term momentum add additional context, helping highlight when market participation is rising or cooling.
• Higher-Timeframe Bias (HTF)
The option to reference a larger timeframe gives users a broader directional backdrop while still trading on their preferred interval.
• Neon Ribbon Visualization
The slow MA forms the backbone of a multi-gradient, distance-based ribbon.
When price hugs the ribbon, the fill becomes subtle and transparent; as price moves away, the ribbon becomes more visible.
This creates an intuitive sense of distance, pressure, and trend engagement.
• HUD Panel
A compact top-right panel summarizes the current trend state, regime, volume condition, HTF bias, and most recent event.
It acts as a quick reference so the chart stays readable even at fast timeframes.
Color Interpretation
FusionFlow Pro uses color to convey structure at a glance:
Ribbon Line:
• Uptrend: green-cyan tone
• Downtrend: soft red-magenta tone
• Neutral: cool gray-blue
Ribbon Fill:
A neon gradient cycles from lime → aqua → blue → violet → soft red.
The specific color is determined by the slow MA’s position inside a 50-bar normalization window.
Opacity Behavior:
• Near the ribbon: color is more pronounced
• Approaching the candles: the fill fades smoothly
• At the extremes: almost fully transparent
This tapered fade is intentional—it helps the shape remain visible without overwhelming the candles underneath.
HUD Colors:
Each HUD value shifts based on conditions—bullish, bearish, neutral, trending, choppy, strong volume, etc.—making it easy to read with peripheral vision.
Settings & Customization
FusionFlow Pro allows users to customize its behavior without assuming any specific market or style.
Different symbols—indices, crypto, commodities, forex, individual stocks—can have very different volatility and rhythm. Because of that, many traders tweak the MA lengths, ATR multiplier, volume factor, and regime settings depending on the symbol or timeframe they prefer.
Shorter lengths generally create a more reactive environment; longer lengths smooth out noise. ATR buffer and volume requirements can be increased or reduced depending on how tightly or loosely the user wants FusionFlow Pro to respond.
Instead of prescribing “best settings,” FusionFlow Pro stays neutral and flexible.
Experimenting with adjustments is part of the workflow, and finding a comfortable configuration is encouraged.
Disclaimer
This script is published purely for chart visualization and educational use.
It does not provide financial advice, does not guarantee outcomes, and should not be used as a sole basis for trading decisions.
Users remain responsible for their own analysis and risk management.
Multi-TF Flexible Triple MA + Envelope🔷 Main Features
1. Three Moving Averages (MA1, MA2, MA3)
Fully customizable types: SMA, EMA, WMA, VWMA, TEMA
Individual period and price source for each MA
Optional multi-timeframe (MTF) calculation
This allows you to build a flexible trend structure with local, medium-term, and higher-timeframe layers.
2. Envelope Based on MA3
The indicator includes an Envelope channel (upper and lower bands) derived from MA3.
Features:
Adjustable deviation in percentage
Enable/disable the channel
Optional fill between bands
Dotted line style mode
The Envelope helps visualize:
Overbought/oversold zones relative to trend
Volatility expansion and contraction
Dynamic support/resistance bounces
3. MA1–MA2 Crossover Signals
The indicator plots visual markers for crossover events:
🔺 MA1 crossing above MA2 — potential bullish impulse
🔻 MA1 crossing below MA2 — early warning of trend weakness or reversal
These signals can be used for entries, trend filtering, or confirmation of directional movement.
🎯 Why Use This Indicator
This tool combines several analytical approaches:
Dynamic trend levels (MAs)
Volatility structure through the Envelope
Multi-timeframe analysis
Clear visual crossover signals
It works well for:
Trend-following entry zones
Trading from Envelope boundaries
Identifying market expansion/compression
Filtering trend direction across multiple timeframes
Both intraday and swing trading
rahulpatkiIt is a 15-min high-low for the day; this will help the fellow chartist understand a trend emerging for the day. This indicator, along with others, provides a general idea of the daily trend, but it is not the only one to consider.
rahulpatkiIt is a 15-min high-low for the day; this will help the fellow chartist understand a trend emerging for the day. This indicator, along with others, provides a general idea of the daily trend, but it is not the only one to consider.
SPX Realized Volatility & Expected MoveRealized Volatility & Expected Move Dashboard
This indicator provides a sophisticated, multi-horizon view of an asset's historical volatility and projects the corresponding expected move (EM) in price points. Unlike indicators that rely on implied volatility (VIX), this tool uses the asset's own historical price action (Realized Volatility) to forecast future range potential.
Key Features & Calculations
Multi-Horizon Realized Volatility (RV): Calculates the annualized Realized Volatility based on log returns for three critical lookback periods:
30 Days (Long-Term): Measures structural volatility (default lookback).
9 Days (Short-Term): Captures recent market temperament.
1 Day (Immediate): Highly reactive to the previous day's movement.
Daily Timeframe Independence (Critical): The RV calculation is performed exclusively on Daily price data (via request.security), ensuring that the 30-day lookback is always 30 calendar days, regardless of whether you view the indicator on a 1-minute or 4-hour chart.
Expected Move Projection: Projects the calculated RV onto the price using the standard financial formula:
$$\text{EM}_{\text{H}} = \text{Price} \times \frac{\text{RV}_{\text{Annual}}}{100} \times \sqrt{\frac{\text{Horizon Days}}{252}}$$
Visual Bands: Plots the Upper and Lower Expected Move bands centered around the current price for all three horizons, providing clear targets for range expansion or contraction.
Comprehensive Table Output: A dashboard summarizes the key metrics, displaying:
Realized Vol (Annualized %): The raw volatility percentage.
Full Horizon Expected Move: The calculated price point move over the full 30-day, 9-day, or 1-day horizon.
Daily Equivalent Expected Move: The daily expected move derived from that RV, making it the most useful target for intraday trading (e.g., the $\pm 1\sigma$ move for today).
Interpretation & Usage
Identify Regime Changes: Compare the short-term RV (9D) against the long-term RV (30D). If 9D > 30D, volatility is accelerating; if 9D < 30D, volatility is contracting.
Set Intraday Targets: Use the 1 Day EM or the Daily Equivalent EM derived from the 9D/30D bands as dynamic support and resistance levels for the trading session.
Analyze Over-Extension: If the price trades outside the 30 Day EM bands, the move is historically extreme and may signal a sharp reversal or momentum exhaustion.
Multi-Timeframe Opening RangeMulti Time frame range created to find trends and look for blocks of time in which the market is most likely to pivot.
Also assists in finding trends more easily highs and lows.
Take bounces and rejections off the boxes it works well.
VIX Expected Daily Move [SPY/SPX] VIX Expected Daily Move Indicator
This indicator helps traders anticipate the expected daily trading range for the current chart's asset (e.g., SPY, ES, SPX) based on the CBOE Volatility Index (VIX), using the widely recognized "Rule of 16" method.
Key Features:
VIX-Based Range: Calculates the implied daily high and low targets by applying the formula:
$$\text{Expected Move} = \text{Open Price} \times \frac{\text{VIX}}{100} \times \frac{1}{\sqrt{252}}$$
(where $\sqrt{252} \approx 16$)
Anchor Time: The calculation is anchored to a user-defined time (default: market open at 09:30 Exchange Time) for reliable, non-repainting levels.
Persistent Levels: Levels are calculated once per day and plotted as lines and labels that persist and extend throughout the trading session.
Historical Backtesting: Includes an option to display the expected range for historical days, making it excellent for backtesting volatility strategies.
Customization: Easily adjust the VIX symbol, anchor time, and line colors/styles.
How to Use:
Set the VIX Symbol to your preferred volatility source (default: CBOE:VIX).
Set the Anchor Time to the market open or another time when you wish to lock in the day's expected volatility reading.
Use the plotted Expected High (red line) and Expected Low (green line) as potential support and resistance targets for intraday trading decisions.
MA Crossover20 Ema
200 Day Crossover
Marks Death and Golden Cross
Useful for longterm time frames and finding trends.
Can be used for intraday scalping but advised to be used with price action and other indicators like Williams %R or VWAP.
SymFlex Band - MAD, RSI, ATRThe SymFlex Band is an adaptive volatility and momentum framework that merges
three independent band models into a unified analytical tool.
• The MAD Band measures deviation from the moving average using Median Absolute Deviation,
providing a stable view of range-based volatility.
• The RSI Momentum Band adjusts its upper and lower boundaries asymmetrically,
expanding in the direction of momentum and contracting against it.
• The ATR Band captures classical volatility expansion for breakout and trend-continuation conditions.
Rather than placing the three indicators separately on a chart, the script synchronizes
their center-line logic, compares their band distances, identifies the nearest active band,
and displays real-time correlation between their dynamic ranges.
This structure helps traders understand whether price behavior is dominated by
range compression, momentum imbalance, or volatility expansion.
The table summarizes:
• active band ranges
• breakout status
• distance from each band
• cross-band correlation
This indicator is designed purely for analysis. It does not generate trade entries.
ATR Based TMA Bands [NeuraAlgo]ATR-Based TMA Bands
ATR-Based TMA Bands is a volatility-adaptive channel system built around a smoothed Triangular Moving Average (TMA).
It identifies trend direction, momentum shifts, and reversal opportunities using a combination of TMA structure and ATR-driven channel expansion.
Perfect for traders who want a clean, intelligent, and adaptive market framework.
Made by NeuraAlgo.
🔷 How It Works
1. 🔹 TMA Midline (Core Trend)
The indicator builds a smooth and stable midline using:
📐 Triangular Moving Average
🔄 Additional EMA smoothing
This creates a low-noise trend curve that reacts cleanly to real momentum changes.
2. 📈 Volatility-Adjusted Bands
The channels are built from:
📊 Standard Deviation × Expansion Multiplier
📏 Three ATR-based outer layers
These bands:
Expand in high volatility
Contract in stable markets
Reveal pullbacks, breakout zones, and exhaustion points
3. 🔁 Trend Tilt Algorithm
Slope is measured using an ATR-normalized tilt formula:
atrBase = ta.atr(smoothLen)
tilt = (midline - midline ) / (0.1 * atrBase)
This classifies the trend into:
Bullish
Bearish
Neutral
The bar colors and midline adjust automatically to match market direction.
4. 🔄 Reversal Detection (Turn Signals)
The indicator flags directional flips:
Turn Up → bearish → bullish shift
Turn Down → bullish → bearish shift
These are early reversal alerts ideal for swing traders.
5. 🎯 Flip Buy / Flip Sell Signals
Deep volatility extensions create high-probability re-entry zones:
Flip Buy → price rebounds from oversold ATR zone
Flip Sell → price rejects from overbought ATR zone
Great for:
Mean-reversion entries
Trend re-tests
Pullback trades
Exhaustion signals
📌 How to Use This Indicator
✔ Trend Trading
Follow trend using tilt-colored candles
Use midline as dynamic trend filter
Use channels for breakout/pullback entries
✔ Reversal Trading
Watch for Turn Up / Turn Down labels
Flip signals show where the market is over-stretched
✔ Risk Management
ATR channels automatically adjust to volatility
Helps with smarter SL/TP placement
⭐ Best For
Trend traders
Swing traders
Reversal hunters
Volatility lovers
Anyone wanting a smart, clean technical framework
💡 Core Features
TMA-smoothed trend detection
Multi-layer ATR expansion channels
Intelligent trend tilt algorithm
Turn Up / Turn Down reversal markers
Flip Buy / Flip Sell exhaustion signals
Adaptive bar coloring
Clean and professional visual design
Smart Bottom Catcher @ Le DReversal strategy using recent lowest lows and a fast RSI. Long entries trigger on extreme drops, exits occur when RSI crosses a set threshold. Includes optional SMA55 filter and allows up to 3 pyramids.
CIHAN SCALP PRO v3 ELITEI’m sharing a testable scalping strategy:
When you see a Long or Short signal, you can open a position without waiting for the candle to close and take quick profits with a short TP.
But the real game-changer is coming soon!
The Professional Scalping System I’ve been working on, with 85%+ accuracy, is almost ready.
This system is fully mechanical — no analysis needed, it instantly catches momentum and trend shifts.
It will be available soon with a small monthly subscription fee.
Stay tuned!
Follow BreakoutThe indicator tracks trend breakouts. It generates multiple signals during sideways trends.
Nifty Daily Movement Filter with DaysThis indicator provides detailed statistical analysis of NIFTY 50's daily percentage movements, categorized into four distinct volatility ranges with complete weekday distribution tracking.
Features:
Analyzes daily price movements from January 1, 2024 to November 28, 2025
Categorizes volatility into 4 ranges:
0.01-0.25% (Very Low - Blue)
0.26-0.50% (Low - Green)
0.51-0.75% (Medium - Orange)
0.76%+ (High - Red)
Visual Elements:
Color-coded background highlights for each volatility range
Distinct marker shapes below bars (circles, triangles, squares, diamonds)
Labels showing day of week and exact percentage change
Comprehensive statistics table with:
Total count per volatility range
Complete Monday-Friday breakdown for each range
Overall totals by day of week
Use Cases:
Identify volatility patterns across different days of the week
Track frequency of calm vs volatile trading sessions
Analyze if specific weekdays tend toward higher/lower movements
Historical volatility distribution analysis for strategy development
Risk assessment and position sizing based on historical volatility patterns
BURAK KRİPTO AL - SAT BOTUBURAK CRYPTO BUY-SELL BOT — Designed for high performance in crypto markets!This strategy is built on a powerful algorithm optimized with years of real trading experience. It follows trends while perfectly catching buy-at-the-bottom and sell-at-the-top opportunities.Main Features:
Trend direction detection with EMA + SMA combination
Overbought/oversold filters using RSI and Stochastic
Volume confirmation (volume breakout filter included)
ATR-based dynamic stop loss and take profit
Sideways market filter — prevents unnecessary trades
Works on all cryptocurrencies (BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT, etc.)
Both long and short signals (can be turned off separately)
High win rate and excellent profit factor in backtests Who is it for?Daily and swing traders
Spot and futures traders
Those who want to run fully automated bots (easily connected via alerts to 3Commas, Pionex, Bitsgap, etc.)
How to use:Add the script to your chart
Create an alert → “Alert on BURAK CRYPTO BUY-SELL BOT”
In the alert message field, write: For buy: BUY {{ticker}}
For sell: SELL {{ticker}}
Connect to your bot and let it do the rest automatically!
Disclaimer: No strategy guarantees 100% profit. Always apply your own risk management. Past performance is not indicative of future results.If you like it, don’t forget to hit the Like button and leave a comment! ♡
Any questions? Drop them in the comments — I reply as fast as possible!#crypto #bitcoin #tradingbot #tradingview #signals #altsat
SNP420/INDI/support_resist_future_levelFunctionality – short description
The indicator automatically detects the latest pivot highs/lows and builds the current resistance and support levels from them. New levels start as candidate levels (dotted lines).
Using an ATR-based tolerance, it counts how many times price precisely tests and rejects the level (touch + reversal).
Once the minimum number of touches is reached, the level is marked as validated (solid line). The indicator also detects breakouts of S/R, colors breakout candles, projects a target level after the breakout, and highlights retests of the broken levels with boxes.
autor: SNP_420
project: FNXS
ps: Piece a love
NQBA RSI This indicator is designed for educational purposes only, providing an enhanced visualization of the Relative Strength Index (RSI) along with additional tools that help in understanding momentum behavior and price characteristics.
Key features include:
🔹 1. Enhanced RSI Visualization
Customizable RSI length with an optional neutral zone (40–60).
Dynamic gradient shading for overbought and oversold areas.
Optional RSI-based moving averages and Bollinger Bands for volatility interpretation.
🔹 2. Divergence Detection
Supports both regular and hidden divergence.
Visual markers and optional alert notifications.
🔹 4. Dynamic RSI/MA Cloud
A visual cloud representing the interaction between RSI and its moving average, helping illustrate general momentum conditions.
🔹 5. Multi-Timeframe RSI Table
A compact table that displays RSI readings across several timeframes, with automatic background/text color adjustments.
⚠️ Disclaimer:
This script does not guarantee performance or profitability.
It is not financial advice and should be used alongside other analysis tools.
هذا المؤشر مخصص لأغراض تعليمية فقط، ويهدف إلى تقديم قراءة متقدمة لمؤشر القوة النسبية (RSI) مع دمج أدوات إضافية تساعد على تحسين تحليل الزخم والسلوك السعري.
يقدّم المؤشر مجموعة من المزايا، منها:
🔹 1. قراءة RSI متطورة
حساب RSI بطول مخصص وإضافة منطقة حياد اختيارية بين 40 و60.
تظليل ديناميكي لمناطق التشبّع الشرائي والبيعي.
إمكانية إضافة متوسطات متحركة وبولينجر باند على RSI لقياس التذبذب.
🔹 2. كشف الدايفرجنس
دعم الدايفرجنس الكلاسيكي والمخفي.
عرض إشارات بصرية وتنبيهات اختيارية.
🔹 4. سحابة ديناميكية بين RSI والمتوسط
تساعد على توضيح حالة الزخم واتجاه الحركة ضمن نطاق مرئي مبسط.
🔹 5. جدول RSI متعدد الأطر الزمنية
يعرض المؤشر جدولاً لقراءات RSI من عدة أطر زمنية، مع تلوين تلقائي للخلفية والنص بناء على قوة الزخم.
⚠️ ملاحظة:
هذا المؤشر لا يقدم نتائج مضمونة ولا يعتبر نصيحة مالية.
يجب استخدامه كأداة مساعدة ضمن تحليلات إضافية قبل اتخاذ أي قرار تداول.
The Consolidator [Pattern Foresight]Overview
This Consolidator script uses detection logic to chart bullish and bearish consolidation markers and to chart shaded high/low price range lines (with green shading between the bottom range line and the price for bullish trends and with red shading between the top range line and the price for bearish trends). A consolidation point is telling you: “Price has gone quiet here. Expect expansion—likely a breakout—once volume returns.” Low volatility squeezes often lead to a breakout.
The Consolidator attempts to identify periods where the price is moving sideways, compressing into a tighter range, forming a base or coil, or preparing for a trend continuation or reversal.
Bullish Consolidation Markers - Bullish consolidation occurs when the price is coiling but buyers are in control. These are useful to help detect bull flags, ascending triangles, tight bases before breakouts.
Bearish Consolidation Markers - These are useful to help detect bear flags, descending triangles, distribution periods.
Why this indicator is unique
The Consolidator attempts to be a predictive pattern-recognition system, not a simple channel indicator by measuring consolidation tightness and high/low price ranges. The range lines help visualize the “coil” where price is compressing. Consolidation markers classify which side of the coil price is leaning toward: bullish pressure or bearish pressure. The script attempts to detect structural bullish patterns with breakout intelligence.
Usage
Consolidation Lookback - Controls how many bars are examined when determining the consolidation “box.” Think of it as: “How wide of a window do you want to search for a sideways range?” Shorter lookback (10–20): Tighter, more sensitive consolidations, faster signals, more false positives, and useful for scalping and day trading. Longer lookback (30–60): Larger, more stable consolidation zones, fewer false positives, and better for swing trading.
Tolerance Percent - Defines how “flat” highs/lows must be to qualify as consolidation. This is the key part of compression detection. Lower tolerance (0.3–0.6%): Only very tight ranges qualify with fewer but higher-quality consolidation zones. Higher tolerance (0.7–1.5%): wider ranges and more consolidation signals. Small changes to tolerance drastically change the number of consolidation markers (higher = more consolidation markers).
Disclaimer:
This script is for informational purposes only. Nothing contained herein should be construed as financial, investment, or trading advice. The author is not a financial advisor and is not providing personalized recommendations. All trading involves risk, including the potential loss of principal. The author makes no assurances of accuracy, performance, or future results. History may not reflect future performance. You are solely responsible for your own investment decisions and agree to use this script entirely at your own risk.
21 & 55 EMA CloudWhenever prices goes inside the cloud and comes out
Entry: After coming out of the 21-55 EMA Cloud in uptrend
Confirm with CPR and support/resistance, breakout of resistance is good sign.
Stop loss is previous swing low.
Success Rate will be good
Third eye • StrategyThird eye • Strategy – User Guide
1. Idea & Concept
Third eye • Strategy combines three things into one system:
Ichimoku Cloud – to define market regime and support/resistance.
Moving Average (trend filter) – to trade only in the dominant direction.
CCI (Commodity Channel Index) – to generate precise entry signals on momentum breakouts.
The script is a strategy, not an indicator: it can backtest entries, exits, SL, TP and BreakEven logic automatically.
2. Indicators Used
2.1 Ichimoku
Standard Ichimoku settings (by default 9/26/52/26) are used:
Conversion Line (Tenkan-sen)
Base Line (Kijun-sen)
Leading Span A & B (Kumo Cloud)
Lagging Span is calculated but hidden from the chart (for visual simplicity).
From the cloud we derive:
kumoTop – top of the cloud under current price.
kumoBottom – bottom of the cloud under current price.
Flags:
is_above_kumo – price above the cloud.
is_below_kumo – price below the cloud.
is_in_kumo – price inside the cloud.
These conditions are used as trend / regime filters and for stop-loss & trailing stops.
2.2 Moving Average
You can optionally display and use a trend MA:
Types: SMA, EMA, DEMA, WMA
Length: configurable (default 200)
Source: default close
Filter idea:
If MA Direction Filter is ON:
When Close > MA → strategy allows only Long signals.
When Close < MA → strategy allows only Short signals.
The MA is plotted on the chart (if enabled).
2.3 CCI & Panel
The CCI (Commodity Channel Index) is used for entry timing:
CCI length and source are configurable (default length 20, source hlc3).
Two thresholds:
CCI Upper Threshold (Long) – default +100
CCI Lower Threshold (Short) – default –100
Signals:
Long signal:
CCI crosses up through the upper threshold
cci_val < upper_threshold and cci_val > upper_threshold
Short signal:
CCI crosses down through the lower threshold
cci_val > lower_threshold and cci_val < lower_threshold
There is a panel (table) in the bottom-right corner:
Shows current CCI value.
Shows filter status as colored dots:
Green = filter enabled and passed.
Red = filter enabled and blocking trades.
Gray = filter is disabled.
Filters shown in the panel:
Ichimoku Cloud filter (Long/Short)
Ichimoku Lines filter (Conversion/Base vs Cloud)
MA Direction filter
3. Filters & Trade Direction
All filters can be turned ON/OFF independently.
3.1 Ichimoku Cloud Filter
Purpose: trade only when price is clearly above or below the Kumo.
Long Cloud Filter (Use Ichimoku Cloud Filter) – when enabled:
Long trades only if close > cloud top.
Short Cloud Filter – when enabled:
Short trades only if close < cloud bottom.
If the cloud filter is disabled, this condition is ignored.
3.2 Ichimoku Lines Above/Below Cloud
Purpose: stronger trend confirmation: Ichimoku lines should also be on the “correct” side of the cloud.
Long Lines Filter:
Long allowed only if Conversion Line and Base Line are both above the cloud.
Short Lines Filter:
Short allowed only if both lines are below the cloud.
If this filter is OFF, the conditions are not checked.
3.3 MA Direction Filter
As described above:
When ON:
Close > MA → only Longs.
Close < MA → only Shorts.
4. Anti-Re-Entry Logic (Cloud Touch Reset)
The strategy uses internal flags to avoid continuous re-entries in the same direction without a reset.
Two flags:
allowLong
allowShort
After a Long entry, allowLong is set to false, allowShort to true.
After a Short entry, allowShort is set to false, allowLong to true.
Flags are reset when price touches the Kumo:
If Low goes into the cloud → allowLong = true
If High goes into the cloud → allowShort = true
If Close is inside the cloud → both allowLong and allowShort are set to true
There is a key option:
Wait Position Close Before Flag Reset
If ON: cloud touch will reset flags only when there is no open position.
If OFF: flags can be reset even while a trade is open.
This gives a kind of regime-based re-entry control: after a trend leg, you wait for a “cloud interaction” to allow new signals.
5. Risk Management
All risk management is handled inside the strategy.
5.1 Position Sizing
Order Size % of Equity – default 10%
The strategy calculates:
position_value = equity * (Order Size % / 100)
position_qty = position_value / close
So position size automatically adapts to your current equity.
5.2 Take Profit Modes
You can choose one of two TP modes:
Percent
Fibonacci
5.2.1 Percent Mode
Single Take Profit at X% from entry (default 2%).
For Long:
TP = entry_price * (1 + tp_pct / 100)
For Short:
TP = entry_price * (1 - tp_pct / 100)
One strategy.exit per side is used: "Long TP/SL" and "Short TP/SL".
5.2.2 Fibonacci Mode (2 partial TPs)
In this mode, TP levels are based on a virtual Fib-style extension between entry and stop-loss.
Inputs:
Fib TP1 Level (default 1.618)
Fib TP2 Level (default 2.5)
TP1 Share % (Fib) (default 50%)
TP2 share is automatically 100% - TP1 share.
Process for Long:
Compute a reference Stop (see SL section below) → sl_for_fib.
Compute distance: dist = entry_price - sl_for_fib.
TP levels:
TP1 = entry_price + dist * (Fib TP1 Level - 1)
TP2 = entry_price + dist * (Fib TP2 Level - 1)
For Short, the logic is mirrored.
Two exits are used:
TP1 – closes TP1 share % of position.
TP2 – closes remaining TP2 share %.
Same stop is used for both partial exits.
5.3 Stop-Loss Modes
You can choose one of three Stop Loss modes:
Stable – fixed % from entry.
Ichimoku – fixed level derived from the Kumo.
Ichimoku Trailing – dynamic SL following the cloud.
5.3.1 Stable SL
For Long:
SL = entry_price * (1 - Stable SL % / 100)
For Short:
SL = entry_price * (1 + Stable SL % / 100)
Used both for Percent TP mode and as reference for Fib TP if Kumo is not available.
5.3.2 Ichimoku SL (fixed, non-trailing)
At the time of a new trade:
For Long:
Base SL = cloud bottom minus small offset (%)
For Short:
Base SL = cloud top plus small offset (%)
The offset is configurable: Ichimoku SL Offset %.
Once computed, that SL level is fixed for this trade.
5.3.3 Ichimoku Trailing SL
Similar to Ichimoku SL, but recomputed each bar:
For Long:
SL = cloud bottom – offset
For Short:
SL = cloud top + offset
A red trailing SL line is drawn on the chart to visualize current stop level.
This trailing SL is also used as reference for BreakEven and for Fib TP distance.
6. BreakEven Logic (with BE Lines)
BreakEven is optional and supports two modes:
Percent
Fibonacci
Inputs:
Percent mode:
BE Trigger % (from entry) – move SL to BE when price goes this % in profit.
BE Offset % from entry – SL will be set to entry ± this offset.
Fibonacci mode:
BE Fib Level – Fib level at which BE will be activated (default 1.618, same style as TP).
BE Offset % from entry – how far from entry to place BE stop.
The logic:
Before BE is triggered, SL follows its normal mode (Stable/Ichimoku/Ichimoku Trailing).
When BE triggers:
For Long:
New SL = max(current SL, BE SL).
For Short:
New SL = min(current SL, BE SL).
This means BE will never loosen the stop – only tighten it.
When BE is activated, the strategy draws a violet horizontal line at the BreakEven level (once per trade).
BE state is cleared when the position is closed or when a new position is opened.
7. Entry & Exit Logic (Summary)
7.1 Long Entry
Conditions for a Long:
CCI signal:
CCI crosses up through the upper threshold.
Ichimoku Cloud Filter (optional):
If enabled → price must be above the Kumo.
Ichimoku Lines Filter (optional):
If enabled → Conversion Line and Base Line must be above the Kumo.
MA Direction Filter (optional):
If enabled → Close must be above the chosen MA.
Anti-re-entry flag:
allowLong must be true (cloud-based reset).
Position check:
Long entries are allowed when current position size ≤ 0 (so it can also reverse from short to long).
If all these conditions are true, the strategy sends:
strategy.entry("Long", strategy.long, qty = calculated_qty)
After entry:
allowLong = false
allowShort = true
7.2 Short Entry
Same structure, mirrored:
CCI signal:
CCI crosses down through the lower threshold.
Cloud filter: price must be below cloud (if enabled).
Lines filter: conversion & base must be below cloud (if enabled).
MA filter: Close must be below MA (if enabled).
allowShort must be true.
Position check: position size ≥ 0 (allows reversal from long to short).
Then:
strategy.entry("Short", strategy.short, qty = calculated_qty)
Flags update:
allowShort = false
allowLong = true
7.3 Exits
While in a position:
The strategy continuously recalculates SL (depending on chosen mode) and, in Percent mode, TP.
In Fib mode, fixed TP levels are computed at entry.
BreakEven may raise/tighten the SL if its conditions are met.
Exits are executed via strategy.exit:
Percent mode: one TP+SL exit per side.
Fib mode: two partial exits (TP1 and TP2) sharing the same SL.
At position open, the script also draws visual lines:
White line — entry price.
Green line(s) — TP level(s).
Red line — SL (if not using Ichimoku Trailing; with trailing, the red line is updated dynamically).
Maximum of 30 lines are kept to avoid clutter.
8. How to Use the Strategy
Choose market & timeframe
Works well on trending instruments. Try crypto, FX or indices on H1–H4, or intraday if you prefer more trades.
Adjust Ichimoku settings
Keep defaults (9/26/52/26) or adapt to your timeframe.
Configure Moving Average
Typical: EMA 200 as a trend filter.
Turn MA Direction Filter ON if you want to trade only with the main trend.
Set CCI thresholds
Default ±100 is classic.
Lower thresholds → more signals, higher noise.
Higher thresholds → fewer but stronger signals.
Enable/disable filters
Turn on Ichimoku Cloud and Ichimoku Lines if you want only “clean” trend trades.
Use Wait Position Close Before Flag Reset to control how often re-entries are allowed.
Choose TP & SL mode
Percent mode is simpler and easier to understand.
Fibonacci mode is more advanced: it aligns TP levels with the distance to stop, giving asymmetric RR setups (two partial TPs).
Choose Stable SL for fixed-risk trades, or Ichimoku / Ichimoku Trailing to tie stops to the cloud structure.
Set BreakEven
Enable BE if you want to lock in risk-free trades after a certain move.
Percent mode is straightforward; Fib mode keeps BreakEven in harmony with your Fib TP setup.
Run Backtest & Optimize
Press “Add to chart” → go to Strategy Tester.
Adjust parameters to your market and timeframe.
Look at equity curve, PF, drawdown, average trade, etc.
Live / Paper Trading
After you’re satisfied with backtest results, use the strategy to generate signals.
You can mirror entries/exits manually or connect them to alerts (if you build an alert-based execution layer).
CTO Line Advanced CloneThis is what I think CTO Larsson is using for his CTO Line Indicator
Use at your own risk






















