Trading Mastery Indicator# Trading Mastery Indicator - Complete User Guide
## Overview
The Trading Mastery Indicator is a professional-grade technical analysis tool that provides high-probability trading signals with complete trade management information including entry, stop loss, and take profit levels.
## Key Features
- High-Quality Signal Detection: Identifies strong, medium, and weak trading opportunities
- Complete Trade Setup: Provides entry, stop loss, and take profit for every signal
- Risk Management: Calculates risk-to-reward ratios automatically
- Elliott Wave Analysis: Integrated wave pattern and position analysis
- Active Signal Tracking: Shows when you're currently in a trade
- Professional Alerts: Detailed notifications with all trade parameters
## Signal Quality Classification
### STRONG Signals (Premium Quality)
- Reliability: Highest probability setups
- Market Conditions: Strong trending environments
- Color: Teal for buys, Red for sells
- When to Trade: These are your primary trading opportunities
- Risk Profile: Lowest risk, highest reward potential
### MEDIUM Signals (Standard Quality)
- Reliability: Good probability setups
- Market Conditions: Moderate trend or consolidation breakouts
- Color: Gold for buys, Purple for sells (Change to Blue Gray)
- When to Trade: Secondary opportunities when strong signals are scarce
- Risk Profile: Moderate risk, good reward potential
### WEAK Signals (Entry Quality)
- Reliability: Lower probability setups
- Market Conditions: Counter-trend or unclear market structure
- Color: Coral for buys, Pink for sells
- When to Trade: Only for experienced traders in specific market conditions
- Risk Profile: Higher risk, variable reward
## How to Use the Indicator
### 1. Signal Settings Configuration
Signal Filter Options:
- All Signals: Shows every trading opportunity (strong, medium, weak)
- High Quality Only: Shows only the highest probability setups
- High + Medium Quality**: Balanced approach filtering out weak signals
Recommended Settings by Experience:
- Beginner: Use "High Quality Only"
- Intermediate: Use "High + Medium Quality"
- Advanced: Use "All Signals" with proper risk management
Label Controls:
- Label Position: Adjust how close labels appear to candles
- Label Text Size: Choose based on screen size and preference
- Maximum Labels: Control chart clutter (recommended: 20)
### 2. Understanding the Professional Panel
The panel provides real-time market intelligence:
Primary Trend: Market direction analysis
- BULLISH TREND: Look for buy opportunities only
- BEARISH TREND: Look for sell opportunities only
- CONSOLIDATION: Market indecision, trade with caution
Wave Pattern: Elliott Wave structure analysis
- IMPULSE UP: Strong bullish momentum
- IMPULSE DOWN: Strong bearish momentum
- CORRECTION: Sideways/corrective movement
Wave Position: Current Elliott Wave position
- WAVE 3 (STRONG): Most powerful moves, best for trend following
- WAVE 1 OR 5: Beginning or ending waves
- WAVE 2 OR 4: Corrective phases, lower probability
- CORRECTIVE ABC: Wait for pattern completion
Signal Grade: Current signal status
- SIGNAL ACTIVE: You're currently in a trade
- PREMIUM/STANDARD/SPECULATIVE: New signal quality
- NO SIGNAL: No current opportunities
Trading Bias: Overall market direction
- LONG BIAS: Focus on buy opportunities
- SHORT BIAS: Focus on sell opportunities
- NEUTRAL: No clear directional bias
### 3. Reading Signal Labels
Each signal provides complete trade setup information:
```
STRONG BUY
━━━━━━━━━━━━━━━━━━━━
💰 Entry: 1875.50
🛡️ SL: 1860.25
🎯 TP: 1905.75
📈 R:R = 1:2.0
━━━━━━━━━━━━━━━━━━━━
```
Understanding the Information:
- Entry: Exact price level to enter the trade
- SL: Stop loss level (risk management)
- TP: Take profit level (profit target)
- R:R: Risk-to-reward ratio (1:2.0 means you risk 1 to make 2)
### 4. Entry/TP/SL Level Lines
Visual trade management aids:
- Blue Solid Line: Entry level
- Red Dashed Line: Stop loss level
- Green Dashed Line: Take profit level
- Small Labels: "ENTRY", "SL", "TP" markers
## Trading Strategy Guidelines
### Trend Following Strategy
1. Check Panel: Ensure trend aligns with your trade direction
2. Wait for Signals: Only trade in the direction of the primary trend
3. Quality First: Focus on STRONG signals during trending markets
4. Wave Timing: WAVE 3 positions offer the best trending opportunities
### Reversal Strategy
1. Look for Divergence: Panel shows trend change signals
2. Wait for Confirmation: Don't jump early on potential reversals
3. Use MEDIUM Signals: Often good for catching early trend changes
4. Watch Wave Position: CORRECTIVE ABC patterns may signal trend completion
### Risk Management Rules
Position Sizing:
- Risk no more than 1-2% of account per trade
- Use the provided R:R ratios to calculate position sizes
- Stronger signals can justify slightly larger positions
Stop Loss Management:
- Always use the provided stop loss levels
- Never move stops against your position
- Consider trailing stops once trade moves in your favor
Take Profit Strategy:
- Use provided TP levels as minimum targets
- Consider taking partial profits at TP level
- Let strong trends run beyond TP in trending markets
## Best Practices by Timeframe
### Scalping (M1-M5)
- Use "High Quality Only" filter
- Focus on STRONG signals only
- Quick entry and exit
- Expect more false signals due to market noise
### Intraday Trading (M15-H1)
- Use "High + Medium Quality" filter
- Good balance of opportunity and reliability
- Hold trades for several hours
- Most versatile timeframe for the indicator
### Swing Trading (H4-Daily)
- Use "All Signals" with proper analysis
- Hold trades for days to weeks
- Most reliable signals on higher timeframes
- Best for beginners due to less noise
## Panel Customization
Position Options:
- Top Right: Default, doesn't interfere with price action
- Top Left: Good for wide screens
- Bottom corners: Keeps important info visible while analyzing tops
- Middle positions: Central reference, good for multi-monitor setups
Size Options:
- Small: Minimal screen space, good for small screens
- Normal: Balanced visibility and space usage
- Large: Easy reading, good for detailed analysis
Transparency: Adjust 0-95% based on preference and chart background
## Common Mistakes to Avoid
### Signal Interpretation Errors
- Don't ignore the trend: Trading against primary trend reduces success
- Don't chase weak signals: Focus on quality over quantity
- Don't ignore wave position: WAVE 2/4 corrections are lower probability
### Risk Management Errors
- Don't skip stop losses: Every signal includes SL for a reason
- Don't risk too much: Even strong signals can fail
- Don't move stops against position: Stick to the plan
### Psychological Errors
- Don't overtrade: Wait for quality setups
- Don't second-guess strong signals: Trust the analysis
- Don't panic on normal drawdowns: Expect some losing trades
## Alert Configuration
Enable alerts for:
- Strong signals: Primary trading opportunities
- Medium signals: Secondary opportunities (optional)
- Signal active status: Know when you're in trades
Alert messages include complete trade information for easy execution.
## Performance Optimization
### For Best Results:
1. Combine with price action: Look for confluence with support/resistance
2. Consider market sessions: Different sessions have different characteristics
3. Monitor news events: Avoid trading during high-impact news
4. Keep a trading journal: Track which signals work best for your style
### Regular Review:
- Weekly analysis: Review which signal types performed best
- Timeframe assessment: Determine your most profitable timeframes
- Strategy refinement: Adjust filters based on performance data
## Troubleshooting
If you're not seeing signals:
- Check that "Show Buy/Sell Signals" is enabled
- Verify your signal filter isn't too restrictive
- Market may be in a consolidation phase
If labels are cluttered:
- Reduce "Maximum Labels to Show"
- Change label position to "Far from Candle"
- Use smaller label text size
If panel is in the way:
- Change panel position
- Increase transparency
- Reduce panel size
- Toggle panel off temporarily
Remember: This indicator provides analysis and signals, but successful trading also requires proper risk management, emotional discipline, and understanding of market conditions. Always practice with demo accounts before risking real capital, and never risk more than you can afford to lose.
Indicators and strategies
Custom Candle Coloring (3% Drop / Breakout / Follow-through)Naveen's custom bars. It helps with custom color of the bars to see significant candle movements and their interpretations
UpDownBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear ZoneUpDownBow + BullBear UpDownBow + BullBear ZoneUpDoUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZoneUpDownBow + BullBear ZonewnBow + BullBear Zone
ATH Projection (2013, 2017, 2021 -> 2025)//@version=6
indicator(title="ATH Projection (2013, 2017, 2021 -> 2025)", overlay=true, max_labels_count=20, max_lines_count=20)
// ----------- Inputs (ATH manuels) -----------
t1 = input.time(defval=timestamp("2013-12-01T00:00:00"), title="Date ATH #1 (2013)")
p1 = input.float(defval=1100.0, title="Prix ATH #1 (2013)")
t2 = input.time(defval=timestamp("2017-12-01T00:00:00"), title="Date ATH #2 (2017)")
p2 = input.float(defval=20000.0, title="Prix ATH #2 (2017)")
t3 = input.time(defval=timestamp("2021-11-01T00:00:00"), title="Date ATH #3 (2021)")
p3 = input.float(defval=69000.0, title="Prix ATH #3 (2021)")
// Projection future (ex: fin 2025)
t_proj = input.time(defval=timestamp("2025-12-01T00:00:00"), title="Date cible (fin 2025)")
// ----------- Utilitaire -----------
f_days(t) => ((t - t1) / 86400000.0) + 1.0 // nb jours depuis t1 (+1 pour éviter log(0))
// ----------- Coordonnées X (jours) -----------
x1 = f_days(t1)
x2 = f_days(t2)
x3 = f_days(t3)
xP = f_days(t_proj)
// ----------- Régression power-law (3 points) -----------
X1 = math.log(x1), Y1 = math.log(p1)
X2 = math.log(x2), Y2 = math.log(p2)
X3 = math.log(x3), Y3 = math.log(p3)
n = 3.0
sumX = X1 + X2 + X3
sumY = Y1 + Y2 + Y3
sumX2 = X1*X1 + X2*X2 + X3*X3
sumXY = X1*Y1 + X2*Y2 + X3*Y3
denom = n*sumX2 - sumX*sumX
var float a = na
var float b = na
b := denom != 0 ? (n*sumXY - sumX*sumY) / denom : na
a := na(b) ? na : math.exp((sumY - b*sumX) / n)
// ----------- Courbe au fil des barres -----------
x_now = f_days(time)
curve = (not na(a) and not na(b) and x_now > 0) ? a * math.pow(x_now, b) : na
plot(series=curve, title="Courbe prévision (power-law)", color=color.fuchsia, linewidth=2)
// ----------- Projection fin 2025 -----------
proj2025 = (not na(a) and not na(b) and xP > 0) ? a * math.pow(xP, b) : na
bi_proj = ta.valuewhen(time >= t_proj, bar_index, 0)
x_for_label = na(bi_proj) ? bar_index : bi_proj
// Label affichant la projection
var label lbl = na
if barstate.islast and not na(proj2025)
txt = "Projection 2025 ≈ " + str.tostring(proj2025, format.price)
if na(lbl)
lbl := label.new(x=x_for_label, y=proj2025, text=txt, xloc=xloc.bar_index, style=label.style_label_up, color=color.green, textcolor=color.white, size=size.normal)
else
label.set_x(id=lbl, x=x_for_label)
label.set_y(id=lbl, y=proj2025)
label.set_text(id=lbl, text=txt)
FractalReversalStrategyFiltered(ETH 5min) The profit that is shown in the strategy report uses a capital of 240 USD with 10x leverage. Only use this strategy in ETHUSD (5 MIN timeframe).
Volume (Custom Timeframe & Color)This indicator displays volume data from a custom timeframe, regardless of the current chart resolution.
The bar color is determined by the price movement of the selected timeframe (green for bullish, red for bearish).
Features:
- Select any custom timeframe for volume (e.g., 5m, 15m, 1h, 1D).
- Volume bars are painted according to the candle direction of that timeframe.
- Useful for multi-timeframe analysis and detecting higher timeframe volume trends.
Inspired by TradingView’s built-in Volume indicator, but enhanced with custom timeframe and consistent coloring.
mohamed rebouh zigzag//
// mohamed rebouh
//@version=5
//
// THIS CODE IS BASED FROM THE MT4 ZIGZAG INDICATOR
// THE ZIGZAG SETTINGS FOR THE MAIN ONE ON TRADINGVIEW DO NOT WORK THE SAME AS MT4
// I HOPE U LOVE IT
//
indicator(' mohamed rebouh ', overlay=true)
// inputs
Depth = input(12, title='Depth') // Depth
Deviation = input(5, title='Deviation') // Deviation
// ZigZag
var lastlow = 0.0
var lasthigh = 0.0
data(x) =>
d = request.security(syminfo.tickerid, timeframe.period, x)
d
getLow(x, y, z, a) =>
lastlow1 = y
v = data(x)
m = v == lastlow1 or data(z) - v > a * syminfo.mintick
if v != lastlow1
lastlow1 := v
if m
v := 0.0
v
getHigh(x, y, z, a) =>
lasthigh1 = y
v = data(x)
m = v == lasthigh1 or v - data(z) > a * syminfo.mintick
if v != lasthigh1
lasthigh1 := v
if m
v := 0.0
v
= getLow(ta.lowest(Depth), lastlow, low, Deviation)
lastlow := e
zBB = v != 0.0
= getHigh(ta.highest(Depth), lasthigh, high, Deviation)
lasthigh := e1
zSS = v1 != 0.0
zigzagDirection = -1
zigzagHigh = 0
zigzagLow = 0
zigzagDirection := zBB ? 0 : zSS ? 1 : nz(zigzagDirection , -1)
virtualLow = zigzagLow + 1
if not zBB or zBB and zigzagDirection == zigzagDirection and low > low
zigzagLow := nz(zigzagLow ) + 1
zigzagLow
virtualHigh = zigzagHigh + 1
if not zSS or zSS and zigzagDirection == zigzagDirection and high < high
zigzagHigh := nz(zigzagHigh ) + 1
zigzagHigh
line zigzag = line.new(bar_index - zigzagLow, low , bar_index - zigzagHigh, high , color=color.red, style=line.style_solid, width=2)
if zigzagDirection == zigzagDirection
line.delete(zigzag )
Tristan's Star: 15m Shooting Star DetectorThis script is designed to be used on the 1-minute chart , but it analyzes the market as if you were watching the 15-minute candles.
Every cluster of 15 one-minute candles is grouped together and treated as a single 15-minute candle.
When that 15-minute “synthetic” candle looks like a shooting star pattern (small body near the low, long upper wick, short lower wick, bearish bias), the script triggers a signal.
At the close of that 15-minute cluster, the script will:
Plot a single “Sell” label on the last 1-minute bar of the group.
Draw a horizontal line across the 15 bars at the high, showing the level that created the shooting star.
Optionally display a table cell in the corner with the word “SELL.”
This lets you stay on the 1-minute timeframe for precision entries and exits, while still being alerted when the higher-timeframe (15-minute) shows a bearish reversal pattern.
INKY Rejection Blocks - Current ZonesBullish and Bearish block colors with adjustable opacity.
Border visibility, border width, and 50% midline display toggles.
Label size customization for optimal chart clarity.
⚙️ How the Indicator Works:
Swing Detection: Identifies significant highs and lows based on pivot structures.
Rejection Filtering: Confirms strong rejections with wick-to-body ratio validation.
Block Creation: Highlights bullish or bearish rejection zones with customizable visuals.
Midline Plotting: (Optional) Marks the 50% midpoint of the block for entry targeting.
Mitigation and Cleanup: Blocks are deleted automatically when their structure is invalidated, maintaining a clean and accurate chart view.
🎯 How to Use It:
Identify Reaction Zones: Use rejection blocks as potential areas for price reversals or consolidations.
Plan Trade Entries: Monitor retests of the block boundaries or 50% lines for precision entries.
Manage Risk: If price closes beyond the block, treat it as a potential invalidation or Change in State of Delivery (CISD) event.
BOS + Liquidity Sweep Entries//@version=5
indicator("BOS + Liquidity Sweep Entries (Both Directions) — Fixed", overlay=true, shorttitle="BOS+LS")
// ===== INPUTS =====
swingLen = input.int(5, "Swing lookback", minval=1)
sweepATRmult = input.float(0.5, "Sweep wick threshold (ATR multiplier)", minval=0.0, step=0.1)
maxBarsSinceBOS = input.int(50, "Max bars to wait for sweep after BOS", minval=1)
showLabels = input.bool(true, "Show labels", inline="lbl")
showShapes = input.bool(true, "Show shapes", inline="lbl")
atr = ta.atr(14)
// ===== PIVOTS =====
ph_val = ta.pivothigh(high, swingLen, swingLen)
pl_val = ta.pivotlow(low, swingLen, swingLen)
// persist last pivots and their bar indices
var float lastPH = na
var int lastPH_bar = na
var float lastPL = na
var int lastPL_bar = na
if not na(ph_val)
lastPH := ph_val
lastPH_bar := bar_index - swingLen
if not na(pl_val)
lastPL := pl_val
lastPL_bar := bar_index - swingLen
// ===== BOS DETECTION (record the bar where BOS first confirmed) =====
var int bull_bos_bar = na
bull_bos = not na(lastPH) and close > lastPH and bar_index > lastPH_bar
if bull_bos
// store first confirmation bar (overwrite only if new)
if na(bull_bos_bar) or bar_index > bull_bos_bar
bull_bos_bar := bar_index
var int bear_bos_bar = na
bear_bos = not na(lastPL) and close < lastPL and bar_index > lastPL_bar
if bear_bos
if na(bear_bos_bar) or bar_index > bear_bos_bar
bear_bos_bar := bar_index
// If pivots update to a more recent pivot, clear older BOS/sweep markers that predate the new pivot
if not na(lastPH_bar) and not na(bull_bos_bar)
if bull_bos_bar <= lastPH_bar
bull_bos_bar := na
// clear bull sweep when pivot updates
var int last_bull_sweep_bar = na
if not na(lastPL_bar) and not na(bear_bos_bar)
if bear_bos_bar <= lastPL_bar
bear_bos_bar := na
var int last_bear_sweep_bar = na
// ensure sweep tracking vars exist (declared outside so we can reference later)
var int last_bull_sweep_bar = na
var int last_bear_sweep_bar = na
// ===== SWEEP DETECTION =====
// Bullish sweep: wick above BOS (lastPH) by threshold, then close back below the BOS level
bull_sweep = false
if not na(bull_bos_bar) and not na(lastPH)
bars_since = bar_index - bull_bos_bar
if bars_since <= maxBarsSinceBOS
wick_above = high - lastPH
if (wick_above > sweepATRmult * atr) and (close < lastPH)
bull_sweep := true
last_bull_sweep_bar := bar_index
// Bearish sweep: wick below BOS (lastPL) by threshold, then close back above the BOS level
bear_sweep = false
if not na(bear_bos_bar) and not na(lastPL)
bars_since = bar_index - bear_bos_bar
if bars_since <= maxBarsSinceBOS
wick_below = lastPL - low
if (wick_below > sweepATRmult * atr) and (close > lastPL)
bear_sweep := true
last_bear_sweep_bar := bar_index
// ===== ENTRY RULES (only after sweep happened AFTER BOS) =====
long_entry = false
if not na(last_bull_sweep_bar) and not na(bull_bos_bar)
if (last_bull_sweep_bar > bull_bos_bar) and (bar_index > last_bull_sweep_bar) and (close > lastPH)
long_entry := true
// avoid duplicate triggers from the same sweep
last_bull_sweep_bar := na
short_entry = false
if not na(last_bear_sweep_bar) and not na(bear_bos_bar)
if (last_bear_sweep_bar > bear_bos_bar) and (bar_index > last_bear_sweep_bar) and (close < lastPL)
short_entry := true
// avoid duplicate triggers from the same sweep
last_bear_sweep_bar := na
// ===== PLOTTING LINES =====
plot(lastPH, title="Last Swing High", color=color.orange, linewidth=2, style=plot.style_linebr)
plot(lastPL, title="Last Swing Low", color=color.teal, linewidth=2, style=plot.style_linebr)
// ===== LABELS & SHAPES (managed to avoid label flooding) =====
var label lb_bull_bos = na
var label lb_bear_bos = na
var label lb_bull_sweep = na
var label lb_bear_sweep = na
var label lb_long_entry = na
var label lb_short_entry = na
if showLabels
if bull_bos
if not na(lb_bull_bos)
label.delete(lb_bull_bos)
lb_bull_bos := label.new(bar_index, high, "Bull BOS ✓", yloc=yloc.abovebar, style=label.style_label_up, color=color.green, textcolor=color.white)
if bear_bos
if not na(lb_bear_bos)
label.delete(lb_bear_bos)
lb_bear_bos := label.new(bar_index, low, "Bear BOS ✓", yloc=yloc.belowbar, style=label.style_label_down, color=color.red, textcolor=color.white)
if bull_sweep
if not na(lb_bull_sweep)
label.delete(lb_bull_sweep)
lb_bull_sweep := label.new(bar_index, high, "Bull Sweep", yloc=yloc.abovebar, style=label.style_label_down, color=color.purple, textcolor=color.white)
if bear_sweep
if not na(lb_bear_sweep)
label.delete(lb_bear_sweep)
lb_bear_sweep := label.new(bar_index, low, "Bear Sweep", yloc=yloc.belowbar, style=label.style_label_up, color=color.purple, textcolor=color.white)
if long_entry
if not na(lb_long_entry)
label.delete(lb_long_entry)
lb_long_entry := label.new(bar_index, low, "LONG ENTRY", yloc=yloc.belowbar, style=label.style_label_up, color=color.lime, textcolor=color.black)
if short_entry
if not na(lb_short_entry)
label.delete(lb_short_entry)
lb_short_entry := label.new(bar_index, high, "SHORT ENTRY", yloc=yloc.abovebar, style=label.style_label_down, color=color.red, textcolor=color.white)
// optional shapes (good for quick visual scanning)
if showShapes
plotshape(bull_sweep, title="Bull Sweep Shape", location=location.abovebar, color=color.purple, style=shape.triangledown, size=size.tiny)
plotshape(bear_sweep, title="Bear Sweep Shape", location=location.belowbar, color=color.purple, style=shape.triangleup, size=size.tiny)
plotshape(long_entry, title="Long Shape", location=location.belowbar, color=color.lime, style=shape.triangleup, size=size.small)
plotshape(short_entry, title="Short Shape", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// ===== ALERTS =====
alertcondition(bull_bos, title="Bullish BOS", message="Bullish BOS confirmed above swing high")
alertcondition(bear_bos, title="Bearish BOS", message="Bearish BOS confirmed below swing low")
alertcondition(bull_sweep, title="Bullish Sweep", message="Liquidity sweep above swing high detected")
alertcondition(bear_sweep, title="Bearish Sweep", message="Liquidity sweep below swing low detected")
alertcondition(long_entry, title="LONG Entry", message="LONG Entry: BOS -> sweep -> reclaim")
alertcondition(short_entry, title="SHORT Entry", message="SHORT Entry: BOS -> sweep -> reclaim")
MA DeviationEnglish Description
Overview
The "MA Deviation" indicator is a powerful tool designed to measure and visualize the percentage difference between three separate moving averages. By quantifying the deviation, traders can gain insights into trend strength, potential reversals, and periods of market consolidation. When the moving averages diverge significantly, it often signals a strong, directional move.
This indicator is displayed in a separate pane below the main price chart.
Key Features
Three Customizable Moving Averages: You can independently configure the type (SMA, EMA, WMA, etc.) and length for three distinct moving averages (MA1, MA2, MA3).
Multiple Deviation Plots: The indicator plots the percentage deviation between:
MA1 and MA2 (Blue Line)
MA2 and MA3 (Red Line)
MA1 and MA3 (Green Line)
You can toggle each of these lines on or off.
Visual Threshold Signals: A key feature is the dynamic background color.
The background turns green when all enabled deviation lines move above a user-defined positive threshold (e.g., +0.5%), indicating a strong bullish consensus among the moving averages.
The background turns red when all enabled deviation lines fall below the negative threshold (e.g., -0.5%), indicating a strong bearish consensus.
Built-in Alerts: The script includes three specific alert conditions that trigger only on the first bar where the condition is met, preventing repetitive notifications:
The Color Came Out: Triggers when the background first turns either green or red.
Long Chance: Triggers only when the background first turns green.
Short Chance: Triggers only when the background first turns red.
How to Use
This indicator can be used to confirm trend strength or identify potential entry/exit points. For example:
A green background can be interpreted as a potential long entry signal or confirmation of a strong uptrend.
A red background can suggest a potential short entry opportunity or confirmation of a strong downtrend.
When the deviation lines hover around the zero line, it indicates that the market is consolidating or ranging.
Adjust the moving average lengths and the threshold percentage to tailor the indicator to your specific trading strategy and timeframe.
日本語説明 (Japanese Description)
概要
「MA Deviation」インジケーターは、3つの異なる移動平均線間の乖離率(パーセンテージ)を測定し、視覚化するために設計された強力なツールです。この乖離を数値化することで、トレーダーはトレンドの強さ、潜在的な反転、市場のレンジ相場についての洞察を得ることができます。移動平均線が大きく乖離する時、それはしばしば強力な方向性のある動きを示唆します。
このインジケーターは、メインの価格チャートの下にある別ペインに表示されます。
主な特徴
3つのカスタム可能な移動平均線: 3つの移動平均線(MA1, MA2, MA3)それぞれに対して、タイプ(SMA, EMA, WMAなど)と期間を個別に設定できます。
複数の乖離率プロット: このインジケーターは、以下の乖離率をラインでプロットします。
MA1とMA2の乖離率(青ライン)
MA2とMA3の乖離率(赤ライン)
MA1とMA3の乖離率(緑ライン)
これらのラインはそれぞれ表示・非表示を切り替えることが可能です。
背景色による視覚的なシグナル: このツールの最大の特徴は、動的に変化する背景色です。
有効になっている全ての乖離率ラインが、ユーザーが設定した正のしきい値(例:+0.5%)を上回ると、背景が緑色に変わります。これは移動平均線間で強気なコンセンサスが形成されていることを示します。
有効になっている全ての乖離率ラインが、負のしきい値(例:-0.5%)を下回ると、背景が赤色に変わります。これは弱気なコンセンサスを示します。
ビルトイン・アラート: スクリプトには、条件が成立した最初のバーでのみ作動する3種類のアラート機能が含まれており、繰り返し通知されるのを防ぎます。
The Color Came Out: 背景色が緑または赤に初めて変化した時にトリガーされます。
Long Chance: 背景色が初めて緑色に変化した時にのみトリガーされます。
Short Chance: 背景色が初めて赤色に変化した時にのみトリガーされます。
使用方法
このインジケーターは、トレンドの強さを確認したり、エントリー/エグジットのポイントを探るために使用できます。例えば、
緑色の背景は、ロングエントリーのシグナル、または強い上昇トレンドの確認と解釈できます。
赤色の背景は、ショートエントリーの機会、または強い下降トレンドの確認を示唆します。
乖離率ラインがゼロライン付近で推移しているときは、市場がレンジ相場であることを示します。
ご自身のトレーディング戦略や時間足に合わせて、移動平均線の期間やしきい値(%)を調整してご活用ください。
FractalReversalStrategyFiltered(SOL 5min) - ZERO FALSE TRADEThe profit that is shown in the strategy report uses a capital of 240 USD with 10x leverage. Only use this strategy in SOLUSD (5 MIN timeframe).
CDC Action Zone (TH) by MeowToolsThe CDC Action Zone indicator is like a stock market traffic light — it tells you when it’s green to go and when it’s red to stop. By combining just two EMAs (12 and 26), it highlights Buy and Sell zones clearly, cutting through market noise and keeping you on the right side of the trend. Think of it as a radar that spots the big moves before most people notice, giving you the confidence to ride the trend and exit before getting trapped. Meow 😺 give it a try and see how it can help your portfolio take off 🚀📈
Multi-Timeframe MACD Score (Customizable)this is a momentum based indicator to know the trend so we go with the trend.
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.
TrendIsYourFriend Strategy (SPY,IWM,VYM,XLK,SPXL,BTC,GOLD,VT...)Personal disclaimer
Don’t trust this strategy. Don’t trust any other model either just because of its author or a backtest curve. Overfitting is an easy trap, and beginners often fall into it. This script isn’t meant to impress you. It’s meant to survive reality. If it does, maybe it will raise questions and you’ll remember it.
Legal disclaimer
Educational purposes only. Not financial advice. Past performance is not indicative of future results.
Strategy description
Long-only, trend-based logic with two entry types (trend continuation or excess-move reversion), dynamic stop-losses, and a VIX filter to avoid turbulent markets.
Minimal number of parameters with enough trades to support robustness.
For backtest, each trade is sized at $10,000 flat (no compounding, to focus on raw model quality and the regularity of its results over time).
Fees = $0 (neutral choice, as brokers differ).
Slippage = $0, deliberate choice: most entries occur on higher timeframes, and some assets start their history on charts at very low prices, which would otherwise distort results.
What makes this script original
Beyond a classical trend calculation, both excess-move entries and dynamic stop-loss exits also rely on trend logic. Except for the VIX filter, everything comes from trend functions, with very few parameters.
Pre-configurations are fixed in the code, allowing sincere performance tracking across a dozen cases over the medium to long term.
Allowed
SPY (ARCA) — 2-hour chart: S&P 500 ETF, most liquid equity benchmark
IWM (ARCA) — Daily chart: Russell 2000 ETF, US small caps
VYM (ARCA) — Daily chart: Vanguard High Dividend Yield ETF
XLK (ARCA) — Daily chart: Technology Select Sector SPDR
SPXL (ARCA) — Daily chart: 3× leveraged S&P 500 ETF
BTCUSD (COINBASE) — 4-hour chart: Bitcoin vs USD
GOLD (TVC) — Daily chart: Gold spot price
VT (ARCA) — Daily chart: Vanguard Total World Stock ETF
PG (NYSE) — Daily chart: Procter & Gamble Co.
CQQQ (ARCA) — Daily chart: Invesco China Technology ETF
EWC (ARCA) — Daily chart: iShares MSCI Canada ETF
EWJ (ARCA) — Daily chart: iShares MSCI Japan ETF
How to use and form an opinion on it
Works only on the pairs above.
Feel free to modify the input parameters (slippage, fees, order size, margins, …) to see how the model behaves under your own conditions
Compare it with a simple Buy & Hold (requires an order size of 100% equity).
You may also want to look at its time-in-market — the share of time your capital is actually at risk.
Finally, let me INSIST on this : let it run live for months before forming an opinion!
Share your thoughts in the comments 🚀 if you’d like to discuss its live performance.
EMA + MACD Entry Signals (Jason Wang)EMA9、20、200 + MACD(12、26、9) Entry Signals ,严格的设置出入场条件
1.做多的k棒:
• EMA9 > EMA200
• EMA20 > EMA200
• EMA9 > EMA20
• MACD DIF > 0 且 DIF > DEM
• 入场信号:
• DIF 上穿 DEM
• 或 EMA9 上穿 EMA20
2.做空的k棒:
• EMA9 < EMA200
• EMA20 < EMA200
• EMA9 < EMA20
• MACD DIF < 0 且 DIF < DEM
• 入场信号:
• DIF 下穿 DEM
• 或 EMA9 下穿 EMA20
HH/HL/LH/LLThe script works by detecting swing highs and swing lows with a simple pivot function (ta.pivothigh / ta.pivotlow) using a fixed 2-bar lookback and confirmation window. Each new pivot is compared against the previous confirmed pivot of the same type:
If a swing high is greater than the last swing high → it is labelled HH.
If a swing high is lower than the last swing high → it is labelled LH.
If a swing low is greater than the last swing low → it is labelled HL.
If a swing low is lower than the last swing low → it is labelled LL.
To keep the chart clean and readable, the indicator:
Plots only the two-letter labels (HH, HL, LH, LL) with no background box.
Uses red text for highs and green text for lows.
Places labels directly at the pivot bar (with the necessary confirmation offset).
Keeps labels small (size.tiny) to avoid clutter.
Stochastic 6TF by jjuiiStochastic 6TF by J is a Multi-Timeframe (MTF) Stochastic indicator
that displays %K values from up to 6 different timeframes
in a single window. This helps traders analyze momentum
across short, medium, and long-term perspectives simultaneously.
Features:
- Supports 6 customizable timeframes (e.g., 5m, 15m, 1h, 4h, 1D, 1W)
- Option to show/hide each timeframe line
- Standard reference levels (20 / 50 / 80) with background shading
- Smoothed %K for clearer visualization
Best for:
- Cross-timeframe momentum analysis
- Spotting aligned Overbought / Oversold signals
- Confirming market trends and timing entries/exits
-------------------------------------------------------------
Stochastic 6TF by J คืออินดิเคเตอร์ Stochastic Multi Timeframe (MTF)
ที่สามารถแสดงค่า %K จากหลายกรอบเวลา (สูงสุด 6 TF)
ไว้ในหน้าต่างเดียว ช่วยให้นักเทรดมองเห็นโมเมนตัมของราคา
ทั้งระยะสั้น กลาง และยาว พร้อมกัน
คุณสมบัติ:
- เลือกกรอบเวลาได้ 6 ชุด (เช่น 5m, 15m, 1h, 4h, 1D, 1W)
- สามารถเปิด/ปิดการแสดงผลแต่ละ TF ได้
- มีเส้นแนวรับ/แนวต้านมาตรฐาน (20 / 50 / 80)
- ใช้เส้น %K ที่ถูกปรับค่าเฉลี่ยให้เรียบขึ้นเพื่ออ่านง่าย
เหมาะสำหรับ:
- การดูโมเมนตัมข้ามกรอบเวลา
- หาจังหวะ Overbought / Oversold ที่สอดคล้องกันหลาย TF
- ใช้ยืนยันแนวโน้มและหาจังหวะเข้า-ออกอย่างแม่นยำมากขึ้น
Sanjeev BO IndicatorGreat BO Indicator. Clear clean entry levels for both buy/sell, tgt1,2,3 for both buy and sell side. Clear SL.