MA Crossover Strategy V6//@version=6
strategy("MA Crossover Strategy V6", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// === Inputs ===
shortLength = input.int(9, title="Short MA Length", minval=1)
longLength = input.int(21, title="Long MA Length", minval=1)
useEMA = input.bool(false, title="Use EMA Instead of SMA")
// === Moving Averages ===
shortMA = useEMA ? ta.ema(close, shortLength) : ta.sma(close, shortLength)
longMA = useEMA ? ta.ema(close, longLength) : ta.sma(close, longLength)
// === Plot MAs ===
plot(shortMA, color=color.orange, title="Short MA", linewidth=2)
plot(longMA, color=color.blue, title="Long MA", linewidth=2)
// === Entry Conditions ===
longCondition = ta.crossover(shortMA, longMA)
shortCondition = ta.crossunder(shortMA, longMA)
// === Strategy Logic ===
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// === Optional: Plot Buy/Sell Signals ===
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
지표 및 전략
Adaptive Trend CatcherAdaptive Trend Catcher is an original indicator that combines Hull Moving Average smoothing, ATR-based volatility bands, and a CCI filter within an adaptive logic framework. It’s built to react intelligently to changing market conditions rather than applying fixed parameters.
The system uses hysteresis to confirm trend flips only after several consistent signals, minimizing noise and false reversals. During strong momentum bursts, it automatically tightens its internal deadzone and step size to stay responsive while maintaining stability in quieter periods.
The result is a dynamic trend engine that plots a color-shifting adaptive line — green for bullish, red for bearish — that adjusts smoothly with volatility. Optional upper/lower ATR bands can be displayed for added context.
How to use: Watch for confirmed trend color flips with supporting momentum. Bullish flips occur when price regains the lower band and CCI turns positive; bearish flips when price falls below the upper band and CCI turns negative.
Includes alert conditions for both reversals.
For educational purposes only. Not financial advice.
Inverse VIX / Custom Inverse Line🎯 Main Idea
This indicator creates a line that moves opposite to the VIX (Volatility Index) — or any symbol you choose.
When VIX rises (fear increases), → this line goes down.
When VIX falls (market calm), → this line goes up.
It helps you visually understand market sentiment — calm periods (bullish) vs fear periods (bearish).
⚙️ Input Settings
Setting Description
Symbol to invert The symbol to invert. Default is CBOE:VIX.
Inverse mode The method used to invert the values. There are 3 options:
① Negate Simply flips the sign (multiplies by -1). Very straightforward.
② Reciprocal Uses the mathematical inverse (1 ÷ value). High values become smaller, and vice versa.
③ Inverse Normalized The most useful mode 🔥 — normalizes values between 0–100 and flips them, similar to an RSI.
Normalization lookback How many bars to use for normalization (default 252 = roughly one trading year).
Smoothing (SMA) Number of bars for smoothing (makes the line smoother).
Use log for reciprocal Uses logarithmic scaling to stabilize big swings.
Plot color / width Customize the line’s color and thickness.
Show original source If enabled, shows the original VIX line for comparison.
📈 How It Works
The script fetches the close price of the VIX (or your chosen symbol).
It applies the selected inversion method.
The inverted line is plotted on the chart.
In “Inverse Normalized” mode:
The range is 0–100.
Values above 75 = high optimism (market often overheated).
Values below 25 = high fear (potential buying opportunity).
A middle line at 50 marks neutral sentiment.
⚠️ Alerts
The indicator includes two default alerts when using “Inverse Normalized” mode:
🔔 Above 75: Market showing strong optimism (potential top or correction zone).
🔔 Below 25: Market showing fear (potential bottom or buy signal).
🧠 How to Use It
Use it on daily or weekly charts for clearer signals.
Compare it with SPX or NASDAQ:
When the Inverse VIX line rises, markets often go up.
When it falls, markets usually drop or consolidate.
Combine it with other indicators (e.g., RSI, MACD) for confirmation.
ALMASTO – Pro Trend & Momentum (v1.1)ALMASTO — Pro Trend & Momentum Strategy
Description:
This strategy is designed for precision trading in both Forex (FX) and Crypto markets.
It combines multi-timeframe trend confirmation (EMA200), momentum filters (RSI, MACD, ADX), and ATR-based dynamic risk management.
ALMASTO — Pro Trend & Momentum Strategy automatically manages take-profit levels, stop-loss, and breakeven adjustments once TP1 is reached — providing a structured and emotion-free trading approach.
Optimal Use
Works best on lower timeframes (5m–15m) with strong liquidity sessions.
Optimized for pairs like EURUSD, XAUUSD, and BTCUSDT.
Built for trend-following setups and momentum reversals with high volatility confirmation.
Recommended Settings
🔹 Forex – 5m
EMA Fast = 34, EMA Slow = 200, HTF = 1H
RSI (14): Long ≥ 55 / Short ≤ 45
MACD (8 / 21 / 5), ADX Len 10 / Min 27
ATR Len 7, Stop Loss = ATR × 2.1
TP1 = 1.1 RR, TP2 = 2.3 RR
Session = 07:00–11:00 & 12:30–16:00 (Exchange Time)
Risk = 0.8% per trade
🔹 Forex – 15m
EMA Fast = 50, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 53 / Short ≤ 47
MACD (12 / 26 / 9), ADX Min 24
ATR Len 10, SL = ATR × 1.9
TP1 = 1.2 RR, TP2 = 2.6 RR
Risk = 1.0% per trade
🔹 Crypto – 5m (BTC/USDT)
EMA Fast = 34, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 56 / Short ≤ 44
MACD (8 / 21 / 5), ADX Min 30
ATR Len 7, SL = ATR × 2.2
TP1 = 1.0 RR, TP2 = 2.5 RR
Session = 00:00–06:00 & 12:00–22:00 (UTC)
Risk = 0.5% per trade
Core Features
✅ Auto breakeven after TP1
✅ Dual take-profit system (1:1 & 1:2 RR)
✅ ATR-based stop & trailing logic
✅ Filters for session time, volume, and volatility
✅ Candle-body vs ATR size filter to avoid noise
✅ Optional cooldown between trades
Important Notes
Use bar close confirmation only (barstate.isconfirmed) to avoid repainting on lower timeframes.
Adjust commission (0.01–0.03%) and slippage (1–2 ticks) in Strategy Tester for realistic results.
Avoid low-liquidity hours (after 21:00 UTC for FX / after midnight for crypto).
Backtest using realistic broker data (e.g., BlackBull Markets / Bybit / Binance Futures).
Best results occur during London & New York sessions with moderate volatility.
⚠️ Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice.
Use proper risk management and test thoroughly before using on live accounts.
Developed by KING FX Labs
Built and optimized by Yousef Almasto — combining advanced price-action logic, multi-timeframe EMA structure, and volatility-adaptive ATR management.
Tested across Forex, Gold, and Crypto markets to ensure consistent performance and minimal drawdown.
📈 “Precision Trading. Zero Emotion. Pure Momentum.”
- Standardized Money Flow Index with Multi-MA and BB OverlayThis custom Money Flow Index (MFI) script enhances the standard MFI by introducing multiple layers of configurability, statistical normalization, and visual clarity. It begins with the traditional MFI calculation using the average price, hlc3, and a user-defined length, then offers the option to standardize the output. Standardization transforms the MFI into a z-score by subtracting a rolling mean and dividing by a rolling standard deviation, making the indicator statistically interpretable across different assets, timeframes, and volatility regimes. When standardization is active, the overbought and oversold thresholds shift from the conventional 80 and 20 to +2 and –2, aligning them with standard deviation boundaries and improving signal clarity in volatile environments.
Beyond standardization, the script introduces a robust smoothing engine. Users can choose from several moving average types, including SMA, EMA, SMMA (RMA), WMA, and VWMA, to reduce noise and highlight trend shifts. A particularly advanced option is the “SMA + Bollinger Bands” mode, which overlays volatility envelopes around the smoothed MFI using a user-defined standard deviation multiplier. This feature helps traders identify when the MFI is unusually high or low relative to its recent behaviour, adding a volatility-adjusted layer of insight, especially useful in momentum or mean-reversion setups.
Visually, the script is designed for clarity, modularity, and flexibility. It plots the raw or standardized MFI in purple, overlays the smoothed version in yellow if enabled, and adds green Bollinger Bands when selected. It also includes horizontal reference lines for overbought, oversold, and midpoint levels, which dynamically adjust based on whether standardization is active. A shaded background between the overbought and oversold lines further enhances readability, helping traders quickly assess momentum extremes and potential inflection zones.
Compared to the standard MFI, which offers a fixed calculation, limited visual feedback, and no statistical context, this enhanced version is modular, customizable, and statistically grounded. It allows traders to tailor the indicator to their strategy, whether they prefer raw signals, smoothed trends, or volatility-adjusted extremes. These enhancements make it a powerful building block for more sophisticated signal engines, especially when combined with filter gating, persistent state logic, or multi-indicator overlays.
HoneG_実体比率表示最新のローソク足にリアルタイム実体比率を表示する補助ツールです。
陽線の場合なら、実体÷(実体+上ヒゲ)の%をローソク足の上に表示させ、
陰線の場合なら、実体÷(実体+下ヒゲ)の%をローソク足の下に表示します。
This is an auxiliary tool that displays the real-time body ratio on the latest candlestick.
For bullish candles, it displays the percentage of body ÷ (body + upper shadow) above the candlestick.
For bearish candles, it displays the percentage of body ÷ (body + lower shadow) below the candlestick.
NYSE FOMO Indicator (Up/Down Volume Ratio)This script plots the NYSE Sentiment Gauge, based on the daily Up/Down Volume Ratio (UVOL ÷ DVOL).
It measures crowd emotion in the overall market:
• ≥ 3 = Red: FOMO, extreme buying.
• 2–3 = Yellow: Cautious optimism.
• 0.5–2 = Grey: Neutral zone.
• 0.33–0.5 = Green: Emerging fear.
• ≤ 0.33 = Bright Green: Panic selling, potential bottom.
The line color and chart background change according to these zones, visually showing shifts in market sentiment.
JTW BAR Size Warning This simple script checks bar size and if it exceeds a certain number, it will turn the candle yellow. Option to determine an oversized candle from the high to the low or from the open to the close (ignoring the wick).
Equal Highs and Lows (Live)live eq highs and lows
gotta yap a little because shi wont let me publish it. talm about some "gosh thats very breif, tell your users a little more about your script"
eq highs and lows and idc if you use it or change the code to suit you.
ts shi is free to use and idgaf what you do with it really
RSI Core Analysis EngineHI traders
This tool employs a higher-sensitivity RSI than conventional settings to capture market shifts earlier.
When the Ultra Fast RSI (UF) approaches upper or lower extremes, short-term profit-taking or pullbacks tend to occur, and a crossover between UF and the Composite RSI can serve as a signal of a regime change.
However, in strong trends the RSI can remain pinned for extended periods, so combine it with ADX, volume, and volatility measures to improve accuracy.
While early detection is an advantage, it also increases noise. This tool uses a four-stage confirmation process (DMI/ADX → MACD/Stochastics/RSI acceleration → five-layer alignment) and quality/confidence scores to filter for higher-expectancy setups.
It will not be effective in every market condition. Use it with predefined stop-losses and prudent position sizing.
-------------------------------------------------------------------------------------------------------
Strongly recommended preset (because the indicator packs many features):
Step 1 — Inputs tab
Center Level: 50
OB1: 60, OB2: 70, OB3: 95
OS1: 40, OS2: 30, OS3: 5
Step 2 — Style tab
✅ Ultra Fast RSI — Thickest
✖ Fast RSI
✖ Medium RSI
✖ Standard RSI
✖ Slow RSI
✅ Composite RSI — Thickest
✅ Stage Indicator
✖ RSI Velocity
✖ RSI Acceleration
✅ Quality Score
✅ Bullish Cross
✅ Bearish Cross
✅ Strong Signal Background
Levels:
・✅ Center 50 — Thickest
・✅ OB1 60, OB2 70, OB3 95 (thicker)
・✅ OS1 40, OS2 30, OS3 5 (thicker)
-------------------------------------------------------------------------------------------------------------
thats enough
have a nice trade
Volume Weighted Average Price Band Extension## Volume Weighted Average Price Band Extension (VWAPb)
**Volume Weighted Average Price Band Extension** is an enhanced VWAP indicator that extends the traditional three-band system to include up to **five configurable standard deviation bands**, making it particularly well-suited for analyzing volatile market conditions where price action frequently extends beyond conventional boundaries.
### Key Features
**Extended Band System**
Unlike standard VWAP indicators that typically offer three bands, this indicator provides five independently configurable bands with customizable multipliers (default: 0.5x, 1.0x, 1.5x, 2.0x, and 3.0x). Each band can be toggled on or off, allowing traders to adapt the display to current market volatility and their specific trading strategy.
**Dual Calculation Modes**
The indicator offers flexibility in how bands are calculated:
- **Standard Deviation Mode**: Traditional statistical approach measuring price dispersion from the VWAP
- **Percentage Mode**: Distance calculated as a percentage of VWAP (1 multiplier = 1%), useful for comparing relative moves across different price levels
**Flexible Anchor Periods**
Calculate VWAP from multiple timeframes and events:
- Time-based: Session, Week, Month, Quarter, Year, Decade, Century
- Event-based: Earnings reports, Dividend announcements, Stock splits
- Customizable source (default: hlc3)
**Visual Clarity**
Color-coded bands with semi-transparent fills between upper and lower boundaries help identify key support and resistance zones at a glance. The indicator automatically hides on daily and higher timeframes when enabled, keeping charts clean.
### Ideal For
- **Volatile Markets**: The extended band system captures extreme price movements that often exceed traditional 2-3 standard deviation bounds
- **Scalping & Day Trading**: Multiple bands provide granular entry and exit zones for short-term trades
- **Mean Reversion Strategies**: Identify overextended price action relative to volume-weighted fair value
- **Institutional Order Flow Analysis**: VWAP remains a key benchmark for institutional execution
### How It Works
The Volume Weighted Average Price represents the average price weighted by volume throughout the selected anchor period. The surrounding bands act as dynamic support and resistance levels, with each successive band representing areas of increasing deviation from the volume-weighted mean. In volatile conditions, price may regularly test the outer bands (2.0x, 3.0x), which would be invisible on standard three-band implementations.
**Trading Applications:**
- Price near outer bands (±2.0x, ±3.0x) may signal exhaustion and potential reversal opportunities
- Price oscillating between inner bands (±0.5x, ±1.0x) indicates consolidation
- VWAP itself acts as a dynamic pivot point—bullish above, bearish below
### Settings Overview
- **VWAP Settings**: Anchor period selection, source input, offset capability, option to hide on D/W/M timeframes
- **Bands Settings**: Toggle each of the five bands independently, adjust multipliers, choose between Standard Deviation or Percentage calculation mode
---
**Note**: This indicator requires volume data to function properly. A runtime error will display if volume data is unavailable for the selected symbol.
**Disclaimer**: This indicator is designed for technical analysis and should be used in conjunction with other forms of analysis and proper risk management. Past performance and indicator signals do not guarantee future results.
TRADALOGIX A-Setup Mentoring Checklist97% of traders (new or old) sometime forget that to win the markets consistently, you have to be consistent in your thought process as well. Many that come to me desire only to know the secrets to my trading success. And I ask the same question to each and everyone: What are your steps in finding, validating & executing the best trade possible? Majority of the times, they know of only 3-5 points to consider when trading. Hence the reason why many traders fail.
This led me down to compiling a 1000 trader survey. It resulted in finding the reasons for trader failures. Most traders were unaware of some of the critical steps in finding, validating & executing the A-Setup trade of the day.
Once launched, you will find the critical steps in processing your setup. No one item should be ignored if you are seeking consistency in your trading. Good luck.
Trend 1EMA Trend tracker.
This script plots two EMAs: a short-term EMA (line) and a long-term EMA (dots). The line color turns green when the short EMA is above the long EMA, and red when it’s below. Users can select a custom timeframe for the EMA calculation using the input settings. A shaded area is drawn between the two EMAs to visually represent the trend zone.
Combined Triggers Dashboard//@version=6
indicator("Combined Triggers Dashboard", overlay=true)
// ======================= INPUTS =======================
// Daily Trigger
shortDEMA_D = input.int(10, "Daily 10 DEMA")
longDEMA_D = input.int(20, "Daily 20 DEMA")
volAvgLen_D = input.int(20, "Daily 20-day Avg Volume")
volMultiplier_D = input.float(3, "Daily Volume Multiplier")
weekDEMAlen_D = input.int(10, "10-Week DEMA Reference for Daily Trigger")
// Weekly Trigger
shortDEMA_W = input.int(10, "Weekly 10 W DEMA")
longDEMA_W = input.int(20, "Weekly 20 W DEMA")
volAvgLen_W = input.int(50, "50-day Avg Volume for Weekly Trigger")
volMultiplier_W = input.float(3, "Weekly Volume Multiplier")
// Original Trigger (example)
shortDEMA_O = input.int(10, "Original 10 DEMA")
longDEMA_O = input.int(20, "Original 20 DEMA")
volAvgLen_O = input.int(20, "Original 20-day Avg Volume")
volMultiplier_O = input.float(3, "Original Volume Multiplier")
// ======================= FUNCTIONS =======================
f_dema(_src, _len) =>
ema1 = ta.ema(_src, _len)
ema2 = ta.ema(ema1, _len)
2 * ema1 - ema2
// ======================= DAILY TRIGGER =======================
dema10D = f_dema(close, shortDEMA_D)
dema20D = f_dema(close, longDEMA_D)
dailyVol = volume
avgVol20 = ta.sma(dailyVol, volAvgLen_D)
volCondition_D = dailyVol > volMultiplier_D * avgVol20
priceCondition_D = close > dema10D
demaCondition_D = dema10D > dema20D
weeklyClose_D = request.security(syminfo.tickerid, "W", close)
dema10W_D = ta.ema(weeklyClose_D, weekDEMAlen_D) * 2 - ta.ema(ta.ema(weeklyClose_D, weekDEMAlen_D), weekDEMAlen_D)
trigger_D = priceCondition_D and demaCondition_D and volCondition_D
plotshape(trigger_D, title="Daily Trigger", style=shape.triangleup, location=location.abovebar,
text="DTRG", textcolor=color.white, color=color.new(#FF4500, 0), size=size.small)
alertcondition(trigger_D, title="Daily DEMA Trigger Alert", message="Daily DEMA trigger detected")
// ======================= WEEKLY TRIGGER =======================
weeklyClose_W = request.security(syminfo.tickerid, "W", close)
dema10W = f_dema(weeklyClose_W, shortDEMA_W)
dema20W = f_dema(weeklyClose_W, longDEMA_W)
dailyVolW = volume
avgVol50 = ta.sma(dailyVolW, volAvgLen_W)
volCondition_W = dailyVolW > volMultiplier_W * avgVol50
priceCondition_W = close > dema20W
demaCondition_W = dema10W > dema20W
trigger_W = priceCondition_W and demaCondition_W and volCondition_W
plotshape(trigger_W, title="Weekly Trigger", style=shape.triangledown, location=location.abovebar,
text="WTRG", textcolor=color.white, color=color.new(#1E90FF, 0), size=size.small)
alertcondition(trigger_W, title="Weekly DEMA Trigger Alert", message="Weekly DEMA trigger detected")
// ======================= ORIGINAL TRIGGER =======================
dema10O = f_dema(close, shortDEMA_O)
dema20O = f_dema(close, longDEMA_O)
dailyVolO = volume
avgVolO = ta.sma(dailyVolO, volAvgLen_O)
volCondition_O = dailyVolO > volMultiplier_O * avgVolO
priceCondition_O = close > dema10O
demaCondition_O = dema10O > dema20O
trigger_Orig = priceCondition_O and demaCondition_O and volCondition_O
plotshape(trigger_Orig, title="Original Trigger", style=shape.labelup, location=location.belowbar,
text="TRG", textcolor=color.white, color=color.new(#32CD32, 0), size=size.small)
// ======================= COMBINED TABLE =======================
var table dash = table.new(position.top_right, 2, 20, border_width=1)
if barstate.islast
// --- DAILY TRIGGER (rows 0-4) ---
table.cell(dash, 0, 0, "Daily Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 0, trigger_D ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_D ? color.new(#FF4500, 0) : color.new(#555555, 50))
table.cell(dash, 0, 1, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 1, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_D ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 2, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 2, str.tostring(dema10D, format.price) + " > " + str.tostring(dema20D, format.price), text_color=color.white, bgcolor=demaCondition_D ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 3, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 3, str.tostring(dailyVol, format.volume) + " / " + str.tostring(avgVol20, format.volume), text_color=color.white, bgcolor=volCondition_D ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 4, "10W DEMA Ref", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 4, str.tostring(dema10W_D, format.price), text_color=color.white, bgcolor=color.new(#00FFFF, 0))
// --- WEEKLY TRIGGER (rows 5-9) ---
table.cell(dash, 0, 5, "Weekly Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 5, trigger_W ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_W ? color.new(#1E90FF, 0) : color.new(#555555, 50))
table.cell(dash, 0, 6, "CMP > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 6, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_W ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 7, "10W > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 7, str.tostring(dema10W, format.price) + " > " + str.tostring(dema20W, format.price), text_color=color.white, bgcolor=demaCondition_W ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 8, "Daily Vol > 3x50D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 8, str.tostring(dailyVolW, format.volume) + " / " + str.tostring(avgVol50, format.volume), text_color=color.white, bgcolor=volCondition_W ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
// --- ORIGINAL TRIGGER (rows 10-14) ---
table.cell(dash, 0, 10, "Original Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 10, trigger_Orig ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_Orig ? color.new(#32CD32, 0) : color.new(#555555, 50))
table.cell(dash, 0, 11, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 11, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_O ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 12, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 12, str.tostring(dema10O, format.price) + " > " + str.tostring(dema20O, format.price), text_color=color.white, bgcolor=demaCondition_O ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 13, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 13, str.tostring(dailyVolO, format.volume) + " / " + str.tostring(avgVolO, format.volume), text_color=color.white, bgcolor=volCondition_O ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
Dynamic 21 SMA Zone S/R (Weekly and 2-Day)This custom indicator creates a dynamic support and resistance zone based on the 21-period Simple Moving Average (SMA) from the weekly timeframe and the 21-period SMA from the 2-day timeframe. The zone is visible and functional across all chart timeframes, adapting seamlessly to provide multi-timeframe insights.
Color Logic:
Green: When the current price is fully above the upper boundary of the zone, indicating potential bullish strength or a support level.
Gray: When the price is fully below the lower boundary, signaling potential bearish pressure or a resistance level.
Light Blue: When the price is within the zone (between the two SMAs), representing a neutral "no man's land" where the market is indecisive.
As the two SMAs converge or diverge, the zone naturally thins or widens, visually reflecting changes in market momentum—such as a thinning green zone during a potential reversal. Ideal for higher-timeframe swing trading to identify key levels, this indicator is also useful on lower timeframes for gauging the relative position of these SMAs, helping traders align short-term moves with broader trends.
Larry Williams - Smash Day (SL/TP in %)This strategy implements Larry Williams’ “Smash Day” reversal concept on any symbol and timeframe (daily is the classic). A Smash Day is a bar that closes beyond a recent extreme and then potentially reverses on the next session.
Overleverage Short Screener Alert Overleverage Short Screener Alert Guide (inspired by a posting "an on-chain trader nicknamed "Calm Order King" has reportedly made over $10 million in porfit this month - mainly by shorting BTC and SOL at precise reversal points", this script tries to guess his work.
🎯 Purpose of the Script
The script aims to identify potential **shorting opportunities** in derivatives markets (Perpetual Futures).
It looks for a setup often associated with a "long squeeze" or "blow-off top" by checking three criteria simultaneously: **High Excitement**, **Liquidity Buildup**, and the start of a **Price Dip**.
***
### 🛠️ Customize Inputs (Settings)
Access the indicator's settings window to adjust the following values:
Funding Rate Threshold (%):** Controls the required bar momentum (proxy for excitement). *Adjust between 0.01 and 0.05.*
OI MA Period:** Sets the lookback period for the Open Interest/Volume trend. *Use 7 to 14.*
OI Spike % Above MA:** Defines how far above its trend the Volume/OI must be to signal high liquidity buildup. *Try 20.0 to 50.0.*
Price Drop % From X-Period High:** Sets the minimum percentage drop required from the recent high to confirm the setup. *Use 3.0 to 7.0.*
High Timeframe:** The period used to calculate the "recent high." *Use '7D' (7 Days) or '1D' (1 Day).*
***
🔔 Reading the Signal and Setting Alerts
Visual Signal (Short\_Alert):** A **red triangle down** will appear at the top of the indicator pane when all three conditions are met. The background will also turn light red.
Signal Confirmation:**
* The **FR Proxy % (Blue Line)** must be **above** its blue threshold line.
* The **OI Spike % (Orange Line)** must be **above** its orange threshold line.
* The **Price Drop % (Fuchsia Line)** must be **below** its fuchsia threshold line.
Setting Alerts:**
1. Click the **"Alert"** button (bell icon) on the chart.
2. Set the **Condition** to the indicator's name: **"Overleverage Short Screener Alert
3. Set the specific condition to: **"Overleverage Short Alert"**.
4. The default alert message includes the current percentage values for all three factors for quick review.
Marin Andrei - EMA 20-30 Price Alerts • Regime + Session Filter A clean and reliable trend-following alert system based on the 20 EMA and 30 EMA crossover zone, enhanced with multiple smart filters to eliminate noise and false signals. - configurable.
Core features:
✅ Trend confirmation: Buy only when price is above both EMAs; sell only when below.
📈 Slope & momentum filters: Optional slope and ATR-based spread validation.
🕒 Regime filter: Trade only in the direction of the higher-timeframe EMA trend (e.g., 200 EMA).
⏰ Session control: Limit signals to your preferred trading hours.
🔔 Built-in alerts: Instant notifications for clean buy/sell conditions.
Perfect for traders who want EMA-based precision entries with smarter filters for volatility, session timing, and overall market regime.
Larry Williams Bonus Track PatternThis strategy trades the day immediately following an Inside Day, under specific directional and timing conditions. It is designed for daily-based setups but executed on intraday charts to ensure orders are placed exactly at the open of the following day, rather than at the daily bar close.
Entry Conditions
Only trades on Monday, Thursday, or Friday.
The previous day must be an Inside Day (its high is lower than the prior high and its low is higher than the prior low).
The bar before the Inside Day must be bullish (close > open).
On the following day (t):
The daily open must be below both the Inside Day’s high and the highest high of the two days before that.
A buy stop is placed at the highest high of the three previous days (Inside Day and the two days before it).
If the new day’s open is already above that level (gap up), the strategy enters long immediately at the open.
Exit Rules
Stop Loss: Fixed, defined in points or percentage (user input).
FPO (First Profitable Open): the position is closed at the first daily open after the entry day where the open price is above the average entry price (the first profitable open).
Notes
The script must be applied on an intraday timeframe (e.g., 15-minute or 1-hour) so that the strategy can:
Detect the Inside Day pattern using daily data (request.security).
Execute orders in real time at the next day’s open.
Running it directly on the daily timeframe will delay executions by one bar due to Pine Script’s evaluation model.
Eig Buy & Sell Signals OnlyThis indicator draws Buy and Sell signals on the current candlestick, based on a complete reversal pattern of the previous three Heikin Ashi (HA) candlesticks:
🟢 Buy Entry (Reversal to Long):
A buy entry signal when the trend changes from bearish (downtrend) to bullish (uptrend).
Pattern: 2 Red HA Bars → followed by 1 Green HA Bar
🔴 Sell Entry (Reversal to Short / Exit Long):
A sell entry/reversal signal when the trend changes from bullish (uptrend) to bearish (downtrend).
Pattern: 2 Green HA Bars → followed by 1 Red HA Bar
💡 How to Use
This indicator is suitable for use as a confirmation tool:
Entry/Exit: Use the triangle signals (Buy/Sell) as entry/exit points.
Masonson QQQ Composite Strategy (3 Indicator Alert)pinescript
//@version=5
indicator("Masonson QQQ Composite Strategy (3 Indicator Alert)", overlay=true)
// Moving Averages
ma20 = ta.sma(close, 20)
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
// MACD
= ta.macd(close, 12, 26, 9)
// RSI (7-period)
rsi = ta.rsi(close, 7)
// Bullish / Bearish Conditions
bullishCount = 0
bearishCount = 0
// Trend (Moving Averages)
if close > ma20 and ma20 > ma50
bullishCount += 1
if close < ma20 and ma20 < ma50
bearishCount += 1
// MACD Momentum
if macdLine > signalLine
bullishCount += 1
else if macdLine < signalLine
bearishCount += 1
// RSI Overbought / Oversold
if rsi < 30
bullishCount += 1
else if rsi > 70
bearishCount += 1
// Final Signal Logic
bullishSignal = bullishCount >= 2
bearishSignal = bearishCount >= 2
// Prevent simultaneous signals
if bullishSignal and bearishSignal
runtime.error("Error: Both bullish and bearish signals triggered!")
// Plotting Moving Averages
plot(ma20, color=color.new(color.yellow, 0), title="20 SMA", linewidth=2)
plot(ma50, color=color.new(color.orange, 0), title="50 SMA", linewidth=2)
plot(ma200, color=color.new(color.red, 0), title="200 SMA", linewidth=2)
// Cooldown logic for signals
var float lastSignalBar = na
canPlotBullish = na(lastSignalBar) or bar_index > lastSignalBar + 5
canPlotBearish = na(lastSignalBar) or bar_index > lastSignalBar + 5
// Update last signal bar
if bullishSignal and canPlotBullish
lastSignalBar := bar_index
if bearishSignal and canPlotBearish
lastSignalBar := bar_index
// Plot signals
plotshape(bullishSignal and canPlotBullish ? true : na, title="Bullish Signal", location=location.belowbar, color=color.new(color.lime, 0), style=shape.triangleup, size=size.normal, text="BUY")
plotshape(bearishSignal and canPlotBearish ? true : na, title="Bearish Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.normal, text="SELL")
// Plot counts for use in alert messages
plot(bullishCount, title="Bullish Count", display=display.none)
plot(bearishCount, title="Bearish Count", display=display.none)
// Alerts with audible notification
alertcondition(bullishSignal and not bullishSignal , title="Bullish Alert", message=" {{alert.sonify}}")
alertcondition(bearishSignal and not bearishSignal , title="Bearish Alert", message=" {{alert.sonify}}")
// Info Table
var table infoTable = table.new(position.top_right, 2, 4, bgcolor=color.new(color.white, 80), border_width=1)
if barstate.islast
table.cell(infoTable, 0, 0, "Indicator", text_color=color.black, bgcolor=color.new(color.gray, 50))
table.cell(infoTable, 1, 0, "Value", text_color=color.black, bgcolor=color.new(color.gray, 50))
table.cell(infoTable, 0, 1, "Bullish Count", text_color=color.black)
table.cell(infoTable, 1, 1, str.tostring(bullishCount), text_color=color.green, bgcolor=color.new(color.green, 90))
table.cell(infoTable, 0, 2, "Bearish Count", text_color=color.black)
table.cell(infoTable, 1, 2, str.tostring(bearishCount), text_color=color.red, bgcolor=color.new(color.red, 90))
table.cell(infoTable, 0, 3, "Signal", text_color=color.black)
signalText = bullishSignal ? "BULLISH" : bearishSignal ? "BEARISH" : "NEUTRAL"
signalColor = bullishSignal ? color.green : bearishSignal ? color.red : color.gray
table.cell(infoTable, 1, 3, signalText, text_color=color.white, bgcolor=color.new(signalColor, 20))
Summary of How the Indicator Works
The Masonson QQQ Composite Strategy (3 Indicator Alert) is a Pine Script v5 indicator designed for the QQQ (Nasdaq-100 ETF) to identify bullish and bearish trading signals based on three technical indicators: Moving Averages, MACD, and RSI. It generates buy or sell signals when at least two of three conditions align, visualizes them on the chart, and provides audible alerts and an info table for real-time monitoring.
Indicators Used:
Moving Averages: Calculates 20-period, 50-period, and 200-period Simple Moving Averages (SMAs).
MACD: Uses standard settings (12, 26, 9) to compute the MACD line and signal line.
RSI: Calculates a 7-period Relative Strength Index to identify overbought (>70) or oversold (<30) conditions.
Signal Logic:
Bullish Conditions:
Price is above 20 SMA and 20 SMA is above 50 SMA (indicating an uptrend).
MACD line is above the signal line (indicating bullish momentum).
RSI is below 30 (indicating oversold conditions).
Bearish Conditions:
Price is below 20 SMA and 20 SMA is below 50 SMA (indicating a downtrend).
MACD line is below the signal line (indicating bearish momentum).
RSI is above 70 (indicating overbought conditions).
A counter (bullishCount or bearishCount) increments for each condition met.
A signal is generated if at least 2 out of 3 conditions are met (bullishSignal or bearishSignal).
Visualization:
Plots 20 SMA (yellow), 50 SMA (orange), and 200 SMA (red) on the chart.
Displays buy signals as green upward triangles labeled "BUY" below the bar and sell signals as red downward triangles labeled "SELL" above the bar.
Implements a 5-bar cooldown to prevent signal clutter.
Shows an info table in the top-right corner with:
Bullish Count (number of bullish conditions met).
Bearish Count (number of bearish conditions met).
Current signal status (BULLISH, BEARISH, or NEUTRAL).
Alerts:
Triggers audible alerts when a new bullish or bearish signal occurs (not on consecutive bars).
Alert messages include the ticker symbol and the respective count (e.g., "Bullish Signal: QQQ - LONG entry. Count: 2").
Uses {{alert.sonify}} for audible notifications in TradingView.
Safety Features:
Includes a check to prevent simultaneous bullish and bearish signals, raising a runtime error if both occur.
Multi-TF MA Overlay (Double + Regular)Displays multiple moving averages from various timeframes (1m–30m) overlaid on a single chart.
Includes two independent MA sets for comparison and a same-timeframe regular MA.
All parameters are customizable.
Disclaimer: For visual analysis only — not financial advice.