ZLSMACE StrategyZLSMACE Strategy
This is a trend-following strategy that combines:
-Zero-Lag LSMA (ZLSMA): A smoothed, low-lag moving average used to confirm trend direction.
-Chandelier Exit (CE): A volatility-based trailing stop used to detect reversals and shift trade direction.
🟢 Entry Conditions:
Long: CE direction turns bullish and price is above ZLSMA
Short: CE direction turns bearish and price is below ZLSMA
The strategy exits any opposite position before opening a new one, ensuring clean direction switching.
🕒 Best Timeframe
Optimized for 15-minute charts (15m)
Good balance between signal speed and trend filtering
Indicators and strategies
Nexus Trade BotThe Nexus Trade Bot is a sophisticated TradingView Pine Script™ v6 strategy designed for automated trading across forex, futures, stocks, and crypto. It combines trend analysis (using ROC and SMA), Squeeze Momentum, and EMA signals to identify high-probability trade entries and exits. Key features include customizable higher timeframe (HTF) trend confirmation (default 30-min), ATR-based trailing or fixed stop-loss, and robust session management with UTC-based trading hours. JSON alerts integrate seamlessly with webhooks for external apps, providing detailed trade and session data. Ideal for traders seeking a reliable, adaptable automation tool. Defaults and data are tested only for MNQ1! on the 5M timeframe.
Golden Setup V1Golden Setup V1 is an overlay indicator that automates Tony Rago’s “Golden Setup” price-level framework. It divides the chart into fixed “blockSize” intervals (default 100 points) and plots a series of key horizontal levels within each block—levels at 00, 12, 26, 33, 50, 62, 77 and 88 offsets. These levels act as dynamic support and resistance grids that roll up or down as price moves between blocks.
Key Features
Customizable Offsets
Define eight offset levels corresponding to Rago’s Golden Setup:
00 (Round Number)
12 (Target 12)
26 (First “Golden” level)
33 (Target 33)
50 (Mid-block pivot)
62 (Target 62)
77 (Second “Golden” level)
88 (Target 88)
Multi-Block Coverage
Choose how many blocks above and below the current 100-point block you wish to display, so you always have levels drawn for the surrounding price range.
Golden-Only Filter
A handy toggle lets you show only the two “Golden” offsets (26 & 77), which many traders prioritize for high-probability bounce or breakout areas.
Dynamic Nearest-Level Label
Highlights the closest Golden Setup level (to the right edge of the chart) with a movable label, so you always know which level price is approaching.
Full Styling Control
Customize line colors, widths, block size, label fonts and opacity to suit your charting style.
How It Works
Block Calculation
On each bar, the indicator computes the “current block” by flooring (close / blockSize) and multiplying back by blockSize.
Level Offsets
It adds each of the eight user-defined offsets to that block base (and, if price has moved below the lowest offset, shifts the block down one interval).
Drawing
Each level is drawn as a horizontal line extending across the chart for as many blocks above/below as you select.
Nearest-Level Detection
Within the present block, it calculates which of the plotted levels is closest to price and displays that value on the right edge.
Usage Tips
Use the Golden-Only filter to declutter and focus solely on the 26 & 77 levels, which often act as strong intra-block pivot points.
Combine with volume or momentum indicators to confirm bounces at these levels.
Adjust blockSize (e.g. 50 or 200) if you wish to work in smaller or larger price increments.
⚠️ Disclaimer: This script is for educational and illustrative purposes only. Trading involves risk—always back-test and validate any strategy on a demo account before going live.
Custom Rotatable PinwheelCustom Rotatable Pinwheel – Art Generator (Fully Color-Configurable)
This visual indicator draws a rotating pinwheel using radial spokes. It's designed purely for artistic and decorative purposes — not for trading signals. Use it to create abstract, mandala-like effects by layering multiple instances with different rotation angles and color palettes.
Fully Customizable Spoke Colors
You can now define up to 8 custom spoke colors, which cycle across the pinwheel arms.
Optionally, enable "Use Single Color" to override all spokes with a single color.
This gives full creative control over your color palette and design aesthetic.
Controls:
Number of Spokes – Total number of radial arms
Rotation Offset (°) – Adjusts the starting angle, useful when layering multiple instances
Spin Speed – Controls how fast the pinwheel rotates with each bar
Inner / Outer Radius – Adjusts the spoke arm lengths
Transparency – Controls how visible the lines are
Use Single Color – Toggle between a single color or a full custom palette
Color 1–8 – Set your preferred spoke colors (used when single color is off)
Setup for a Clean Chart Canvas (No Price Bars or Gridlines)
To hide all default chart visuals and show only the pinwheel design:
Right-click chart → Settings
Symbol tab: Uncheck "Show Bars"
Scales tab: Uncheck "Price Scale" and "Time Scale"
Appearance tab:
Set background to black
Uncheck grid lines, watermark, etc.
Status Line and Events: Uncheck all
Binary Strategy (with SMI logic)🧠 How to Use:
Chart Timeframe: 5-minute
Setup: Wait for an arrow to appear
Green arrow = BUY a 20-min binary in uptrend with positive momentum
Red arrow = SELL a 20-min binary in downtrend with negative momentum
SMI Logic: Entry only when SMI crosses its signal line in the trend direction and above/below zero
Works for Nadex 20-Minute $&P 500 Binary
If long at 75 get out at 50, or if short at 25 get out at 50. This allow you to be trading at a 1:1 ratio. (Approx.)
Bitcoin Price Triumvirate (Supply, Demand, Inflation)The Bitcoin price split into the Supply Halvings, Adoption Demand, and Inflation Response bands of influence. I'm reading Book III about the Roman Empire, in The Story Of Our Civilization by Will Durant, so of course this is now called The Bitcoin Price Triumvirate. If you want to check the book out, it's called, "Caesar and Christ" by Will Durant.
DropHunterBuy: Green triangle under the candle (price at the lower BB band, RSI < 30, EMA(9) > EMA(50)).
Stop loss: 10-15 points (M15) or 20-30 points (H1).
Take profit: 20-30 points (M15) or 50-70 points (H1).
Sale: Red triangle above the candle (price at the upper BB band, RSI > 70, EMA(9) < EMA(50)).
Stop loss and take profit are similar.
Exit: Close the position when the middle BB line (bbMiddle) is reached or when the opposite signal is given.
Risk: 2-5% deposit per transaction (for example, $20-50 with a deposit of $1000).
Dskyz (DAFE) Quantum Sentiment Flux - Beginners Dskyz (DAFE) Quantum Sentiment Flux - Beginners:
Welcome to the Dskyz (DAFE) Quantum Sentiment Flux - Beginners , a strategy and concept that’s your ultimate wingman for trading futures like MNQ, NQ, MES, and ES. This gem combines lightning-fast momentum signals, market sentiment smarts, and bulletproof risk management into a system so intuitive, even newbies can trade like pros. With clean DAFE visuals, preset modes for every vibe, and a revamped dashboard that’s basically a market GPS, this strategy makes futures trading feel like a high-octane sci-fi mission.
Built on the Dskyz (DAFE) legacy of Aurora Divergence, the Quantum Sentiment Flux is designed to empower beginners while giving seasoned traders a lean, sentiment-driven edge. It uses fast/slow EMA crossovers for entries, filters trades with VIX, SPX trends, and sector breadth, and keeps your account safe with adaptive stops and cooldowns. Tuned for more action with faster signals and a slick bottom-left dashboard, this updated version is ready to light up your charts and outsmart institutional traps. Let’s dive into why this strat’s a must-have and break down its brilliance.
Why Traders Need This Strategy
Futures markets are a wild ride—fast moves, volatility spikes (like the April 28, 2025 NQ 1k-point drop), and institutional games that can wreck unprepared traders. Beginners often get lost in complex systems or burned by impulsive trades. The Quantum Sentiment Flux is the antidote, offering:
Dead-Simple Setup: Preset modes (Aggressive, Balanced, Conservative) auto-tune signals, risk, and sizing, so you can trade without a quant degree.
Sentiment Superpower: VIX filter, SPX trend, and sector breadth visuals keep you aligned with market health, dodging chop and riding trends.
Ironclad Safety: Tighter ATR-based stops, 2:1 take-profits, and preset cooldowns protect your capital, even in chaotic sessions.
Next-Level Visuals: Green/red entry triangles, vibrant EMAs, a sector breadth background, and a beefed-up dashboard make signals and context pop.
DAFE Swagger: The clean aesthetics, sleek dashboard—ties it to Dskyz’s elite brand, making your charts a work of art.
Traders need this because it’s a plug-and-play system that blends beginner-friendly simplicity with pro-level market awareness. Whether you’re just starting or scalping 5min MNQ, this strat’s your key to trading with confidence and style.
Strategy Components
1. Core Signal Logic (High-Speed Momentum)
The strategy’s engine is a momentum-based system using fast and slow Exponential Moving Averages (EMAs), now tuned for faster, more frequent trades.
How It Works:
Fast/Slow EMAs: Fast EMA (Aggressive: 5, Balanced: 7, Conservative: 9 bars) and slow EMA (12/14/18 bars) track short-term vs. longer-term momentum.
Crossover Signals:
Buy: Fast EMA crosses above slow EMA, and trend_dir = 1 (fast EMA > slow EMA + ATR * strength threshold).
Sell: Fast EMA crosses below slow EMA, and trend_dir = -1 (fast EMA < slow EMA - ATR * strength threshold).
Strength Filter: ma_strength = fast EMA - slow EMA must exceed an ATR-scaled threshold (Aggressive: 0.15, Balanced: 0.18, Conservative: 0.25) for robust signals.
Trend Direction: trend_dir confirms momentum, filtering out weak crossovers in choppy markets.
Evolution:
Faster EMAs (down from 7–10/21–50) catch short-term trends, perfect for active futures markets.
Lower strength thresholds (0.15–0.25 vs. 0.3–0.5) make signals more sensitive, boosting trade frequency without sacrificing quality.
Preset tuning ensures beginners get optimized settings, while pros can tweak via mode selection.
2. Market Sentiment Filters
The strategy leans hard into market sentiment with a VIX filter, SPX trend analysis, and sector breadth visuals, keeping trades aligned with the big picture.
VIX Filter:
Logic: Blocks long entries if VIX > threshold (default: 20, can_long = vix_close < vix_limit). Shorts are always allowed (can_short = true).
Impact: Prevents longs during high-fear markets (e.g., VIX spikes in crashes), while allowing shorts to capitalize on downturns.
SPX Trend Filter:
Logic: Compares S&P 500 (SPX) close to its SMA (Aggressive: 5, Balanced: 8, Conservative: 12 bars). spx_trend = 1 (UP) if close > SMA, -1 (DOWN) if < SMA, 0 (FLAT) if neutral.
Impact: Provides dashboard context, encouraging trades that align with market direction (e.g., longs in UP trend).
Sector Breadth (Visual):
Logic: Tracks 10 sector ETFs (XLK, XLF, XLE, etc.) vs. their SMAs (same lengths as SPX). Each sector scores +1 (bullish), -1 (bearish), or 0 (neutral), summed as breadth (-10 to +10).
Display: Green background if breadth > 4, red if breadth < -4, else neutral. Dashboard shows sector trends (↑/↓/-).
Impact: Faster SMA lengths make breadth more responsive, reflecting sector rotations (e.g., tech surging, energy lagging).
Why It’s Brilliant:
- VIX filter adds pro-level volatility awareness, saving beginners from panic-driven losses.
- SPX and sector breadth give a 360° view of market health, boosting signal confidence (e.g., green BG + buy signal = high-probability trade).
- Shorter SMAs make sentiment visuals react faster, perfect for 5min charts.
3. Risk Management
The risk controls are a fortress, now tighter and more dynamic to support frequent trading while keeping accounts safe.
Preset-Based Risk:
Aggressive: Fast EMAs (5/12), tight stops (1.1x ATR), 1-bar cooldown. High trade frequency, higher risk.
Balanced: EMAs (7/14), 1.2x ATR stops, 1-bar cooldown. Versatile for most traders.
Conservative: EMAs (9/18), 1.3x ATR stops, 2-bar cooldown. Safer, fewer trades.
Impact: Auto-scales risk to match style, making it foolproof for beginners.
Adaptive Stops and Take-Profits:
Logic: Stops = entry ± ATR * atr_mult (1.1–1.3x, down from 1.2–2.0x). Take-profits = entry ± ATR * take_mult (2x stop distance, 2:1 reward/risk). Longs: stop below entry, TP above; shorts: vice versa.
Impact: Tighter stops increase trade turnover while maintaining solid risk/reward, adapting to volatility.
Trade Cooldown:
Logic: Preset-driven (Aggressive/Balanced: 1 bar, Conservative: 2 bars vs. old user-input 2). Ensures bar_index - last_trade_bar >= cooldown.
Impact: Faster cooldowns (especially Aggressive/Balanced) allow more trades, balanced by VIX and strength filters.
Contract Sizing:
Logic: User sets contracts (default: 1, max: 10), no preset cap (unlike old 7/5/3 suggestion).
Impact: Flexible but risks over-leverage; beginners should stick to low contracts.
Built To Be Reliable and Consistent:
- Tighter stops and faster cooldowns make it a high-octane system without blowing up accounts.
- Preset-driven risk removes guesswork, letting newbies trade confidently.
- 2:1 TPs ensure profitable trades outweigh losses, even in volatile sessions like April 27, 2025 ES slippage.
4. Trade Entry and Exit Logic
The entry/exit rules are simple yet razor-sharp, now with VIX filtering and faster signals:
Entry Conditions:
Long Entry: buy_signal (fast EMA crosses above slow EMA, trend_dir = 1), no position (strategy.position_size = 0), cooldown passed (can_trade), and VIX < 20 (can_long). Enters with user-defined contracts.
Short Entry: sell_signal (fast EMA crosses below slow EMA, trend_dir = -1), no position, cooldown passed, can_short (always true).
Logic: Tracks last_entry_bar for visuals, last_trade_bar for cooldowns.
Exit Conditions:
Stop-Loss/Take-Profit: ATR-based stops (1.1–1.3x) and TPs (2x stop distance). Longs exit if price hits stop (below) or TP (above); shorts vice versa.
No Other Exits: Keeps it straightforward, relying on stops/TPs.
5. DAFE Visuals
The visuals are pure DAFE magic, blending clean function with informative metrics utilized by professionals, now enhanced by faster signals and a responsive breadth background:
EMA Plots:
Display: Fast EMA (blue, 2px), slow EMA (orange, 2px), using faster lengths (5–9/12–18).
Purpose: Highlights momentum shifts, with crossovers signaling entries.
Sector Breadth Background:
Display: Green (90% transparent) if breadth > 4, red (90%) if breadth < -4, else neutral.
Purpose: Faster breadth_sma_len (5–12 vs. 10–50) reflects sector shifts in real-time, reinforcing signal strength.
- Visuals are intuitive, turning complex signals into clear buy/sell cues.
- Faster breadth background reacts to market rotations (e.g., tech vs. energy), giving a pro-level edge.
6. Sector Breadth Dashboard
The new bottom-left dashboard is a game-changer, a 3x16 table (black/gray theme) that’s your market command center:
Metrics:
VIX: Current VIX (red if > 20, gray if not).
SPX: Trend as “UP” (green), “DOWN” (red), or “FLAT” (gray).
Trade Longs: “OK” (green) if VIX < 20, “BLOCK” (red) if not.
Sector Breadth: 10 sectors (Tech, Financial, etc.) with trend arrows (↑ green, ↓ red, - gray).
Placeholder Row: Empty for future metrics (e.g., ATR, breadth score).
Purpose: Consolidates regime, volatility, market trend, and sector data, making decisions a breeze.
- VIX and SPX metrics add context, helping beginners avoid bad trades (e.g., no longs if “BLOCK”).
Sector arrows show market health at a glance, like a cheat code for sentiment.
Key Features
Beginner-Ready: Preset modes and clear visuals make futures trading a breeze.
Sentiment-Driven: VIX filter, SPX trend, and sector breadth keep you in sync with the market.
High-Frequency: Faster EMAs, tighter stops, and short cooldowns boost trade volume.
Safe and Smart: Adaptive stops/TPs and cooldowns protect capital while maximizing wins.
Visual Mastery: DAFE’s clean flair, EMAs, dashboard—makes trading fun and clear.
Backtestable: Lean code and fixed qty ensure accurate historical testing.
How to Use
Add to Chart: Load on a 5min MNQ/ES chart in TradingView.
Pick Preset: Aggressive (scalping), Balanced (versatile), or Conservative (safe). Balanced is default.
Set Contracts: Default 1, max 10. Stick low for safety.
Check Dashboard: Bottom-left shows preset, VIX, SPX, and sectors. “OK” + green breadth = strong buy.
Backtest: Run in strategy tester to compare modes.
Live Trade: Connect to Tradovate or similar. Watch for slippage (e.g., April 27, 2025 ES issues).
Replay Test: Try April 28, 2025 NQ drop to see VIX filter and stops in action.
Why It’s Brilliant
The Dskyz (DAFE) Quantum Sentiment Flux - Beginners is a masterpiece of simplicity and power. It takes pro-level tools—momentum, VIX, sector breadth—and wraps them in a system anyone can run. Faster signals and tighter stops make it a trading machine, while the VIX filter and dashboard keep you ahead of market chaos. The DAFE visuals and bottom-left command center turn your chart into a futuristic cockpit, guiding you through every trade. For beginners, it’s a safe entry to futures; for pros, it’s a scalping beast with sentiment smarts. This strat doesn’t just trade—it transforms how you see the market.
Final Notes
This is more than a strategy—it’s your launchpad to mastering futures with Dskyz (DAFE) flair. The Quantum Sentiment Flux blends accessibility, speed, and market savvy to help you outsmart the game. Load it, watch those triangles glow, and let’s make the markets your canvas!
Official Statement from Pine Script Team
(see TradingView help docs and forums):
"This warning may appear when you call functions such as ta.sma inside a request.security in a loop. There is no runtime impact. If you need to loop through a dynamic list of tickers, this cannot be avoided in the present version... Values will still be correct. Ignore this warning in such contexts."
(This publishing will most likely be taken down do to some miscellaneous rule about properly displaying charting symbols, or whatever. Once I've identified what part of the publishing they want to pick on, I'll adjust and repost.)
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
Created by Dskyz, powered by DAFE Trading Systems. Trade fast, trade bold.
trendline syedA trendline is a straight line drawn on a chart to help visualize the general direction (trend) of a market, security, or asset over time. It is a basic yet powerful tool used in technical analysis.
🔹 Types of Trendlines:
Uptrend Line
Drawn by connecting higher lows.
Indicates a bullish market.
Acts as support.
Downtrend Line
Drawn by connecting lower highs.
Indicates a bearish market.
Acts as resistance.
Horizontal/Sideways Line
Shows a consolidation or range-bound market.
🔹 Purpose of a Trendline:
Identifies direction of the trend (up, down, sideways).
Acts as support/resistance.
Helps in spotting breakout or reversal opportunities.
🔹 Key Points:
The more times a trendline is touched without being broken, the more valid it is.
It should connect at least two significant points, preferably three for stronger reliability.
Trendlines can be applied to any time frame (intraday, daily, weekly, etc.).
SMA 8-18 Angle Measurement - Color, Size, and Alerts//@version=5
indicator("SMA 8-18 Angle Measurement - Color, Size, and Alerts", overlay=true)
// --- Calculate short-term (SMA 8) and mid-term (SMA 18) simple moving averages ---
// These two SMAs will be used to detect trend crossovers.
sma8 = ta.sma(close, 8)
sma18 = ta.sma(close, 18)
// --- Plot SMA 8 and SMA 18 on the chart for visual trend analysis ---
plot(sma8, title="SMA 8", color=color.blue)
plot(sma18, title="SMA 18", color=color.orange)
// --- Calculate the slope (momentum) of each SMA ---
// Measures how steeply each moving average is moving.
slope_sma8 = sma8 - sma8
slope_sma18 = sma18 - sma18
// --- Find the difference between the slopes of SMA 8 and SMA 18 ---
// This helps to measure the relative speed of trend changes between short and mid-term averages.
slope_difference = slope_sma8 - slope_sma18
// --- Convert slope difference into an angle in degrees ---
// Using arctangent to calculate the angle of divergence between the two SMAs.
angle_rad = math.atan(slope_difference)
angle_deg = angle_rad * (180 / math.pi)
// --- User settings for customization ---
// Allow users to enable color change and size change of labels based on angle behavior.
change_color = input.bool(true, title="Change Label Color Based on Angle Direction")
change_size = input.bool(true, title="Change Label Size Based on Angle Magnitude")
// --- Dynamic label color based on angle direction ---
// Positive angles = blue (bullish slope), Negative angles = red (bearish slope).
label_color = color.white
if change_color
label_color := angle_deg >= 0 ? color.blue : color.red
// --- Dynamic label size based on angle strength ---
// Small angles = smaller label, stronger angles = larger label.
label_size = size.normal
if change_size
if math.abs(angle_deg) < 10
label_size := size.small
else if math.abs(angle_deg) < 30
label_size := size.normal
else
label_size := size.large
// --- Detect crossover events between SMA 8 and SMA 18 ---
// Bullish crossover: SMA 8 crosses above SMA 18
// Bearish crossunder: SMA 8 crosses below SMA 18
bull_cross = ta.crossover(sma8, sma18)
bear_cross = ta.crossunder(sma8, sma18)
// --- Display only the latest crossover angle as a label on the chart ---
// Old labels are deleted to keep the chart clean and focused on the last event.
var label last_cross_label = na
if (bull_cross or bear_cross)
if not na(last_cross_label)
label.delete(last_cross_label)
last_cross_label := label.new(bar_index, high + 10, "Angle: " + str.tostring(angle_deg, format.mintick) + "°", color=color.new(color.purple, 0), style=label.style_label_down, textcolor=label_color, size=label_size)
// --- Define movement strength conditions for alerts ---
// Different alert triggers based on angle magnitude (weak, strong, very strong crossover).
strong_movement = (angle_deg > 30) or (angle_deg < -30)
weak_movement = (math.abs(angle_deg) < 5)
very_strong_movement = (math.abs(angle_deg) > 45)
// --- Set up alert conditions ---
// These alerts help traders react to strong or weak trend changes.
alertcondition(strong_movement, title="Strong Cross", message="SMA 8-18 Strong Angle Cross Detected!")
alertcondition(weak_movement, title="Weak Cross", message="SMA 8-18 Weak Angle Cross Detected!")
alertcondition(very_strong_movement, title="Very Strong Cross", message="SMA 8-18 Very Strong Angle Cross Detected!")
RSI Chart Bars + 8 Patterns + 1 AlertWorks best on 3 min chart after NYSE open.
Gbp/jpy
eur/jpy
us30
nas100
gbp/usd
cad/jpy
usd/jpy
usd/cad
eur/aud
aud/jpy
eur/nzd
9 scalping signals .
Works best on 3 min chart.
Continuation and reversals based on rsi .
enjoy!
IMPOSSIBLE IS INMy Curiosity about all the trading Strategies and mindset came to an end. It has cost me a lot more than money to reach to this point, but with no regrets I present you the unbeatable🚩 inevitable dream strategy that could create unbelievable a
& catastrophic changes in your whole lifetime. This has cost me far more than any material value. A taste of lost luck and merely only my passion for my trading journey. I never stopped. Thank you.
And remember one thing age is just a number. I made this being a 23 year old Guy, whose was just dreaming along Situations that were totally depressing but life has its own ways
Try these setting on one hour time frame=
🎴BB Length 27
🎴BB StdDev 1.2
🎴Basis MA Type@ SMMA (…)
🎴Source: close
🎴Offset: 3
🕦Start Date: 2018-01-01🏁05:30
🕦End Date: 2069-12-31🏁23:59
🎴ATR Length🚩10
🎴ATR Multiplier for Trailing Stop🚩1.7
🤝Properties-
🎴Initial capital- 100000
🎴Base currency USD💵
👉🏻Order size: 25% of equity
👉🏻Pyramiding: 1
🎴 COST SIMULATION:
👉🏻Commission: 0.05
🎴MARGIN:
👉🏻Margin for long positions: 25%
👉🏻Margin for short positions: 25%
🎴RECALCULATE:
👉🏻 After order is filled:✅
👉🏻On every tick:✅
🎴FILL ORDERS:
👉🏻On bar close:✅
👉🏻 Using standard OHLC✅
3-Day Breakout Strategy with Trend Change Exit//@version=5
strategy("3-Day Breakout Strategy with Trend Change Exit", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === Calculate 3-day high/low (excluding current bar) ===
high3 = ta.highest(high , 3)
low3 = ta.lowest(low , 3)
// === Entry conditions ===
longEntry = close > high3
shortEntry = close < low3
// === Track position state ===
isLong = strategy.position_size > 0
isShort = strategy.position_size < 0
wasLong = nz(strategy.position_size > 0)
wasShort = nz(strategy.position_size < 0)
// === Exit conditions ===
// Exit on trend reversal (new signal)
longExit = shortEntry // Exit long position when a short signal occurs
shortExit = longEntry // Exit short position when a long signal occurs
// === Execute entries ===
buySignal = longEntry and not isLong and not isShort
sellSignal = shortEntry and not isLong and not isShort
if (buySignal)
strategy.entry("Long", strategy.long)
if (sellSignal)
strategy.entry("Short", strategy.short)
// === Execute exits on opposite signal (trend change) ===
if (isLong and longExit)
strategy.close("Long")
if (isShort and shortExit)
strategy.close("Short")
// === Exit markers (on actual exit bar only) ===
exitLongSignal = wasLong and not isLong
exitShortSignal = wasShort and not isShort
// === Plot entry signals only on the entry bar ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === Plot exit signals only on the exit bar ===
plotshape(exitLongSignal, title="Exit Long", location=location.abovebar, color=color.orange, style=shape.labeldown, text="EXIT")
plotshape(exitShortSignal, title="Exit Short", location=location.belowbar, color=color.orange, style=shape.labelup, text="EXIT")
SuperTrade Ichimoku Cloud StrategyUnlike SuperTrade's Super Trend the Ichimoku Cloud Strategy is a trend-following system derived from the Ichimoku Kinko Hyo indicator. It helps identify market direction, momentum, and potential support/resistance zones. This strategy uses key components of the Ichimoku Cloud to determine bullish or bearish trends and executes trades accordingly.
🔍 Key Components Used
Conversion Line (Tenkan-sen) – short-term average (9-period Donchian midpoint by default)
Base Line (Kijun-sen) – medium-term average (26-period Donchian midpoint)
Leading Span A (Senkou Span A) – average of Conversion Line and Base Line, plotted forward by 26 periods.
Leading Span B (Senkou Span B) – 52-period Donchian midpoint, plotted forward by 26 periods.
Lagging Span (Chikou Span) – current close price, plotted backward by 26 periods (for visual reference only in this version).
The cloud (Kumo) is the area between Leading Span A and B, representing trend direction and potential support/resistance.
📈 Entry Rules (Buy Condition)
A long trade is entered when:
LeadLine1 > LeadLine2 → This implies a bullish cloud.
Close > LeadLine1 and Close > LeadLine2 → The price is trading above the cloud, confirming upward momentum.
This combination indicates a strong bullish trend, so the strategy enters a long position.
📉 Exit Rules (Sell Condition / Close Position)
The long trade is closed when:
LeadLine1 < LeadLine2 → This implies a bearish cloud.
Close < LeadLine1 and Close < LeadLine2 → The price has fallen below the cloud, signaling trend weakness or reversal.
This confirms a bearish trend, prompting the strategy to exit the long position.
✅ Must-Have Elements in This Strategy
Entry Logic – based on price position relative to the cloud and cloud direction.
Exit Logic – closes the position when price shifts to a bearish trend.
Overlay Enabled – plotted over price for visual confirmation of signals.
Dynamic Parameters – inputs for conversion/base/cloud lengths and displacement.
Visualization – plots all Ichimoku components including cloud fill for clarity.
No Shorting Logic Yet – this version only handles long trades; shorting can be added optionally.
No Stop-Loss or Take-Profit – trades are closed purely based on Ichimoku trend reversal.
RTB - Momentum Breakout Strategy V3
📈 RTB - Momentum Breakout Strategy V3 is a directional breakout strategy based on momentum. It combines exponential moving averages (EMAs), RSI, and recent support/resistance levels to detect breakout entries with trend confirmation. The system includes dynamic risk management using ATR-based stop-loss and trailing stop levels. Webhook alerts are supported for external automated trading integrations.
🔎 The strategy was backtested using default parameters on BTCUSDT Futures (Bybit) with 4-hour timeframe and a 0.05% commission per trade.
⚠️ This script is for educational purposes only and does not constitute financial advice. Always do your own research before trading.
ZLEMA + Custom Momentum Cross v6.6 [CP Base]This script uses Zema for 9, 20, 50 which can be configured. Also, displays Zema of 15 min to show the 15min trend.
Also, uses Momentum code from ChartPrime.
When both momentum and zema alignment is there, we can trade.
SK System Buy/Sell Signals with TargetsCreated by Gamal Asela
will help you to find the buy and sell signals with targets .
Sk system have two alerts for buy and sell notifications
Accurate Swing Trading System - Strategy//@version=5
strategy("Accurate Swing Trading System - Strategy", overlay=true)
// Inputs
no = input.int(3, title="Swing")
Barcolor = input.bool(true, title="Barcolor")
Bgcolor = input.bool(false, title="Bgcolor")
// Logic
res = ta.highest(high, no)
sup = ta.lowest(low, no)
avd = close > res ? 1 : close < sup ? -1 : 0
avn = ta.valuewhen(avd != 0, avd, 0)
tsl = avn == 1 ? sup : res
Buy = ta.crossover(close, tsl)
Sell = ta.crossunder(close, tsl)
// Plotting
plotshape(Buy, title="BUY", style=shape.labelup, location=location.belowbar, color=color.green, text="BUY", textcolor=color.black)
plotshape(Sell, title="SELL", style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL", textcolor=color.black)
colr = close >= tsl ? color.green : close <= tsl ? color.red : na
plot(tsl, color=colr, linewidth=3, title="TSL")
barcolor(Barcolor ? colr : na)
bgcolor(Bgcolor ? colr : na)
// Alerts
alertcondition(Buy, title="Buy Signal", message="Buy")
alertcondition(Sell, title="Sell Signal", message="Sell")
// Strategy Orders
if Buy
strategy.entry("Buy", strategy.long)
if Sell
strategy.close("Buy")
DECODE M2 Global Liquidity IndexThe most comprehensive M2 indicator on Trading View.
- Custom lead setting (days)
- Data sources for the 20 largest economies
- Only selected sources are loaded for efficiency
- Automatic multi-timeframe recalculation