SMA Strategy with Re-Entry Signal (v6 Style)*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!
Candlestick analysis
Clean ATR LevelsSimple 14D ATR +1 & -1 display from PM to Close.
The Clean ATR Levels indicator is a powerful Pine Script tool designed to provide traders with dynamic support and resistance levels based on the Average True Range (ATR) calculation. This indicator automatically draws horizontal lines that represent key price levels where significant market reactions are likely to occur, helping traders identify potential entry and exit points throughout the trading session.
The core functionality centers around calculating ATR levels using the most recent daily close as the reference point. The script draws two primary levels: an upper level at +100% ATR above the current close and a lower level at -100% ATR below the current close. These levels represent statistically significant price zones where the market has historically shown increased volatility and potential reversal patterns. Additionally, the indicator includes an optional previous close line that serves as a psychological reference point for intraday price action.
What sets this indicator apart is its intelligent session management and clean visual presentation. The lines are automatically redrawn at the start of each new trading day and are programmed to extend precisely until 4 PM EST market close, eliminating visual clutter on the chart. This session-aware approach ensures that traders are always working with the most relevant levels for the current trading day without having outdated lines extending unnecessarily into future sessions.
The indicator also features a comprehensive information table that displays real-time values for the ATR calculation, current close price, and both upper and lower ATR levels. This provides traders with exact numerical references without having to manually calculate these critical values. The script is highly customizable, allowing users to adjust the ATR period, line colors, widths, and choose whether to display the previous close reference line, making it adaptable to various trading styles and visual preferences.
Session Anchors – DEMOThis indicator highlights the four major trading sessions: London, New York AM, New York PM, and Asia using color-coded boxes directly on the chart.
It is designed to help traders identify the most active and relevant time zones, enhancing price action analysis and liquidity interpretation.
✅ Fully customizable: enable/disable individual sessions
✅ Adjustable color settings for each session
🔒 This is a DEMO version, showing only session time zones, excluding session-based key levels (available in the private version).
ℹ️ To use: add the indicator to your chart, select which sessions to display, and customize colors as needed.
⚠️ Works on all timeframes.
Real-Time FTFC Dashboard (Styled)Full Time Frame Continuity. Real time change with the data presented. Can be used on all stocks to analyze if the stocks timeframe finished green or red.
NY Liquidity Reversal - Debug Mode70 percent 1 rate strategy, no red folder news, trades from only 730 to noon, 20 EMA plus voluntarily breakout, 1 and one entry per direction per session per asset
5/21 EMA Signals with Bias ToggleThis is an indicator that signals when the 5 EMA crosses the 21.
When working with a short bias, uncheck the "long" setting in the settings. This will then signal a "short" when the 5 crosses through and under the 21 and a "cover" when the 5 crosses through and above the 21.
When working long, check the long box in settings. This will then generate a "buy" signal when the 5 crosses through and above the 21, and a "sell" signal when the 5 crosses through and below.
Note this is "just" an indicator. Indicators indicate, and that is all they do—they are not confirmations. The more indicators you use with this—the RSI, the MACD, price action etc, the more likely you will be able to use it to your benefit.
FSTO + MACD Combined OscillatorFSTO + MACD Combined Oscillator with Advanced Alerts
Introduction
The FSTO + MACD Combined Oscillator is a powerful technical analysis tool that synergizes two proven momentum indicators to deliver high-confidence trading signals. By combining the Moving Average Convergence Divergence (MACD) with the Fast Slow Trend Oscillator (FSTO), this indicator provides unique insights into market momentum, trend direction, and potential reversal points.
Key Features
1. Dual Indicator Integration
MACD Component:
Fast EMA (user-configurable period)
Slow EMA (user-configurable period)
Signal line with customizable smoothing
Histogram showing momentum strength
FSTO Component:
Short-term EMA (price-based)
Long-term EMA (price-based)
Signal line with adjustable period
Zero-line crossover detection
2. Advanced Alert System
Four specialized alert conditions that trigger only when both indicators confirm momentum shifts:
Bullish Reversal Alert
FSTO crosses above zero + MACD transitions from falling to rising
Strong trend reversal signal
Bullish Momentum Alert
FSTO crosses above signal line + MACD transitions from falling to rising
Confirmation of bullish momentum
Bearish Reversal Alert
FSTO crosses below zero + MACD transitions from rising to falling
Strong trend reversal signal
Bearish Momentum Alert
FSTO crosses below signal line + MACD transitions from rising to falling
Confirmation of bearish momentum
3. Visual Indicators
Color-coded plots:
MACD line (blue)
MACD signal line (orange)
FSTO line (purple)
FSTO signal line (amber)
Histogram:
Green: Strengthening bullish momentum
Light green: Weakening bullish momentum
Red: Strengthening bearish momentum
Light red: Weakening bearish momentum
Alert markers:
Numbered labels (1-4) at chart extremes
Color-coded for quick identification
4. Information Panel
Real-time display of:
Current MACD and FSTO values
Trend direction (bullish/bearish)
Momentum status (rising/falling)
Active alerts with color coding
How It Works
The indicator calculates two parallel momentum measurements:
MACD = EMA(close, fast_length) - EMA(close, slow_length)
FSTO = EMA(close, short_period) - EMA(close, long_period)
The true power emerges when these indicators confirm each other's signals:
MACD detects momentum shifts in price derivatives
FSTO identifies trend changes in price itself
Combined signals filter out false positives
Trading Applications
1. Trend Identification
Bullish Trend: FSTO > 0 and MACD > signal line
Bearish Trend: FSTO < 0 and MACD < signal line
2. High-Probability Entries
Long Entry: Alert 1 or 2 triggers
Short Entry: Alert 3 or 4 triggers
3. Exit Signals
MACD histogram color change (green to light green)
FSTO crossing signal line against trend direction
4. Risk Management
Stop placement below recent swing low (bullish)
Stop placement above recent swing high (bearish)
Position sizing based on histogram strength
Recommended Settings
Market MACD Fast MACD Slow FSTO Short FSTO Long
Stocks 12 26 12 26
Cryptocurrency 10 20 10 20
Forex 8 17 8 17
Commodities 14 28 14 28
Benefits
Synergistic Signals: Combines price-based and derivative-based momentum
Reduced False Signals: Requires confirmation from both indicators
Customizable Alerts: Enable/disable specific alert types
Visual Clarity: Color-coded elements for quick interpretation
Multi-Timeframe: Works on all timeframes from 1-minute to monthly
How to Use
Add indicator to TradingView chart
Configure periods based on market and timeframe
Enable desired alerts in settings
Set up notifications through TradingView alert system
Combine with price action analysis for best results
The MACD + FSTO Combined Oscillator provides professional traders with a sophisticated yet intuitive tool for identifying high-probability trade setups across all financial markets. Its unique alert system ensures you never miss critical momentum shifts confirmed by dual-indicator analysis.
Opening Range Breakout (15-Min)This TradingView indicator tracks the first 15 minutes of the trading day (from 9:30 AM to 9:45 AM Eastern Time), defines the high and low of that range, and then:
Draws horizontal lines at that high and low
Highlights candles when price breaks out above or below that range
Plots arrows on breakout candles
Allows for alerts when breakouts occur
It resets daily, so each trading day starts fresh.
EMA, SMA 20 và SMA 200 kết hợphis custom indicator plots three moving averages on the price chart:
SMA 20 (Simple Moving Average - 20 periods) – short-term trend indicator (blue line)
EMA 34 (Exponential Moving Average - 34 periods) – medium-term trend indicator (orange line)
SMA 200 (Simple Moving Average - 200 periods) – long-term trend indicator (red line, bold)
Multi-Indicator AI TableV10Multiple signal generator with table. Exclusive formularies make up the signals generated and shown in the table. Some are long term signals, and some are short term signals. "Ai Says" is a collaboration of all signals within the script. In the settings menu, you can eliminate the charting of any of the signals, but the table will always show the signals. The freshest signal is always the top signal in the indicator group. You know the newest signal by the number in the bar column. This can be used on Cryptocurrencies, Currencies, Stocks and Efts (and other investments). It is a tool and not trading advice. It is a guide to assist your trading decisions.
Engulfing with Volume ConfirmationBetter version of engulfing strategy. Takes into account volume too
Daily Vertical LinesThe Vertical line to divide the day breaks with a dotted line.
This helps to identify the day end and start.
I find it most helpful while back testing.
Khalid SPX Indicator - Auto WeeklyKey Features:
Levels for publishing: We define three levels: low, mid, and high.
Alerts: The script checks for price crosses over the mid-level. Alerts are set up using alertcondition() so you can be notified when the price crosses these levels.
Background Color: The background changes color when the price crosses the mid-level to visually indicate the event.
How to use this script:
Apply the Script: Apply this indicator on TradingView.
Set Alerts: After applying the indicator, you can set up alerts in TradingView using the alertcondition that we defined in the script.
Click the Alert button on TradingView.
Choose the conditions for your alert (e.g., "Price Cross Up" or "Price Cross Down").
You can set up webhook notifications in the alert settings to "publish" the data elsewhere (e.g., send it to a server or API).
Publisher via Alerts:
Once the alert triggers, you can configure webhooks to send the alert data to an external server, allowing you to "publish" the data elsewhere.
In the alert creation window, enable the Webhook URL and provide the URL to which the data should be sent.
Sweep & Reclaim Indicator with Time, EMA & ATR FilterCandlestick structure scalping
With this model, you are looking for a sweep of a bearish candle, then that bullish candle closes back inside the range of the bearish candle and you buystop the reclaimed candles high. Vice versa for bearish. I like to use the candle low as stop targeting 1R or higher.
You also only want to take trades between 9:30-11:30AM EST, you want an ATR above 10, and a LTF EMA, I like the 10. Those are all attached as filters with this indicator.
Breakout of fractals with alternating signals📌 Indicator Name: Break of Fractal Body (with Alternating Signals and Extended Lines)
🔍 Purpose:
This indicator detects swing highs and lows (fractals) based on candle body closes, not wicks. It then:
Confirms a breakout when the price closes beyond the body of the fractal.
Alternates signals: a "long" signal only appears after a "short", and vice versa.
Draws a horizontal line from the original fractal bar (where it formed) to the current bar where the breakout happens.
⚙️ Key Features:
✅ Fractals Based on Candle Bodies Only:
A top fractal is where the candle body is higher than len candles on both sides.
A bottom fractal is where the candle body is lower than len candles on both sides.
✅ Breakout Confirmation:
A bullish breakout is when price closes above the last top body fractal.
A bearish breakout is when price closes below the last bottom body fractal.
Breakouts are only recognized if they alternate: you won’t get multiple long/shorts in a row.
✅ Visual Elements:
🔺 Red triangle: Top body fractal.
🔻 Green triangle: Bottom body fractal.
📈 Label BUY: when price breaks a top body fractal.
📉 Label SELL: when price breaks a bottom body fractal.
➖ Horizontal line: drawn from the fractal bar to the breakout bar, showing the exact level of breakout.
✅ Alerts:
Alert when a bullish breakout occurs.
Alert when a bearish breakout occurs.
Fat Tails Analyzer🧠 Fat Tails Analyzer — Analysis of Anomalous ("Fat-Tailed") Movements
📌 Description
Fat Tails Analyzer is a tool for analyzing "fat tails" in the distribution of returns. Unlike normal distribution, financial markets often exhibit frequent extreme movements. This indicator identifies and visualizes such events by analyzing logarithmic returns, deviations from normal distribution, and excess kurtosis.
🔬 Methodology
Logarithmic returns (ln(Close / Close )) are calculated for accurate aggregation and symmetry.
Moving average and standard deviation of returns are computed over a specified period.
"Fat-tailed" events are identified when returns exceed μ ± k·σ, where k is user-defined.
Normal distribution bands (±2σ) and kurtosis (a measure of tail "heaviness") are displayed for clarity.
📊 What It Displays
📈 Histogram of Returns: Green for positive, red for negative.
🟣 Fat Tail Threshold Lines: Marking extreme events.
⚪ Silver Normal Distribution Bands: ±2σ boundaries.
🔵 Kurtosis Line: If enabled.
📋 Table with Key Metrics: Mean, σ, kurtosis.
⚙️ Parameters
Lookback Period (Bars): Analysis period (default: 252).
Fat Tail Threshold (Std Devs): Deviation for extreme events (k, default: 2.5).
Show Normal Distribution Bands: Toggle ±2σ boundaries.
Show Kurtosis: Enable kurtosis analysis mode.
📌 Interpretation
Excess Kurtosis > 0: More extreme events than predicted by normal distribution.
Returns beyond fat-tail thresholds: Potential signals of panic, shock, or exceptional news.
Consistently high kurtosis: Unstable or speculative asset.
🧪 Applications
📉 Identify extreme risks in assets (especially cryptocurrencies and derivatives).
🧠 Study market behavior and dispersion.
🛡 Support risk analysis, stop-loss settings, and systemic risk assessment.
🔎 Compare assets by the "normality" of their behavior.
🧭 Live Metrics Table
Displayed in the bottom-right corner:
Mean return
Standard deviation
Excess kurtosis (color-coded by value)
🧠 Good to Know
Normal distribution has kurtosis = 0.
> 0: "Fat tails" (more extreme values).
< 0: "Thin tails" (values close to the mean).
EMA Crossover Indicator with UTC Time Filter and Profit LabelsThe PineScript code provided is an indicator for TradingView that implements two user-defined Exponential Moving Averages (EMAs) with default periods of 5 and 9, generates buy and sell signals at EMA crossovers, filters these signals based on a user-specified UTC time window, and adds labels when the price moves 100 points in the profitable direction from the entry point. Below is a detailed description of the script's functionality, structure, and key components:
Overview
Purpose: The indicator plots two EMAs on the chart, identifies crossover points to generate buy and sell signals, restricts signals to a user-defined UTC time range, and labels instances where the price moves 100 points in the profitable direction after a signal.
Platform:
Written in PineScript v5 for TradingView.
Indicator Type:
Overlay indicator (plotted directly on the price chart).
Key Features
User-Defined EMAs:
The script calculates two EMAs based on user inputs:
Short EMA : Default period is 5 bars.
- **Long EMA**:
Default period is 9 bars.
Users can adjust these periods via input settings (minimum period of 1).
2. Crossover Signals:
Buy Signal: Triggered when the Short EMA crosses above the Long EMA
( ta.crossover ).
Sell Signal: Triggered when the Short EMA crosses below the Long EMA
( ta.crossunder ).
Labels are added at these crossover points:
"BUY" label (green, positioned below the bar) for bullish crossovers.
"SELL" label (red, positioned above the bar) for bearish crossovers.
3. UTC Time Filter:
Users can specify a UTC time window during which signals are valid.
Inputs include:
Start Hour and Minute (default: 00:00 UTC).
End Hour and Minute (default: 23:59 UTC).
The isTimeInRange() function checks if the current bar's timestamp falls within this
window, handling both same-day and overnight ranges (e.g., 22:00 to 02:00).
Only crossovers occurring within the specified time window generate signals and
labels.
4. Profit Tracking (+100 Points):
The script tracks the price movement after a buy or sell signal:
For a buy signal , a "+100" label is added if the price increases by 100 points
or more from the entry price.
For a sell signal , a "+100" label is added if the price decreases by 100 points
or more from the entry price.
The points threshold is user-configurable (default: 100.0 points).
Labels are color-coded (green for buy, red for sell) and placed only once per signal to
avoid chart clutter.
5. Visual Elements:
EMAs : Plotted on the chart (Short EMA in blue, Long EMA in red).
Labels:
Buy/Sell crossover labels are placed at the low/high of the bar, respectively.
"+100" labels are placed at the low (for buy) or high (for sell) of the bar where
the profit threshold is met.
Code Structure
Indicator Declaration:
indicator("EMA Crossover Indicator with UTC Time Filter and Profit Labels",
overlay=true): Defines the indicator name and sets it to overlay on the price chart.
Inputs:
emaShortPeriod and emaLongPeriod: Integer inputs for EMA periods
(defaults: 5 and 9).
startHour, startMinut, endHour, endMinute: Integer inputs for UTC time window
(defaults: 00:00 to 23:59).
pointsThreshold: Float input for the profit target (default: 100.0 points).
EMA Calculations:
emaShort = ta.ema(close, emaShortPeriod): Computes the Short EMA using the
closing price.
emaLong = ta.ema(close, emaLongPeriod): Computes the Long EMA.
Time Filter Function:
isTimeInRange(0: Converts the current bar's UTC time and user inputs to minutes,
then checks if the current time is within the specified range. Handles overnight
ranges correctly.
State Management:
Variables: entryPrice (stores signal entry price), isBuySignal and isSellSignal (track
active signal type), `profitLabelPlaced` (prevents multiple profit labels).
Reset on new signals to prepare for the next trade.
Signal Detection and Labeling:
Detects crossovers using ta.crossover and ta.crossunder.
Places "BUY" or "SELL" labels if the crossover occurs within the UTC time window.
Monitors price movement post-signal and places a "+100" label when the threshold is
met.
Usage
Setup: Add the indicator to a TradingView chart. Adjust EMA periods, UTC time
window, and points threshold via the indicator settings.
Output:
Two EMA lines (blue and red) appear on the chart.
"BUY" and "SELL" labels appear at valid crossover points within the UTC time window.
"+100" labels appear when the price moves 100 points in the profitable direction after
a signal.
Applications: Useful for traders who want to:
Follow EMA crossover strategies.
Restrict trading signals to specific time sessions (e.g., London or New York session).
- Identify when a trade reaches a specific profit target.
Notes
Points Definition: The 100-point threshold is in the same units as the asset's
price (e.g., $100 for stocks, 100 pips for forex). Adjust `pointsThreshold` for
different assets.
Time Zone: Signals are filtered based on UTC time, ensuring consistency across
markets.
Label Management: The script ensures only one "+100" label per signal to keep
the chart clean.
Limitations: The profit label is triggered only once per signal and does not
account for multiple hits of the threshold unless a new signal occurs.
If you need further clarification or want to add features (e.g., alerts, additional profit levels, or different time filters), let me know!
Volume Peak LineA fully configurable “Volume Peak Line” indicator that draws a horizontal threshold at the highest volume over the last X candles (default 5).
Custom lookback (X volume candles)
Optional alert when current volume exceeds that peak
Separate up/down volume bars (green/red) or hide them to use your own volume overlays
Use it to spot surges in trading activity on any timeframe—ideal for intraday or swing setups where a barn-burner volume bar can signal a reversal or the start of a new trend.
💧 USD Liquidity Index (Fed + M2 + Base)This custom indicator tracks USD liquidity by combining the Federal Reserve’s total assets (WALCL), M2 money supply (M2SL), and the monetary base (BASE) — all sourced from FRED (Federal Reserve Economic Data).
It's designed to provide a macro-level view of liquidity conditions in the U.S. financial system. This index can be used to help gauge the risk-on vs risk-off environment for assets like Bitcoin, equities, and commodities.
Higher values typically indicate liquidity expansion (bullish for risk assets).
Declining values indicate liquidity contraction or quantitative tightening (bearish for risk assets).
📊 Data Sources:
FRED:WALCL – Fed Balance Sheet
FRED:M2SL – M2 Money Supply
FRED:BASE – Monetary Base
⚠️ Weekly timeframe only. Designed for macro swing traders, crypto investors, and liquidity-driven strategists.
Candle Ghosts: MTF 3 Candle Viewer by Chaitu50cCandle Ghosts: MTF 3 Candle Viewer helps you see candles from other timeframes directly on your chart. It shows the last 3 candles from a selected timeframe as semi-transparent boxes, so you can compare different timeframes without switching charts.
You can choose to view candles from 30-minute, 1-hour, 4-hour, daily, or weekly timeframes. The candles are drawn with their full open, high, low, and close values, including the wicks, so you get a clear view of their actual shape and size.
The indicator lets you adjust the position of the candles using horizontal and vertical offset settings. You can also control the spacing between the candles for better visibility.
An optional EMA (Exponential Moving Average) from the selected timeframe is also included to help you understand the overall trend direction.
This tool is useful for:
Intraday traders who want to see higher timeframe candles for better decisions
Swing traders checking lower timeframe setups
Anyone doing top-down analysis using multiple timeframes on a single chart
This is a simple and visual way to study how candles from different timeframes behave together in one place.
Previous Candle High/Low (Clean)✅ Creates one horizontal line for the previous candle’s high (green).
✅ Creates one horizontal line for the previous candle’s low (red).
✅ The lines update on each new candle, always following the most recent previous high/low.
✅ The lines are extended to the right — they don’t stack or clutter the chart.
✅ Works on all timeframes.