Indicadores e estratégias
Lunar Cycle Tracker - (Moon + 3 Mercury Retrogrades)This script overlays the lunar and Mercury retrograde cycles directly onto your chart, helping traders visualize natural timing intervals that may influence market behavior.
Key Features:
🌑 New Moon & Full Moon Markers:
Vertical lines and labels indicate new and full moon events each month. You can fully customize their colors.
🌗 Last Quarter Moon Fill:
A soft pink background highlights the last quarter moon phase (from 7.4 days after the full moon to the next new moon).
🪐 Three Mercury Retrograde Zones:
Highlight up to three retrograde periods per year with customizable date inputs and background color. Great for spotting potential reversal or volatility windows.
Customization:
Moon event dates and colors
Manual input for Mercury retrograde periods (year, month, day)
Full compatibility with all timeframes (1H, 4H, daily, etc.)
Great for astro-cycle traders, Gann-based analysts, or anyone who respects time symmetry in the markets.
Fully customizable & works across all timeframes.
This tool was created by AngelArt as part of a larger astro-market model using lunar timing and planetary retrogrades for cycle-based market analysis.
اختبار بسيط//@version=5
indicator("إشارة شراء قوية", overlay=true)
// المتوسطات
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
// الإيشيموكو
conversionLine = ta.ema(close, 9)
baseLine = ta.ema(close, 26)
spanA = (conversionLine + baseLine) / 2
spanB = ta.ema(close, 52)
// VWAP
vwap = ta.vwap
// ADX و RSI
adx = ta.adx(14)
rsi = ta.rsi(close, 14)
// MACD
= ta.macd(close, 12, 26, 9)
// الفوليوم
volumeCondition = volume > ta.sma(volume, 20) and close > open
// شروط الشراء
buyCondition = close > ema9 and close > ema21 and close > ema50 and
close > spanA and close > spanB and
close > vwap and
adx > 25 and
rsi > 66 and
macdLine > signalLine and macdLine > 0 and
volumeCondition
// إشارة على الشارت
plotshape(buyCondition, title="إشارة شراء", location=location.belowbar, color=color.green, style=shape.labelup, text="شراء")
// عرض المتوسطات
plot(ema9, color=color.orange)
plot(ema21, color=color.blue)
plot(ema50, color=color.red)
Swing Trading with Candlestick Patterns and Counting//@version=6
indicator("Swing Trading with Candlestick Patterns and Counting", overlay=true)
// Define the moving averages
ma20 = ta.sma(close, 20)
ma200 = ta.sma(close, 200)
// Define Bullish Candlestick Patterns
bullish_marubozu = close == high and open == low
bullish_hammer = low < open and low < close and close > open and (high - close) < (close - open) * 2
bullish_engulfing = close > open and open > close and close > open and open < close
// Calculate the flatness of the moving averages (difference between 20SMA and 200SMA)
ma_diff = math.abs(ma20 - ma200)
flat_moving_avg = ma_diff < (ma200 * 0.01) // Flat if the difference is less than 1% of the 200 SMA
// Define the buy condition: Bullish pattern above both SMAs when they are flat
buy_condition = (bullish_marubozu or bullish_hammer or bullish_engulfing) and close > ma20 and close > ma200 and flat_moving_avg
// Define a variable to track when a buy signal occurs
var bool buy_signal_occurred = false
if buy_condition
buy_signal_occurred := true
// Count consecutive bullish candlesticks after a buy signal
var int bullish_count = 0
if buy_signal_occurred
bullish_count := close > open ? bullish_count + 1 : 0 // Increment for bullish candles, reset if not bullish
// Define the sell condition: 3-5 consecutive bullish candles after a buy signal
sell_condition = bullish_count >= 3 and bullish_count <= 5
// Reset buy_signal_occurred after sell signal
if sell_condition
buy_signal_occurred := false
bullish_count := 0 // Reset the count after sell condition is met
// Plot Buy and Sell signals
plotshape(series=buy_condition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(series=sell_condition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", size=size.small)
// Plot the moving averages for visual confirmation
plot(ma20, color=color.green, title="20MA", linewidth=2)
plot(ma200, color=color.red, title="200MA", linewidth=2)
Multi Moving AverageThis indicator make 3 moving average on the chart at once.
You can choos the type of moving average calculation method.
QTrade Hamilton-James Recession ModelQTrade Hamilton-James Recession Model which indicates times of a recession.
GC-M1-5&30overlay of 5m and 30m intervals on a 1m timeframe chart for gold
it goes for electronic sessions
ema13.21.34.55//@version=5
indicator("ema13.21.34.55", overlay=true)
// 定义均线
ema13 = ta.ema(close, 13)
ema15 = ta.ema(close, 15)
ema34 = ta.ema(close, 34)
ema55 = ta.ema(close, 55)
// 计算均线的颜色:上涨为绿色,下跌为红色
colorEma13 = ema13 >= ema13 ? color.new(color.green, 0) : color.new(color.red, 0)
colorEma15 = ema15 >= ema15 ? color.new(color.green, 25) : color.new(color.red, 25)
colorEma34 = ema34 >= ema34 ? color.new(color.green, 50) : color.new(color.red, 50)
colorEma55 = ema55 >= ema55 ? color.new(color.green, 75) : color.new(color.red, 75)
// 绘制均线并设置颜色,设置均线为最细
plotEma13 = plot(ema13, color=colorEma13, linewidth=1)
plotEma15 = plot(ema15, color=colorEma15, linewidth=1)
plotEma34 = plot(ema34, color=colorEma34, linewidth=1)
plotEma55 = plot(ema55, color=colorEma55, linewidth=1)
// 定义渐变填充颜色
fillColor1 = ema13 >= ema13 ? color.new(color.green, 90) : color.new(color.red, 90)
fillColor2 = ema15 >= ema15 ? color.new(color.green, 75) : color.new(color.red, 75)
fillColor3 = ema34 >= ema34 ? color.new(color.green, 65) : color.new(color.red, 65)
fillColor4 = ema55 >= ema55 ? color.new(color.green, 55) : color.new(color.red, 55)
// 填充均线之间的区域并应用渐变颜色
fill(plotEma13, plotEma15, color=fillColor1, transp=75)
fill(plotEma15, plotEma34, color=fillColor2, transp=75)
fill(plotEma34, plotEma55, color=fillColor3, transp=75)
vwap nobitaNobita Dinh Quoc Tuan Trader will provide you with a very useful vwap indicator that calculates the average by session. Let's try to see the effectiveness of this indicator.
Rolling Beta against SPY📈 Pine Script Showcase: Rolling Beta Against SPY
Understanding how your favorite stock or ETF moves in relation to a benchmark like the S&P 500 can offer powerful insights into risk and exposure. This script calculates and visualizes the rolling beta of any asset versus the SPY ETF (which tracks the S&P 500).
🧠 What Is Beta?
Beta measures the sensitivity of an asset's returns to movements in the broader market. A beta of:
- 1.0 means the asset moves in lockstep with SPY,
- >1.0 indicates higher volatility than the market,
- <1.0 implies lower volatility or possible defensive behavior,
- <0 suggests inverse correlation (e.g., hedging instruments).
🧮 How It Works
This script computes rolling beta over a user-defined window (default = 60 periods) using classic linear regression math:
- Calculates daily returns for both the asset and SPY.
- Computes covariance between the two return streams.
- Divides by the variance of SPY returns to get beta.
⚙️ Customization
You can adjust the window size to control the smoothing:
- Shorter windows capture recent volatility changes,
- Longer windows give more stable, long-term estimates.
📊 Visual Output
The script plots the beta series dynamically, allowing you to observe how your asset’s correlation to SPY evolves over time. This is especially useful in regime-change environments or during major macroeconomic shifts.
💡 Use Cases
- Portfolio construction: Understand how your assets co-move with the market.
- Risk management: Detect when beta spikes—potentially signaling higher market sensitivity.
- Market timing: Use beta shifts to infer changing investor sentiment or market structure.
📌 Pro Tip: Combine this rolling beta with volatility, Sharpe ratio, or correlation tracking for a more robust factor-based analysis.
Ready to add a layer of quantitative insight to your chart? Add the script to your watchlist and start analyzing your favorite tickers against SPY today!
Smart Zone Engine – Gnome Intelligence v3.4Smart Zone Engine – Gnome Intelligence v3.4 is an adaptive support & resistance strategy built on a “genome” metaphor that continually evolves to find the most reliable pivot zones. It overlays dynamic boxes on your chart, identifies key swing highs/lows, and then uses a grid‑based Gnome population—plus occasional Scout explorers—to optimize zone parameters (lookback, height multiplier, spacing) in real‑time.
Key Features
Grid‑Gnome Genome Engine
Initializes a fixed grid of Gnomes, each with its own lookback period, zone height factor and minimum spacing
Every mutationFreq bars, the highest‑XP Gnome spawns a mutated offspring to neighboring grid cells
Random “explorer” Gnomes occasionally try unoccupied cells to avoid local maxima
Scout Genome Layer
Up to maxScouts temporary Scouts enter the field every scoutFreq bars for rapid parameter testing
Scouts live for scoutLife bars; if one outperforms all regular Gnomes, it’s promoted to permanent status
Support/Resistance Zone Lifecycle
Detects pivots with dynamic height based on recent range and the dominant Gnome’s height multiplier
Creates color‑coded boxes (green = support, red = resistance) that extend zoneExtendBars bars forward
Tracks bounce counts; zones turn yellow after 10 respected bounces, then self‑delete once broken twice
Flip logic converts support → resistance (and vice versa) when price breaches and re‑bounces from the opposite side
Optional Debug Table
Toggle showGnomeDebug to display a top‑right table of each Gnome’s XP and score, color‑tagged if it’s a Scout
Performance & Parameter Plots
Four bottom‑panel plots for the dominant Gnome’s lookback, zone height factor, spacing and XP score
Enables you to see exactly how the genome engine is adapting over time
How to Use
Add “Smart Zone Engine – Gnome Intelligence v3.4” to your chart as a strategy or indicator.
Adjust inputs under the “Gnome Intelligence” section:
- maxZones – maximum simultaneous boxes
- mutationFreq, exploreChance – control evolutionary speed & exploration
- scoutFreq, scoutLife, maxScouts – tune the Scout testing layer
(Optional) Enable Show Gnome Debug Table to monitor each cell’s XP in real‑time.
Watch price interact with the colored zones—green for support, red for resistance—and observe flips and lifecycle changes.
Designed for advanced traders who want their S/R zones to self‑tune and adapt without manual parameter hunting, this strategy brings an evolutionary AI twist to classic pivot‑based zone detection. Adjust the genome settings to match your timeframe and let the Gnomes do the heavy lifting.
Moving Average Exponential4 Moving Average Indicator at once.
You can choose as you properly period of moving average.
🔁 SpectraTrader Ai v4 – PnL Dashboard + Pre-Open Radar🔁SpectraTrader AI v4 – PnL Dashboard + Pre-Open Radar
🧠 Spectral Intelligence for Smart Option Traders
SpectraTrader AI v4 identifies precise PUT and CALL trade opportunities using multi-timeframe trend scanning, momentum confirmation, and dynamic strike calculations. In the chart above, the system triggered a PUT ENTRY at 567.08 on SPY, confirmed by zero bullish timeframes, negative momentum, and price falling below the AI-calculated PUT strike.
The dashboard provides real-time option metrics including:
Delta, Theta, Confidence %
Visual "ITM/OTM" status
PnL Estimator (% gain/loss on strike)
Entry/Exit markers with simulated trade tracking
Whether you're trading live or testing setups, this tool helps you visualize optimal strike zones and act with confidence — all wrapped in a clean, real-time dashboard.
WIFX Gold signal smart 131314
🔥 WIFX GOLD SIGNAL SMART – The Ultimate Indicator to Trade Like a Shark! 🦈💰
Looking for a powerful, accurate, and professional trading tool?
🚀 WIFX GOLD SIGNAL SMART is the secret weapon smart traders are using to catch trends, enter with confidence, and maximize profits!
✅ KEY FEATURES:
📊 Combines analysis from multiple high-quality technical tools:
Smart Money Zones (Shark Zones)
Support & Resistance
Moving Averages (MA)
Relative Strength Index (RSI)
Fibonacci Levels
⚡ Accurate Signal Alerts that help you:
- Catch market trends in real time
- Make timely trading decisions
- Minimize risk and boost profitability
📲 Receive signals anytime, anywhere:
Directly on TradingView
Email notifications
Webhook (for automation)
Mobile app alerts
For example alert you can receive like that:
The firt you can trade by supply and demand zone
M30 💰SUPPLY/DEMAND💰
XAUUSD@3324
🆘SELL LIMIT: 3350 - 3357
⛔ STL: 3360
💰TP: 3276 - 3258 - 3233 - 3201 - - OPEN
❗REASON: SUPPLY 3351
✅BUY LIMIT: 3193 - 3201
⛔ STL: 3190
💰TP: 3276 - 3294 - 3319 - 3351 - 3071- OPEN
❗REASON: DEMAND 3201
❗SHARK ZONE❗
🆘🆘🆘 DOWN TO: ----> 3011
The second you can trade by shark zone
M30 💰SHARK ZONE💰
XAUUSD@3324
🆘SELL LIMIT: 3350 - 3357
⛔ STL: 3360
💰TP: 3276 - 3258 - 3233 - 3201 - OPEN
✅BUY LIMIT: 3285 - 3288
⛔ STL: 3283
💰TP: 3317 - 3324 - 3334 - 3547 - OPEN
The third you can trade by Moving average
M30 💰MA💰
XAUUSD@3080
✅BUY LIMIT: 3074 - 3077
⛔ STL: 3070
💰TP (pips): 30 - 100- 1000 - OPEN
### 💡 Ideal for all trading styles:
Whether you’re a beginner or a pro, WIFX GOLD SIGNAL SMART helps you stay in sync with the current market trend and effectively execute your trading strategies.
👉 Contact us now via WhatsApp to get access and full guidance:
📞 +84793873168
⏳ Don’t miss the chance to trade smarter, not harder!
MAEngineLibLibrary "MAEngineLib"
ma_sma(source, length)
Parameters:
source (float)
length (int)
ma_ema(source, length)
Parameters:
source (float)
length (simple int)
ma_dema(source, length)
Parameters:
source (float)
length (simple int)
ma_tema(source, length)
Parameters:
source (float)
length (simple int)
ma_wma(source, length)
Parameters:
source (float)
length (int)
ma_hma(source, length)
Parameters:
source (float)
length (simple int)
ma_vwma(source, length)
Parameters:
source (float)
length (int)
ma_kijun(length)
Parameters:
length (int)
ma_alma(source, length)
Parameters:
source (float)
length (int)
ma_kama(source, length)
Parameters:
source (float)
length (int)
ma_hullmod(source, length)
Parameters:
source (float)
length (int)
selectMA(type, source, length)
Parameters:
type (string)
source (float)
length (simple int)
Crusader Sessions (Multi TF)Finds the Asia & London trading Session High and Low.
Works for all timeframes up to including the 1 hour down to the 1 minute
PO Signal 5·13·21 MA【インジケーター概要】
・5・13・21 MA がパーフェクトオーダー(PO)になった “初回だけ” を検出
・ローソク足に “PO” ラベル を表示
・デフォルトで 傾きフィルター(各 MA の向き一致)をオン → ダマシ軽減
・1・5分足スキャル向け(他の時間足でも使用可)
【使い方】
① 1・5分足チャートに追加
② 条件を満たすと PO が出現
③ BBやRSIなど、他のトレンド系指標と併用してフィルタリング推奨
【アラート】
・PO Up Alert 上昇 PO(初回)
・PO Down Alert 下降 PO(初回)
アラート設定で「バー終値で実行」「バーにつき 1 回」などお好みで。
【免責】
・本スクリプトは学習・研究目的です。投資判断は自己責任でお願いします。
・リペイントはありませんが、出来高が少ない時や急変動時はシグナル精度が低下する場合があります。
Indicator Overview
Detects only the first Perfect Order (PO) where the 5‑, 13‑, and 21‑period MAs align
Plots a simple “PO” label on the candle
Slope filter (all MAs sloping in the same direction) is ON by default → reduces false signals
Designed for 1‑ and 5‑minute scalping, but works on any timeframe
How to Use
Add the script to a 1‑ or 5‑minute chart.
When the conditions are met, a “PO” label will appear.
Combine with other trend filters such as Bollinger Bands, RSI, etc., for additional confirmation.
Alerts
Alert Meaning
PO Up Alert First bullish PO
PO Down Alert First bearish PO
Set alerts with options like “Only once per bar” and “On bar close” as preferred.
Disclaimer
This script is provided for educational and research purposes only. All trading decisions are your own responsibility.
The indicator does not repaint, but signal accuracy may decline during low‑volume periods or sharp price moves.
30 CCI Normalizzati (Daily Reset)This indicator displays the normalized CCI of the top 30 companies in the NASDAQ.
The main utility of the indicator is to identify which company is primarily driving the NASDAQ and which one is not highly correlated, allowing you to anticipate entries into zones that can be considered similar to overbought and oversold conditions, or to spot divergences.
This indicator is designed to be used in combination with other similar tools I've published, which track the RSI, ATR, MACD, etc., of the top 30 NASDAQ companies.
Bitcoin Bayesian Fit with Residual HistogramTitle: Bayesian Bitcoin Power Law Indicator with Residuals Histogram
Description:
This Pine Script implements a sophisticated Bitcoin (BTC) price indicator based on a power-law relationship between BTC price and time, modeled using Bayesian regression. The indicator provides a robust framework for understanding BTC price trends, highlighting key statistical levels, and visualizing the bimodal nature of BTC price behavior through a residual distribution histogram.
Features:
Power Law Model with Confidence Levels:
Models BTC price as a power-law function of time using Bayesian regression, displaying the median trendline.
Includes multiple confidence intervals to reflect statistical uncertainty.
Plots a support power-law line, set at 2 standard deviations below the median trend, serving as a critical lower bound for price expectations.
Bimodal Residual Histogram:
Displays a histogram in a lower panel, illustrating the distribution of model residuals (difference between actual BTC price and the power-law model) over a default 100-day window (user-configurable).
Highlights the bimodal nature of BTC price behavior, with two distinct regimes:
Core Power Law: Represents periods (approximately 2 years) when BTC price closely follows the power-law trend, typically when below the median power-law line.
Turbulent Flow BTC: Captures periods when BTC price is above the median power-law line, exhibiting more chaotic, bull-run behavior.
The histogram provides a range of possible prices based on the observed residual distribution, aiding in probabilistic price forecasting.
Purpose:
This indicator is designed for traders and analysts seeking to understand BTC price dynamics through a statistically grounded power-law model. The confidence levels and support line offer clear benchmarks for trend and support analysis, while the bimodal histogram provides insight into whether BTC is in a stable "Core Power Law" phase or a volatile "Turbulent Flow" phase, enabling better decision-making based on market regime.
Usage Notes:
Use the histogram to determine whether BTC is in the Core Power Law (below the power-law trend) or Turbulent Flow (above the trend) regime to contextualize price behavior.
Adjust the residual window (default 100 days) to analyze different timeframes for the distribution.
The support power-law line (2 standard deviations below) serves as a critical level for identifying potential price floors.
Access: Invite-only. Contact the script author for access requests or further details. Also signup for 15 more power law indicators:
www.patreon.com
PO Signal 20·40·60 SMA・20・40・60 SMA がパーフェクトオーダー(PO)になった初回だけ を検出
・1分足スキャル向け(他の足でも動作可)
【使い方】
① 1分足チャートに追加
② 条件を満たすと 赤▼+PO が出現
・▼が下(ローソク下)=上昇 PO 初期
・▼が上(ローソク上)=下降 PO 初期
③ 他のトレンド系インジと組み合わせてフィルタリング推奨
【アラート】
・PO Up Alert ➡ 上昇 PO 初期
・PO Down Alert ➡ 下降 PO 初期
→ アラート設定で「バー終値で実行」「バーにつき1回だけ」などお好みで。
【免責】
・本スクリプトは学習・研究目的です。投資判断はご自身の責任でお願いいたします。
・リペイントはしませんが、出来高が少ないときや急な値動きではシグナル精度が落ちます。
• Detects only the first Perfect Order (PO) where the 20‑, 40‑, and 60‑period SMAs align
• Designed for 1‑minute scalping, but works on any timeframe
How to Use
Add the script to a 1‑minute chart.
When the conditions are met, a red ▼ + “PO” label appears:
▼ below the candle = Bullish PO (first occurrence)
▼ above the candle = Bearish PO (first occurrence)
For best results, combine with other trend‑filter indicators (e.g., 200 EMA, VWAP).
Alerts
PO Up Alert → Bullish PO (first occurrence)
PO Down Alert → Bearish PO (first occurrence)
Configure alerts with “On bar close” and “Once per bar” as desired.
Disclaimer
This script is provided for educational and research purposes only. Trading decisions are solely your responsibility.
The indicator does not repaint, but signal accuracy may decline during low‑volume periods or sudden price spikes.