Trader Marks Trailing SL + TP (BE @ 60%)This script provides a unique stop-loss and take-profit management tool designed for swing traders.
It introduces a two-stage stop-loss logic that is not available in standard TradingView tools:
Break-Even Protection: Once a defined profit threshold (e.g. 66%) is reached, the stop-loss automatically moves to break-even.
ATR-Based Trailing Stop: After a chosen delay (e.g. 12 hours), the script activates a dynamic trailing stop that follows market volatility using the ATR.
Flexible Ratchet Mechanism: The stop-loss can be locked at new profit levels and will never move backwards.
This combination allows traders to secure profits while still giving the trade room to develop. The indicator is especially useful for swing trading on 4H and daily timeframes but can be applied to other styles as well.
How to use:
Enter your entry price, stop-loss, and take-profit levels.
Choose your trailing mode: Exact S/L+ (simple) or Advanced (Delay + BE + Ratchet).
Adjust parameters such as ATR length or activation delay to match your strategy.
The script helps you balance risk and reward by ensuring that once the trade moves in your favor, you cannot lose the initial risk, while still benefiting from extended market moves.
Bandas e Canais
ADAUSDT Profitalgo Day‑Trading IndicatorMeet the **ADAUSDT Profitalgo Day-Trading Indicator** — a fast, no-nonsense signal engine built for intraday action on a single coin.
It locks onto trend with a classic **9/21 EMA** backbone (with an optional higher-time-frame filter), then times entries using a nimble **RSI(7) midline cross**. When momentum flips **up** in trend, you get a clean **Long** triangle; when it snaps **down**, a **Short** triangle. Once you’re in, an **ATR-based trailing stop** ratchets behind price — tightening on strength, bailing on weakness — and prints crisp **Exit** markers the moment the move fades. A subtle green/red background heatmap keeps the bigger picture in view at a glance.
Why traders love it:
* **Aligned entries** only: RSI triggers are gated by EMA trend (and optional HTF trend) to cut the chop.
* **Self-managed exits:** ATR(14) × Multiplier trails automatically — no second guessing.
* **Fully tunable:** EMA/RSI lengths, midline, ATR settings, and higher-TF period are all adjustable.
* **Set-and-forget alerts:** Long/Short/Exit alerts fire in real time so you never miss the turn.
Add it to your chart, switch on alerts, and tune the inputs to your style. It’s everything you need to spot the push, ride the burst, and step aside when the edge is gone. *(Not financial advice; always test before going live.)*
Bollinger Bands (Log Scale)📈 Bollinger Bands on log scale are broken.
Many traders use log charts for better price symmetry—but still apply Bollinger Bands calculated on linear price. That mismatch creates distorted signals.
Here’s what I found:
- Standard deviation becomes misleading on log scale
- Band width no longer reflects true volatility
- Breakout signals lose behavioral clarity
🛠 So I rewrote the logic.
My version calculates Bollinger Bands using log(price) for both mean and deviation, then maps the result back to price. It behaves correctly on log charts and aligns better with behavioral scoring.
VWAP Divergence LevelsThis is an indicator which paints levels on your chart based on degrees of historical divergence from VWAP. I conceived and designed it for my personal use trading index funds (QQQ, SPY) on the NYSE. It is one of the primary indicators I use on a daily basis, and may be of interest to traders with a focus on volume.
This indicator works by tracking, each session, the maximum amount that price diverges from VWAP that day. The lookback period is locked to 21 days, or about 1 month's worth of trading days. Bearish and bullish divergences are tracked separately.
From this data, we take the average of all maximum daily bullish divergences (the "Mean Bull" divergence amount), and paint that line relative to the current VWAP. In other words, if the VWAP for the current bar is at $2.50 and the Mean Bull divergence is $0.40, the line will be painted at $2.90. The largest value from the lookback period ("Max Bull") is also painted. The same is done for bearish divergences.
Finally, midpoints between the VWAP and the Mean and Max levels are drawn. Optionally, quarter-levels are drawn in the spaces between Mean and VWAP.
When I created this indicator, I found that price very often responds and retraces around these levels, allowing me to more easily visualize the relationship between price and volume. Personally, I have found it useful for finding entrance and exit points-- especially when the levels coincide with important previous daily levels, or other support/resistance points.
Good luck & happy trading.
Disclaimer : Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this indicator or of any related strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
EMA & HMA with ShadingA simple indicator you can use to shade the area between an EMA and HMA for easier visualization. Hope you find it useful in your trading.
Advanced MA Slope Tool(by ExpertCBCD)New version of MA Slope, originally made by ExpertCBCD.Now you can choose many indicators then compare and confirm their slope. Thanks for ExpertCBCD, hope you can use it like the bow of Robinhood to defeat big banks and take money in the market.
WaveMacBollI wanted to see the two indicators in the candle chart, not in a separate window. And within the Bollinger band, it seemed to put it fine.
Important Note on Line Styles
Due to TradingView's multi-timeframe environment restrictions (timeframe = '', timeframe_gaps = true), I couldn't implement dotted or dashed line styles programmatically. The indicator uses solid lines by default.
If you prefer dotted/dashed lines for better visual distinction:
Add the indicator to your chart
Click on the indicator settings (gear icon)
Go to "Style" tab
Manually change line styles for each plot
Unfortunately, PineScript doesn't support line.new() or similar drawing functions in multi-timeframe mode, limiting our styling options to basic plot styles.
If you know a good solution for implementing dotted/dashed lines in multi-timeframe indicators without using drawing objects, please share it in the comments! I'd love to improve this aspect of the indicator
VWAP CloudVWAP Cloud
– Dynamic Fair Value Zones with Standard Deviation Envelopes
This script combines a Volume-Weighted Average Price (VWAP) baseline with standard deviation envelopes to create a dynamic "VWAP Cloud."
The VWAP itself is a widely used fair-value benchmark, showing where trading activity is most concentrated relative to price. By adding volatility-based bands around it, this tool helps traders visualize how far price has moved away from VWAP and whether those deviations may represent normal fluctuations or potential extremes.
🔎 How the Components Work Together
VWAP Midline (optional): Provides the session or rolling fair value reference.
Inner Cloud (±1 standard deviation by default): Highlights areas where price is oscillating near VWAP. This zone often reflects balanced conditions, where price is neither excessively stretched nor deeply discounted relative to volume-weighted value.
Outer Cloud (±2 standard deviations by default): Marks wider volatility extremes. These can be used to study how price reacts to statistically significant deviations from VWAP—whether by consolidating, reverting, or extending trends.
Dynamic Coloring: The cloud adjusts color based on VWAP slope. A rising VWAP is shaded green, suggesting positive momentum, while a falling VWAP is shaded red, suggesting negative momentum. Neutral gray highlights the outer envelope to distinguish extreme zones.
⚙️ Inputs & Customization
Source: Select the price type for VWAP calculation (default: hlc3).
Session Reset: Choose between daily resetting VWAP (common for intraday strategies) or a rolling VWAP (continuous view).
Standard Deviation Lookback: Controls the sample window for volatility calculation.
Band Multipliers: Adjust the width of inner and outer clouds.
Midline Toggle: Show or hide the VWAP midline depending on chart preference.
Custom Colors: Configure bullish, bearish, and neutral shading to match your charting style.
📊 How to Use
Trend Context: Price trading above VWAP generally suggests bullish conditions, while trading below suggests bearish conditions.
Value Zones: The inner cloud helps visualize short-term balance around VWAP.
Volatility Extremes: The outer cloud highlights statistically stretched moves that traders may analyze for either continuation or mean-reversion opportunities.
Scalping, Day Trading, Swing Trading: The tool adapts to different styles, depending on whether you reset VWAP each session or use the rolling version.
⚠️ Notes
This script is for educational purposes only and should be combined with other confluence factors, proper risk management, and a trading plan.
It does not generate buy/sell signals on its own. Instead, it provides a framework to study price behavior relative to a dynamic VWAP-based fair value.
Please clean your chart of unrelated drawings/indicators before applying, so the plotted clouds and midline remain clear.
Pattern Scanner — RealTime By joshPattern Scanner — Real-Time (Lines Only)
This study draws line outlines of popular price patterns in real time using swing pivots (no marketing claims, no signals).
It focuses on visual structure only—use it as an educational aid to spot potential areas of interest.
What it shows
Double Top / Double Bottom (neckline only, optional pullback check)
Head & Shoulders / Inverse H&S (neckline projection)
Wedges & Symmetrical Triangles (upper/lower guides from recent swings)
Flags / Parallel Channels (top & bottom rails if slopes are near-parallel)
Consolidation Range (simple recent high/low band)
Optional RSI Divergence filter (basic confirmation; off by default)
How it works (high level)
Builds swing points using left/right pivot lengths.
Draws straight guide lines between recent swing pairs.
Optional “equality tolerance” (in %) for double tops/bottoms.
Optional “pullback after break” rule to reduce first-touch breaks.
No labels, arrows, targets, or profits: only lines for study/visualization.
Inputs you can tune
Pivot lengths, equality tolerance, minimum touches & lookback window
Pullback rule and tolerance (% of range)
Line thickness for major/minor structures
Optional RSI divergence check (length & source)
Good to know
Real-time detection can update while bars are forming; confirmed pivots require the right-side length to complete.
This tool does not generate trade advice. Combine with your own risk management and additional analysis.
Results may vary across symbols/timeframes due to data and volatility.
License: Pine Script® v5. Educational use only.
UP MM BY JOSHUP MM BY JOSH — Educational Market Study Tool
This script is a technical study and visualization tool designed to help traders explore concepts of baseline, flow, ATR risk, and continuation conditions.
It combines multiple moving average frameworks (SMA, EMA, HMA, JMA, McGinley, etc.) with volatility analysis (ATR) and visual guidance (labels, colors, tables) to make chart reading easier.
Features
Baseline & Flow Visualization
Displays multi-type moving averages and channel structures to study trend direction and potential continuation areas.
ATR-based Risk Insights
Uses ATR percentile and custom thresholds to highlight relative volatility and potential risk zones.
Visual Labels & Alerts
Shows optional Buy/Sell labels, exit markers, and alert conditions to help identify crossover or continuation events.
Risk Table Overlay
Provides a quick snapshot of volatility percentile, ATR value, and entry distance to baseline.
How to Use
Apply the script on your chart and adjust parameters (baseline length, flow type, ATR multiplier, etc.) to suit your study.
Use visual labels and colors to observe market behavior, not as trading instructions.
Combine with other forms of technical analysis such as support/resistance, higher timeframe bias, or volume analysis.
Important Disclaimer
This script is intended for educational and research purposes only.
It does not provide financial advice or guarantee profitable outcomes.
All signals, labels, or alerts are visual markers for study — not buy/sell instructions.
Users are responsible for their own trading decisions and risk management.
SMC style josh )SMC style josh — FVG, OB, BOS/CHoCH, EQH/EQL, PD, HTF, Trendlines
What it does
A clean-room Smart-Money–style study that visualizes market structure and liquidity concepts:
Structure: BOS & CHoCH for swing and internal legs (width/style controls, preview of last pivots)
Order Blocks: internal & swing OBs with midline (50%), mitigated/invalid handling, optional auto Breaker creation
Fair Value Gaps (FVG): auto boxes with optional 50% line, ATR filter, extend length, and “after-CHoCH only” window
Equal High/Low (EQH/EQL): ATR-based proximity threshold
Liquidity Grabs: wick-through/close-back tags
Premium/Discount (PD) zones: live boxes + equilibrium line from latest swing range
HTF levels: previous Daily/Weekly/Monthly highs/lows with labels (PDH/PDL, PWH/PWL, PMH/PML)
Trendlines: auto swing-to-swing lines (liquidity)
Confluence Score: column plot summarizing recent events (+/− weighting)
Key options
Safety switch to pause all drawings
Per-module visibility, label sizes/colors, line styles/widths
ATR-based filters for impulses and gaps
Limits for lines/labels/boxes to avoid runtime errors
How to read
BOS = continuation break of the current leg; CHoCH = potential regime shift
OB mitigated when price returns into the block; invalid when price closes beyond; mitigated-then-invalid can form a Breaker
FVG is considered “filled” when price closes through the gap boundary (optional hide/gray-out)
Strong/Weak High/Low tags reflect the active swing bias (potential liquidity/targets)
Good practice
Combine with risk management, multiple timeframes, and your own rules. All drawings are for study/visualization; signals are not trade instructions.
Compliance / Disclaimer
This script is for educational and research purposes only. It is not financial advice or a solicitation to buy/sell any asset. Past performance does not guarantee future results. Always test and manage risk responsibly.
License / Credits
Built with Pine Script® v5. “SMC style josh” is an original, clean-room implementation and does not reuse third-party code.
RSI — Josh (Refined)RSI Buy/Sell Pro — Josh (Refined)
Overview
This study enhances the classic RSI (Relative Strength Index) by adding multiple visualization layers and research tools. It helps users see overbought/oversold conditions, divergence patterns, and momentum shifts more clearly — in a way that is visually intuitive.
⚠️ Disclaimer: This script is for educational and research purposes only. It does not provide financial advice or trading recommendations. Past signals are not indicative of future results. Users remain fully responsible for their own decisions and risk management.
Key Features
Custom RSI Signals
Flexible signal modes (Strict 30/70, Loose, Aggressive 50-cross)
Optional “BUY/SELL” visual text or compact labels
Adjustable cooldown between signals
RSI Divergence Detection
Classic bullish/bearish divergence with pivot confirmation
Real-time “Shadow Divergence” preview (may repaint, by design)
Visual waterline and shaded shadow effects
MA Cross on RSI
Overlay fast/slow moving averages directly on the RSI scale
Crossovers highlighted with markers and alerts
Bollinger Aura (Glow Effect)
Bollinger Bands applied to RSI with customizable color modes
Single color, Upper/Lower, or Zone-driven bull/bear tint
Optional soft fill between bands for clarity
Guidance Panel
On-chart panel summarizing RSI state (OB/OS/Neutral), real-time shadow status, and credits
Alerts Included
RSI BUY / SELL cross conditions
RSI MA cross up / down
Divergence signals (classic & real-time)
Usage Notes
Designed to visualize RSI dynamics and assist in technical research
The “BUY/SELL” markers are visual study tags only — not trade calls
For best practice, combine with higher timeframe context, support/resistance, or volume analysis
Always validate ideas in a demo environment before applying to live trading
Compliance & Credits
Built in Pine Script® v5 on TradingView
Indicator name and labels are for visualization only — not investment advice
Credits: Inspired by classic RSI concepts, refined with additional visualization methods
✅ This description keeps your script compliant:
No performance guarantees
No marketing language like “make profit fast”
Clear disclaimer & educational framing
MACD Josh MACD Study — Visual Crossover Tags
Overview:
This script displays MACD signals in a clear, visual way by showing:
Histogram = EMA(Fast) − EMA(Slow)
Signal = EMA(Histogram, Signal Length)
It adds labels and arrows to help you see crossover events between the Histogram and the Signal line more easily.
⚠️ Disclaimer: This tool is for educational and research purposes only. It is not financial advice or an investment recommendation. Past performance does not guarantee future results. Users should make their own decisions and manage risk responsibly.
Features
Central Zero Line with Signal and Histogram plots
Optional labels/arrows to highlight Histogram–Signal crossovers
Alerts for crossover and crossunder events, integrated with TradingView’s alert system
Standard adjustable inputs: Fast EMA, Slow EMA, Signal EMA
How to Interpret (for study only)
When the Histogram crosses above the Signal, a visual label/arrow marks a positive MACD event
When the Histogram crosses below the Signal, a visual label/arrow marks a negative MACD event
The “BUY/SELL” labels are visual study tags only — they do not represent trade instructions or recommendations
Responsible Usage Tips
Test across multiple timeframes and different assets
Combine with higher-timeframe trend, support/resistance, or volume for confirmation
Use alerts with caution, and always test in a demo environment first
Technical Notes
The script does not use future data and does not repaint signals once bars are closed
Results depend on market conditions and may vary across assets and timeframes
License & Credits
Written in Pine Script® v5 for TradingView
The indicator name shown on chart is for labeling purposes only and carries no implication of advice or solicitation
Enhanced Chande Momentum OscillatorEnhanced Chande Momentum Oscillator (Enh CMO)
📊 Description
The Enhanced Chande Momentum Oscillator is an advanced version of the classic Chande Momentum Oscillator with dynamic envelope boundaries that automatically adapt to market volatility. This indicator provides clear visual signals for potential price reversals and momentum shifts.
Key Features:
Original Chande Momentum Oscillator calculation
Dynamic upper and lower boundaries based on statistical analysis
Adaptive envelope that adjusts to market volatility
Visual fill area between boundaries for easy interpretation
Real-time values table with current readings
Built-in alert conditions for boundary touches
Customizable moving average types (SMA, EMA, WMA)
⚙️ Settings
CMO Settings:
CMO Length (9): Period for calculating the base Chande Momentum Oscillator
Source (close): Price source for calculations
Envelope Settings:
Envelope Length (20): Lookback period for calculating the moving average and standard deviation
Envelope Multiplier (1.5): Multiplier for standard deviation to create upper/lower bounds
Moving Average Type (EMA): Type of moving average for envelope calculation
📈 How to Use
Visual Elements
Lines:
White Line: Main Chande Momentum Oscillator
Red Line: Upper boundary (resistance level)
Green Line: Lower boundary (support level)
Yellow Line: Moving average of CMO (trend direction)
Purple Fill: Visual envelope between boundaries
Reference Lines:
Zero Line: Neutral momentum level
+50/-50 Lines: Traditional overbought/oversold levels
Trading Signals
🔴 Sell/Short Signals
CMO touches or crosses above upper boundary → Potential bearish reversal
CMO is above +50 and declining → Weakening bullish momentum
CMO crosses below yellow MA line while above zero → Momentum shift
🟢 Buy/Long Signals
CMO touches or crosses below lower boundary → Potential bullish reversal
CMO is below -50 and rising → Weakening bearish momentum
CMO crosses above yellow MA line while below zero → Momentum shift
⚡ Advanced Signals
Boundary contraction → Decreasing volatility, potential breakout coming
Boundary expansion → High volatility period, use wider stops
CMO hugging upper boundary → Strong uptrend continuation
CMO hugging lower boundary → Strong downtrend continuation
🎯 Trading Strategies
Strategy 1: Reversal Trading
Wait for CMO to touch extreme boundaries (red or green lines)
Look for divergence with price action
Enter counter-trend position when CMO starts moving back toward center
Set stop beyond the boundary breach point
Take profit near zero line or opposite boundary
Strategy 2: Momentum Confirmation
Use CMO direction to confirm trend
Enter positions when CMO crosses above/below yellow MA line
Hold positions while CMO remains on the correct side of MA
Exit when CMO crosses back through MA line
Strategy 3: Volatility Breakout
Monitor boundary width (envelope expansion/contraction)
When boundaries contract significantly, prepare for breakout
Enter in direction of CMO breakout from narrow range
Use boundary expansion as confirmation signal
⚠️ Important Notes
Best Timeframes
Scalping: 1m, 5m charts
Day Trading: 15m, 30m, 1H charts
Swing Trading: 4H, Daily charts
Market Conditions
Trending Markets: Focus on momentum confirmation signals
Ranging Markets: Focus on boundary reversal signals
High Volatility: Increase envelope multiplier (1.8-2.5)
Low Volatility: Decrease envelope multiplier (1.0-1.3)
Risk Management
Always use stop losses beyond boundary levels
Reduce position size during boundary expansion periods
Combine with price action and support/resistance levels
Monitor the real-time table for precise entry/exit levels
🔔 Alerts
The indicator includes built-in alert conditions:
"CMO Above Upper Bound": Potential reversal down signal
"CMO Below Lower Bound": Potential reversal up signal
Set these alerts to catch opportunities without constantly monitoring charts.
💡 Tips for Success
Combine with other indicators: Use with RSI, MACD, or volume indicators for confirmation
Watch for divergences: CMO making new highs/lows while price doesn't follow
Use multiple timeframes: Check higher timeframe CMO for overall trend context
Adjust settings for different assets: Crypto may need different settings than forex
Paper trade first: Test the indicator with your trading style before using real money
🎨 Customization Tips
Change colors in the Pine Script to match your chart theme
Adjust envelope length for faster (shorter) or slower (longer) signals
Modify envelope multiplier based on asset volatility
Hide the table if it obstructs your view by commenting out the table section
Complete trading solution: Pair with the Optimus Indicator (paid indicator) for multi-timeframe trend analysis and trend signals.
Together they create a powerful confluence system for professional trading setups.
📈 Aidous-Comprehensive Trend Signal Matrix📈 Aidous-Comprehensive Trend Signal Matrix
A powerful, multi-dimensional trend analysis tool that aggregates signals from 24+ technical indicators across 6 key categories:
Pure Trend Indicators (SuperTrend, Ichimoku, EMA Crossover, Parabolic SAR, etc.)
Momentum Oscillators (RSI, MACD, CCI, Stochastic RSI, Awesome Oscillator)
Volatility-Based Tools (Bollinger Bands, Choppiness Index)
Volume & Flow Indicators (Chaikin Money Flow, OBV)
Price Action Filters (Higher Highs/Lower Lows, Fractals)
Custom & Proprietary Logic (Wolfpack ID, Waddah Attar Explosion, Trend Magic)
This indicator doesn’t just show one signal—it synthesizes 24 independent trend signals into a unified matrix, giving you a holistic view of market direction. The Overall Trend is dynamically classified as:
Strong Uptrend (≥ +5 net bullish signals)
Uptrend (+1 to +4)
Neutral (balanced or conflicting signals)
Downtrend (–1 to –4)
Strong Downtrend (≤ –5 net bearish signals)
📊 Interactive Table Display
Choose between Full Table (detailed per-indicator breakdown) or Compact Summary mode. Customize position and size to fit your chart layout.
🎨 Visual Feedback
Background color changes based on overall trend strength
Color-coded signal cells (green = bullish, red = bearish, orange = neutral)
Real-time signal counts for quick sentiment assessment
💡 How to Use:
Use the Overall Trend for high-level market bias
Drill into the table to identify which indicators are driving the signal
Combine with your own strategy for confluence-based entries/exits
⚠️ Disclaimer:
This script is provided "as is" without warranty of any kind. Past performance is not indicative of future results. Always conduct your own analysis and risk management.
MACD COM PONTOS//@version=5
indicator(title="MACD COM PONTOS", shorttitle="MACD COM PONTOS")
//Plot Inputs
res = input.timeframe("", "Indicator TimeFrame")
fast_length = input.int(title="Fast Length", defval=12)
slow_length = input.int(title="Slow Length", defval=26)
src = input.source(title="Source", defval=close)
signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 999, defval = 9)
sma_source = input.string(title="Oscillator MA Type", defval="EMA", options= )
sma_signal = input.string(title="Signal Line MA Type", defval="EMA", options= )
// Show Plots T/F
show_macd = input.bool(true, title="Show MACD Lines", group="Show Plots?", inline="SP10")
show_macd_LW = input.int(3, minval=0, maxval=5, title = "MACD Width", group="Show Plots?", inline="SP11")
show_signal_LW= input.int(2, minval=0, maxval=5, title = "Signal Width", group="Show Plots?", inline="SP11")
show_Hist = input.bool(true, title="Show Histogram", group="Show Plots?", inline="SP20")
show_hist_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP20")
show_trend = input.bool(true, title = "Show MACD Lines w/ Trend Color", group="Show Plots?", inline="SP30")
show_HB = input.bool(false, title="Show Highlight Price Bars", group="Show Plots?", inline="SP40")
show_cross = input.bool(false, title = "Show BackGround on Cross", group="Show Plots?", inline="SP50")
show_dots = input.bool(true, title = "Show Circle on Cross", group="Show Plots?", inline="SP60")
show_dots_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP60")
//show_trend = input(true, title = "Colors MACD Lines w/ Trend Color", group="Show Plots?", inline="SP5")
// MACD Lines colors
col_macd = input.color(#FF6D00, "MACD Line ", group="Color Settings", inline="CS1")
col_signal = input.color(#2962FF, "Signal Line ", group="Color Settings", inline="CS1")
col_trnd_Up = input.color(#4BAF4F, "Trend Up ", group="Color Settings", inline="CS2")
col_trnd_Dn = input.color(#B71D1C, "Trend Down ", group="Color Settings", inline="CS2")
// Histogram Colors
col_grow_above = input.color(#26A69A, "Above Grow", group="Histogram Colors", inline="Hist10")
col_fall_above = input.color(#B2DFDB, "Fall", group="Histogram Colors", inline="Hist10")
col_grow_below = input.color(#FF5252, "Below Grow", group="Histogram Colors",inline="Hist20")
col_fall_below = input.color(#FFCDD2, "Fall", group="Histogram Colors", inline="Hist20")
// Alerts T/F Inputs
alert_Long = input.bool(true, title = "MACD Cross Up", group = "Alerts", inline="Alert10")
alert_Short = input.bool(true, title = "MACD Cross Dn", group = "Alerts", inline="Alert10")
alert_Long_A = input.bool(false, title = "MACD Cross Up & > 0", group = "Alerts", inline="Alert20")
alert_Short_B = input.bool(false, title = "MACD Cross Dn & < 0", group = "Alerts", inline="Alert20")
// Calculating
fast_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length))
slow_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length))
macd = fast_ma - slow_ma
signal = request.security(syminfo.tickerid, res, sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length))
hist = macd - signal
// MACD Trend and Cross Up/Down conditions
trend_up = macd > signal
trend_dn = macd < signal
cross_UP = signal >= macd and signal < macd
cross_DN = signal <= macd and signal > macd
cross_UP_A = (signal >= macd and signal < macd) and macd > 0
cross_DN_B = (signal <= macd and signal > macd) and macd < 0
// Condition that changes Color of MACD Line if Show Trend is turned on..
trend_col = show_trend and trend_up ? col_trnd_Up : trend_up ? col_macd : show_trend and trend_dn ? col_trnd_Dn: trend_dn ? col_macd : na
//Var Statements for Histogram Color Change
var bool histA_IsUp = false
var bool histA_IsDown = false
var bool histB_IsDown = false
var bool histB_IsUp = false
histA_IsUp := hist == hist ? histA_IsUp : hist > hist and hist > 0
histA_IsDown := hist == hist ? histA_IsDown : hist < hist and hist > 0
histB_IsDown := hist == hist ? histB_IsDown : hist < hist and hist <= 0
histB_IsUp := hist == hist ? histB_IsUp : hist > hist and hist <= 0
hist_col = histA_IsUp ? col_grow_above : histA_IsDown ? col_fall_above : histB_IsDown ? col_grow_below : histB_IsUp ? col_fall_below :color.silver
// Plot Statements
//Background Color
bgcolor(show_cross and cross_UP ? col_trnd_Up : na, editable=false)
bgcolor(show_cross and cross_DN ? col_trnd_Dn : na, editable=false)
//Highlight Price Bars
barcolor(show_HB and trend_up ? col_trnd_Up : na, title="Trend Up", offset = 0, editable=false)
barcolor(show_HB and trend_dn ? col_trnd_Dn : na, title="Trend Dn", offset = 0, editable=false)
//Regular Plots
plot(show_Hist and hist ? hist : na, title="Histogram", style=plot.style_columns, color=color.new(hist_col ,0),linewidth=show_hist_LW)
plot(show_macd and signal ? signal : na, title="Signal", color=color.new(col_signal, 0), style=plot.style_line ,linewidth=show_signal_LW)
plot(show_macd and macd ? macd : na, title="MACD", color=color.new(trend_col, 0), style=plot.style_line ,linewidth=show_macd_LW)
hline(0, title="0 Line", color=color.new(color.gray, 0), linestyle=hline.style_dashed, linewidth=1, editable=false)
plot(show_dots and cross_UP ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
plot(show_dots and cross_DN ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
//Alerts
if alert_Long and cross_UP
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short and cross_DN
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Down.", alert.freq_once_per_bar_close)
//Alerts - Stricter Condition - Only Alerts When MACD Crosses UP & MACD > 0 -- Crosses Down & MACD < 0
if alert_Long_A and cross_UP_A
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD > 0 And Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short_B and cross_DN_B
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD < 0 And Crosses Down.", alert.freq_once_per_bar_close)
//End Code
LIOR 41 SETTEMBRE 025⚡️ LIOR September 2025 – The New Generation of Algorithmic Trading ⚡️
LIOR is not just another indicator that paints your chart: it’s a trading operating system that turns market chaos into clear and powerful decisions.
✅ LIOR POWER – one single cell that instantly tells you if the market is BUY or SELL, with no noise or useless interpretation.
✅ Momentum Arrows – two independent arrows, built on 6 momentum indicators, revealing whether the trend’s strength is real or already shaking.
✅ LIOR ENGAGE – the ultimate confirmation: 🚀 when the push is strong, 💥 when it’s explosive.
With LIOR you get:
• A clean quantitative vision, without wasting hours watching moving averages or counting signals.
• A light but lethal structure, designed to anticipate key market turning points.
• Perfect integration with subjective analysis like GAN Fan and Pivot Points.
📊 Why choose LIOR?
Because it cuts the noise and leaves you only what matters: dominant trend + momentum confirmation + engage signal.
Nothing more. Nothing less.
🔑 If you’re looking for a tool to take your trading from doubt to clarity, LIOR is the answer.
JDB MA Breakout IndicatorAll credit goes to JDB_Trading . Follow on X.
This indicator visualises one of his strategies.
1. Detecting the dominant moving average.
2. Price is supposed to be at least 70 candles below it for buy signals/40 above for sells.
3. detects break on dominant MA + BB 20,2.
4. Used on W & M timeframes.
5. alerts possible.
AI - Gaussian Channel Strategy AI – Gaussian Channel Strategy is a long-only swing trading strategy designed for Bitcoin and other assets on daily charts. It combines an adaptive Gaussian Channel with Supertrend and Stochastic RSI filters to identify potential bullish breakouts or pullback entries. The channel defines trend direction and volatility, while the Stochastic RSI provides momentum confirmation. Positions are opened only when the price closes above the channel’s upper band under favorable momentum conditions, and are closed when the price crosses back below the band.
This script is intended for educational and research purposes. Parameters such as poles, period length, ATR factor, and RSI settings can be adjusted to fit different markets and timeframes.
Disclaimer: This script does not guarantee profits and should not be considered financial advice. Past performance is not indicative of future results. Trading involves risk, and you are solely responsible for your own decisions and outcomes.
Premier Stochastic Oscillator [LazyBear, V2]This script builds on the well-known Premier Stochastic Oscillator (PSO) originally introduced by LazyBear, and adds a Z-Score extension to provide statistical interpretation of momentum extremes.
Features
Premier Stochastic Core: A smoothed stochastic calculation that highlights bullish and bearish momentum phases.
Z-Score Mapping: The PSO values are standardized into Z-Scores (from –3 to +3), quantifying the degree of momentum stretch.
Positive / Negative Z-Scores:
Positive Z values suggest momentum strength that can align with accumulation or favorable buying conditions.
Negative Z values indicate stronger bearish pressure, often aligning with selling or distribution conditions.
On-Chart Label: The current Z-Score is displayed on the latest bar for quick reference.
How to Use
Momentum Confirmation: Use the oscillator to confirm whether bullish or bearish momentum is intensifying.
Overextended Conditions: Extreme Z-Scores (±2 or beyond) highlight statistically stretched conditions, often preceding reversions.
Strategic Integration: Best applied in confluence with trend tools or higher-timeframe filters; not a standalone trading signal.
Originality
Unlike the standard PSO, this version:
Adds a Z-Score framework for objective statistical scaling.
Provides real-time labeling of Z values for clarity.
Extends the classic oscillator into a tool for both momentum detection and mean-reversion context.
350DMA bands + Z-score (V2)This script extends the classic 350-day moving average (350DMA) by building dynamic valuation bands and a Z-Score framework to evaluate how far price deviates from its long-term mean.
Features
350DMA Anchor: Uses the 350-day simple moving average as the baseline reference.
Fixed Multipliers: Key bands plotted at ×0.625, ×1.0, ×1.6, ×2.0, and ×2.5 of the 350DMA — historically significant levels for cycle analysis.
Z-Score Mapping: Price is converted into a Z-Score on a scale from +2 (deep undervaluation) to –2 (extreme overvaluation), using log-space interpolation for accuracy.
Custom Display: HUD panel and on-chart label show the current Z-Score in real time.
Clamp Option: Users can toggle between raw Z values or capped values (±2).
How to Use
Valuation Context: The 350DMA is often considered a “fair value” anchor; large deviations identify cycles of under- or over-valuation.
Z-Score Insight:
Positive Z values suggest favorable accumulation zones where price is below long-term average.
Negative Z values highlight zones of stretched valuation, often associated with distribution or profit-taking.
Strategic Application: This is not a standalone trading system — it works best in confluence with other indicators, cycle models, or macro analysis.
Originality
Unlike a simple DMA overlay, this script:
Provides multiple cycle-based bands derived from the 350DMA.
Applies a logarithmic Z-Score mapping for more precise long-term scaling.
Adds an integrated HUD and labeling system for quick interpretation.
Yearly VWAP with Z-Score V2This script extends the traditional Volume Weighted Average Price (VWAP) by applying it to yearly sessions (with a customizable start month) and combining it with a Z-Score framework to standardize price deviations from VWAP.
Features
Yearly VWAP: Automatically resets at the selected month, making it possible to align VWAP with fiscal or seasonal cycles (e.g., June–May).
Volatility-Weighted Bands: Standard deviation is calculated using volume-weighted price variance, creating adaptive upper and lower bands around VWAP.
Z-Score Calculation: Converts price distance from VWAP into standardized scores, ranging from +2.5 to –2.5. This enables statistical interpretation of whether price is trading at fair value, extended, or oversold relative to VWAP.
Custom Session Control: Input allows users to change the yearly anchor month.
On-Chart Display: VWAP and bands are plotted, with a live Z-Score label shown on the latest bar.
How to Use
Fair Value Reference: VWAP reflects the average price weighted by volume over the yearly session — a natural equilibrium point.
Overbought / Oversold Detection: Extreme Z-Score readings (±2 or beyond) highlight when price is stretched relative to VWAP.
Cycle Analysis: Resetting VWAP by custom months allows studying market behavior over fiscal years, seasons, or custom trading cycles.
Part of a Broader Toolkit: This script is not a standalone trading system. It works best when aggregated with other indicators, confluence factors, or a structured strategy.
Originality
Unlike a standard VWAP, this version:
Uses yearly anchoring with custom start month instead of session/day anchoring.
Adds volume-weighted standard deviation bands for statistical context.
Translates distance into a Z-Score scale for objective overbought/oversold assessment.
Positive Z-Score values indicate zones where price is positioned favorably for accumulation or potential buys, while negative values highlight areas more suitable for distribution or profit-taking — always best used in confluence with other tools rather than as a standalone signal