CandelaCharts - Trend Oscillator 📝 Overview
Trend Oscillator is a simple yet effective trend identification tool that uses the relationship between two exponential moving averages (EMAs) to determine market direction. It calculates the spread between a fast and slow EMA, applies a bias multiplier, and smooths the result to produce a clean oscillator that oscillates above and below a zero line. When the oscillator is above zero, the trend is considered bullish (upward); when below zero, it's bearish (downward). The indicator provides clear visual feedback through color-coded plots and optional price bar coloring, making it easy to identify trend direction at a glance.
📦 Features
This section highlights the core capabilities you'll rely on most.
Dual EMA system — Uses a fast EMA (default 9) and slow EMA (default 21) to capture trend momentum and direction.
Bias multiplier — Applies a small multiplier (default 1.001) to the EMA spread, providing a slight bias that helps filter noise and confirm trend strength.
Smoothed output — Applies an additional EMA smoothing (default 5 periods) to the raw spread, creating a cleaner, less choppy oscillator line.
Zero-line reference — Plots a horizontal zero line that serves as the critical threshold between bullish and bearish conditions.
Color-coded visualization — Automatically colors the oscillator line green/lime when bullish (above zero) and red when bearish (below zero).
Price bar coloring — Optional feature to color price bars based on the current trend direction, providing immediate visual context on the main chart.
Customizable parameters — Adjust EMA lengths, bias multiplier, smoothing period, and colors to match your trading style and timeframe.
⚙️ Settings
Use these controls to fine-tune the oscillator's sensitivity, appearance, and behavior.
Fast EMA Length — Period for the fast exponential moving average (default: 9). Lower values make the indicator more responsive to price changes.
Slow EMA Length — Period for the slow exponential moving average (default: 21). Higher values create a smoother baseline for trend identification.
Bias Multiplier — Multiplier applied to the EMA spread (default: 1.001). Small adjustments can help filter minor whipsaws and confirm trend strength.
Smoothing Length — Period for smoothing the raw spread calculation (default: 5). Higher values create a smoother oscillator line but may lag price action.
Colors — Set the bullish (default: lime) and bearish (default: red) colors for the oscillator line.
Color Price Bars — Toggle to enable/disable coloring of price bars based on the current trend direction.
⚡️ Showcase
Oscillator Line
Bar Coloring
Divergences
📒 Usage
Follow these steps to effectively use Trend Oscillator for trend identification and trading decisions.
1) Select your timeframe — The indicator works across all timeframes, but higher timeframes (daily, weekly, monthly) typically provide more reliable trend signals with less noise. Lower timeframes (1m, 5m, 15m) may produce more frequent but potentially less reliable signals. Consider your trading style: swing traders benefit from daily/weekly charts, while day traders can use 15m/1h timeframes. Always align the indicator's sensitivity with your timeframe choice.
2) Adjust EMA lengths — The default 9/21 combination works well for most cases. For faster signals, try 5/13; for slower, more conservative signals, try 12/26 or 20/50. Match the lengths to your trading style and timeframe.
3) Interpret the zero line — When the oscillator is above zero (green/lime), the trend is bullish. When below zero (red), the trend is bearish. The further from zero, the stronger the trend.
4) Watch for crossovers — Trend changes occur when the oscillator crosses the zero line. A cross from below to above indicates a shift to bullish; from above to below indicates a shift to bearish.
5) Identify divergences — Divergences can signal potential trend reversals. Bullish divergence : price makes lower lows while the oscillator makes higher lows (suggests weakening bearish momentum). Bearish divergence : price makes higher highs while the oscillator makes lower highs (suggests weakening bullish momentum). Divergences are most reliable when they occur near extreme levels and should be confirmed with price action before taking trades.
6) Use smoothing wisely — The smoothing parameter helps reduce noise but adds lag. Lower smoothing (3-5) is more responsive; higher smoothing (7-10) is more stable but slower to react.
7) Combine with price action — Use the oscillator to confirm trend direction, then look for entry opportunities when price pulls back in the direction of the trend. The optional price bar coloring helps visualize trend alignment on the main chart.
8) Filter with bias multiplier — The bias multiplier can help reduce false signals. Experiment with values between 1.000 and 1.005 to find the sweet spot for your instrument and timeframe.
🚨 Alerts
There are no built-in alerts in this version.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
المؤشرات والاستراتيجيات
PRO Live ATR Engine – 1H ATR(1) & ATR(5) for Lower Timeframes✔ Accurate Live ATR(1)
Uses true range formula, not just high-low.
✔ Accurate Live ATR(5)
Rolling ATR that increases/decreases continuously as the hour forms.
✔ Works in Replay on 1m/5m
Does not rely on 1-hour candle closes.
✔ Only flags inside 09:20–09:25
No more random background outside your window.
✔ Correct “Do Not Trade” logic
If price is between midnight and 8:30, background turns red.
O'Neil Market TimingBill O'Neil Market Timing Indicator - User Guide
Overview
This Pine Script indicator implements William O'Neil's market timing methodology, which assigns one of four distinct states to a market index (such as SPY or QQQ) to help traders identify optimal market conditions for investing. The indicator is designed to work exclusively on Daily timeframe charts.
The Four Market States
The indicator tracks the market through four distinct states, with specific transition rules between them:
1. Confirmed Uptrend (Green)
- Meaning: The market is in a healthy uptrend with institutional support
- Action: Favorable conditions for building positions in leading stocks
- Can transition to: State 2 (Uptrend Under Pressure)
2. Uptrend Under Pressure (Yellow)
- Meaning: The uptrend is showing signs of weakness with increasing distribution
- Action: Be cautious, tighten stops, reduce position sizes
- Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend)
3. Downtrend (Red)
- Meaning: The market is in a confirmed downtrend
- Action: Stay mostly in cash, avoid new purchases
- Can transition to: State 4 (Rally Attempt)
4. Rally Attempt (Pink/Fuchsia)
- Meaning: The market is attempting to bottom and reverse
- Action: Watch for Follow-Through Day to confirm new uptrend
- Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend)
Key Concepts
Distribution Day
A distribution day occurs when:
1. The index closes down by more than the critical percentage (default 0.2%)
2. Volume is higher than the previous day's volume
Distribution days indicate institutional selling and are marked with red triangles on the indicator.
Follow-Through Day
A follow-through day occurs during a Rally Attempt when:
1. The index closes up by more than the critical percentage (default 1.6%)
2. Volume is higher than the previous day's volume
A Follow-Through Day confirms a new uptrend and triggers the transition from Rally Attempt to Confirmed Uptrend.
State Transition Logic
Valid Transitions
The system only allows specific transitions:
- 1 → 2: When distribution days reach the "pressure number" (default 5) within the lookback period (default 25 bars)
- 2 → 1: When distribution days drop below the pressure number
- 2 → 3: When distribution days reach "downtrend number" (default 7) AND price drops by "downtrend criterion" (default 6%) from the lookback high
- 3 → 4: When the market doesn't make a new low for 3 consecutive days
- 4 → 3: When a new low is made, undercutting the downtrend low
- 4 → 1: When a Follow-Through Day occurs during the Rally Attempt
Input Parameters
Distribution Day Parameters
- Distribution Day % Threshold (default 0.2%, range 0.1-2.0%)
- Minimum percentage decline required to qualify as a distribution day. While 0.2% seems to be the canonical number I see in literature about this, I use a much higher threshold (at least 0.5%)
Follow-Through Day Parameters
- Follow-Through Day % Threshold (default 1.6%, range 1.0-2.0%)
- Minimum percentage gain required to qualify as a follow-through day
### State Transition Parameters
- Pressure Number (default 5, range 3-6)
- Number of distribution days needed to transition from Confirmed Uptrend to Uptrend Under Pressure
- Lookback Period (default 25 bars, range 20-30)
- Number of days to count distribution days
- Downtrend Number (default 7, range 4-10)
- Number of distribution days needed (with price drop) to transition to Downtrend
- Downtrend % Drop from High (default 6%, range 5-10%)
- Percentage drop from lookback high required for downtrend confirmation
Visual Settings
- Color customization for each state
- Table position selection (Top Left, Top Right, Bottom Left, Bottom Right)
## How to Use This Indicator
### Installation
1. Open TradingView and navigate to SPY or QQQ (or another major index)
2. **Important**: Switch to the Daily (1D) timeframe
3. Click on "Indicators" at the top of the chart
4. Click "Pine Editor" at the bottom of the screen
5. Copy and paste the Pine Script code
6. Click "Add to Chart"
### Interpretation
**When the indicator shows:**
- **Green (State 1)**: Market is healthy - consider adding quality positions
- **Yellow (State 2)**: Exercise caution - tighten stops, be selective
- **Red (State 3)**: Defensive mode - preserve capital, avoid new buys
- **Pink (State 4)**: Watch closely - prepare for potential Follow-Through Day
### The Information Table
The table displays:
- **Current State**: The current market condition
- **Distribution Days**: Number of distribution days in the lookback period
- **Lookback Period**: Number of bars being analyzed
- **Rally Attempt Day**: (Only in State 4) Days into the current rally attempt
### Visual Elements
1. **State Line**: A stepped line showing the current state (1-4)
2. **Red Triangles**: Mark each distribution day
3. **Horizontal Reference Lines**: Dotted lines marking each state level
4. **Color-Coded Display**: The state line changes color based on the current market condition
## Trading Strategy Guidelines
### In Confirmed Uptrend (State 1)
- Build positions in stocks breaking out of proper bases
- Use normal position sizing
- Focus on stocks showing institutional accumulation
- Hold winners as long as they act properly
### In Uptrend Under Pressure (State 2)
- Take partial profits in extended positions
- Tighten stop losses
- Be more selective with new entries
- Reduce overall exposure
### In Downtrend (State 3)
- Move to cash or maintain very light exposure
- Avoid new purchases
- Focus on preservation of capital
- Use the time for research and watchlist building
### In Rally Attempt (State 4)
- Stay mostly in cash but prepare
- Build a watchlist of strong stocks
- On Day 4+ of the rally attempt, watch for Follow-Through Day
- If FTD occurs, begin cautiously adding positions
## Best Practices
1. **Use with Major Indices**: This indicator works best with SPY, QQQ, or other broad market indices
2. **Daily Timeframe Only**: The indicator is designed for daily bars - do not use on intraday timeframes
3. **Combine with Stock Analysis**: Use the market state as a filter for individual stock decisions
4. **Respect the Signals**: When the market enters Downtrend, reduce exposure regardless of individual stock setups
5. **Monitor Distribution Days**: Pay attention when distribution days accumulate - it's a warning sign
6. **Wait for Follow-Through**: Don't jump back in too early during Rally Attempt - wait for confirmation
## Alert Conditions
The indicator includes built-in alert conditions for:
- State changes (entering any of the four states)
- Distribution Day detection
- Follow-Through Day detection during Rally Attempt
To set up alerts:
1. Click the "Alert" button while the indicator is on your chart
2. Select "O'Neil Market Timing"
3. Choose your desired alert condition
4. Configure notification preferences
## Customization Tips
### For More Sensitive Detection
- Lower the "Pressure Number" to 3-4
- Lower the "Distribution Day % Threshold" to 0.15%
- Reduce the "Downtrend Number" to 5-6
### For More Conservative Detection
- Raise the "Pressure Number" to 6
- Raise the "Distribution Day % Threshold" to 0.3-0.5%
- Increase the "Downtrend Number" to 8-9
### For Different Market Conditions
- **Bull Market**: Consider slightly higher thresholds
- **Bear Market**: Consider slightly lower thresholds
- **Volatile Market**: May need to increase percentage thresholds
## Limitations and Considerations
1. **Not a Crystal Ball**: The indicator identifies conditions but doesn't predict the future
2. **False Signals**: Follow-Through Days can fail - use proper risk management
3. **Whipsaws Possible**: In choppy markets, the indicator may switch states frequently
4. **Confirmation Lag**: By design, there's a lag as the system waits for confirmation
5. **Works Best with Price Action**: Combine with your analysis of individual stocks
## Historical Context
This methodology is based on William J. O'Neil's decades of market research, documented in books like "How to Make Money in Stocks" and through Investor's Business Daily. O'Neil's research showed that:
- Most major market tops are preceded by accumulation of distribution days
- Most successful rallies begin with a Follow-Through Day on Day 4-7 of a rally attempt
- Identifying market state helps prevent buying during unfavorable conditions
## Troubleshooting
**Problem**: Indicator shows "Initializing"
- **Solution**: Let the chart load at least 5 bars to establish the initial state
**Problem**: No distribution day markers appear
- **Solution**: Verify you're on daily timeframe and check if volume data is available
**Problem**: Table not visible
- **Solution**: Check the table position setting and ensure it's not off-screen
**Problem**: State seems to change too frequently
- **Solution**: Increase the lookback period or adjust threshold parameters
## Support and Further Learning
For deeper understanding of this methodology:
- Read "How to Make Money in Stocks" by William J. O'Neil
- Study Investor's Business Daily's "Market Pulse"
- Review historical market tops and bottoms to see the pattern
- Practice identifying distribution days and follow-through days manually
## Version History
**Version 1.0** (November 2025)
- Initial implementation
- Four-state system with proper transitions
- Distribution day detection and marking
- Follow-through day detection
- Customizable parameters
- Information table display
- Alert conditions
---
## Quick Reference Card
| State | Number | Color | Action |
|-------|--------|-------|--------|
| Confirmed Uptrend | 1 | Green | Buy quality setups |
| Uptrend Under Pressure | 2 | Yellow | Tighten stops, be selective |
| Downtrend | 3 | Red | Cash position, no new buys |
| Rally Attempt | 4 | Pink | Watch for Follow-Through Day |
**Distribution Day**: Down > 0.2% on higher volume (red triangle)
**Follow-Through Day**: Up > 1.6% on higher volume during Rally Attempt (triggers State 4→1)
---
*Remember: This indicator is a tool to help identify market conditions. It should be used as part of a comprehensive trading strategy that includes proper risk management, position sizing, and individual stock analysis.*
Also, I created this with the help of an AI coding framework, and I didn't exhaustively test it. I don't actually use this for my own trading, so it's quite possible that it's materially wrong, and that following this will lead to poor investment decisions.. This is "copy left" software, so feel free to alter this to your own tastes, and claim authorship.
Fractional Candlestick Long Only Experimental V10Fractional Candlestick Long-Only Strategy – Technical Description
This document provides a professional English description of the "Fractional Candlestick Long Only Experimental V6" strategy using pure CF/AB fractional kernels and wavelet-based filtering.
1. Fractional Candlesticks (CF / AB)
The strategy computes two fractional representations of price using Caputo–Fabrizio (CF) and Atangana–Baleanu (AB) kernels. These provide long-memory filtering without EMA approximations. Both CF and AB versions are applied to O/H/L/C, producing fractional candlesticks and fractional Heikin-Ashi variants.
2. Trend Stack Logic
Trend confirmation is based on a 4-component stack:
- CF close > AB close
- HA_CF close > HA_AB close
- HA_CF bullish
- HA_AB bullish
The user selects how many components must align (4, 3, or any 2).
3. Wavelet Filtering
A wavelet transform (Haar, Daubechies-4, Mexican Hat) is applied to a chosen source (e.g., HA_CF close). The wavelet response is used as:
- entry filter (4 modes)
- exit filter (4 modes)
Wavelet modes: off, confirm, wavelet-only, block adverse signals.
4. Trailing System
Trailing stop uses fractional AB low × buffer, providing long-memory dynamic trailing behavior. A fractional trend channel (CF/AB lows vs HA highs) is also plotted.
5. Exit Framework
Exit options include: stack flip, CF
PEGY Ratio (Robust)
Using the PEG but incorporating Dividends in order to find value investing opportunities by better understanding growth vs. forward P/E.
PEGY Ratio (Div Adj PEG)Identifying the PEGY (Dividend Adjusted PEG) to find value investment opportunities.
2 EMA Cross Signals – AL / SATIt gives signals at EMA crossovers. It gives buy and sell signals. You can change the EMA settings. It is very good for trend following.
Positional Supertrend Strategy (1D Filter + 2H Entry)Positional Supertrend Strategy (1D Filter + 2H Entry)
Turtle 20-Day Breakout (Donchian)Yes, the most important indicator used in the Turtle Rules (Turtle Trading Strategy) for finding breakouts above previous highs is the Donchian Channel. 🐢📈
Donchian Channel
The Donchian Channel is a trend-following indicator composed of three lines plotted on the chart:
Shutterstock
Upper Band: The highest high over the defined number of periods.
Lower Band: The lowest low over the defined number of periods.
Middle Line: The average of the Upper and Lower bands (not always used, but sometimes added for orientation).
The Turtle Rules use the following periods for the entry signals (breakouts) you mentioned in your query:
Short-Term (System 1): Crossing the 20-day high (this corresponds to the upper band of a Donchian Channel with a 20-period setting).
Mid-Term/Long-Term (System 2): Crossing the 55-day high (this corresponds to the upper band of a Donchian Channel with a 55-period setting).
Crossing the upper band signals a breakout and serves as the buy signal for a long position (for short positions, crossing below the lower band is used).
Is there anything else I can translate for you, or would you like me to elaborate on the Average True Range (ATR), the other key indicator used by the Turtles?
Quarterly Theory ChecklistThis indicator gives you a fully customizable trading checklist directly on your chart, helping you stay consistent and avoid emotional or impulsive trades.
You can pin the checklist to one specific symbol, so it only appears when you’re analyzing the pair or asset you want to track. Each checklist item has:
A checkbox you can manually toggle
A text label you can customize
Automatic coloring (green check ✔ or red cross ✘)
The indicator also calculates a Trade Score based on how many criteria you’ve checked off.
This score updates live and is color-coded:
Green = 75–100% confidence
Yellow = 50–74%
Red = below 50%
You can choose:
The position of the table
Text size
Header text & colors
Border color
Number of visible checklist rows (1–8)
Enable or disable the Trade Score
Everything is organized inside a clean 2-column checklist table with a polished UI.
Perfect for:
→ System traders
→ Checklists (HTF bias, POIs, confirmations, timing, etc.)
→ Evaluations & trade grading
→ Staying disciplined and rule-based
Absorption — Bullish or BearishAbsorption — Bullish or Bearish Only is a lightweight and minimalistic tool designed to identify pure absorption events in the market.
It highlights only two conditions:
Bullish Absorption
• Volume spike
• Small candle body
• Positive delta behavior (close > open)
→ Indicates potential buy-side absorption at lows
Bearish Absorption
• Volume spike
• Small candle body
• Negative delta behavior (close < open)
→ Indicates potential sell-side absorption at highs
This script intentionally keeps the chart clean by marking only “Bullish” or “Bearish” labels, without any additional visuals, colors, or extra signals.
Ideal for traders who want a simple, non-disruptive absorption confirmation tool.
Absorption DetectorAbsorption Detector is a clean and effective tool designed to identify institutional absorption at key turning points of the market.
It highlights candles where volume surges but the real body remains small, indicating potential absorption of liquidity before a reversal move.
Key Features
Volume Spike Detection – identifies abnormal increases in traded volume
Small Body Recognition – pinpoints candles with low real-body percentage
Delta Simulation (Fake Delta) – uses close–open behavior to approximate bullish/bearish delta
Bullish Absorption – highlights potential low-side absorption (green dots + green candles)
Bearish Absorption – highlights potential high-side absorption (red dots + red candles)
Background Highlighting – visual emphasis on absorption zones
Clean, lightweight and non-repainter
How It Helps
Absorption often occurs before strong moves:
Large players fill opposite orders
Stops are triggered and absorbed
Liquidity on one side dries up
Reversal or continuation moves follow
This indicator makes it easy to spot these moments in real time.
Session Range Boxes (Budapest time) GR V2.0Session Range Boxes (Budapest time)
This indicator draws intraday range boxes for the main Forex sessions based on Europe/Budapest time (CET/CEST).
Tracked sessions (Budapest time):
Asia: 01:00 – 08:00
Frankfurt (pre-London): 08:00 – 09:00
London: 09:00 – 18:00
New York: 14:30 – 23:00
For each session, the script:
Detects the session start and session end using the current chart timeframe and the Europe/Budapest time zone.
Tracks the high and low of price during the entire session.
Draws a box (rectangle) from session open to session close, covering the full price range between session high and low.
Optionally prints a small label above the first bar of each session (Asia, Fra, London, NY).
Color scheme:
Asia: soft orange box
Frankfurt: light aqua box
London: darker blue box
New York: light lime box
Use this tool to:
Quickly see which session created the high/low of the day,
Identify liquidity zones and session ranges that price may revisit,
Visually separate Asia, Frankfurt, London and New York volatility on intraday charts.
Optimized for intraday trading (Forex / indices), but it works on any symbol where session behavior matters.
macd sma20
### MACD_sma20 – Multi-Timeframe MACD Pullback & SMA20 Dashboard
This script is a complete trading toolkit built around a **MACD pullback strategy** combined with **multi-timeframe SMA20 filters**, volume analysis, and a compact information panel.
It is designed for traders who like to:
* Trade **MACD pullbacks above the moving average**
* Track **key SMA20 levels across multiple timeframes** (Daily, 3-Day, Weekly, Monthly)
* Quickly see whether **current price is above or below those reference levels**
* Use **clean visual signals** for entries and exits, instead of staring at raw indicator values
---
### Core Features
#### 1. MACD Pullback Long Signal (Green Triangle Up)
The script detects a **bullish MACD pullback** pattern:
* MACD line is still **above** the signal line
* Both MACD line and histogram **pull back** for several bars
* Then MACD turns back up again, with price trading **above the local SMA20**
When this “pullback and re-acceleration” is confirmed, a **green triangle below the bar** is plotted as a **long entry signal**.
There is also an optional filter:
* **Weekly SMA20 filter**:
If enabled, long signals are only triggered when **current price is above the Weekly SMA20**, helping you stay on the right side of the higher-timeframe trend.
---
#### 2. Bearish Pullback Confirmation Signal (Red Triangle Down)
On the short side, the script detects a **bearish pullback confirmation** based on:
* A recent **high-volume bearish candle** (large down bar with volume above a multiple of the 20-period volume average)
* At least a minimum number of **negative MACD histogram bars**
* MACD line moving closer to the signal line (loss of momentum)
* Price recovering back up near the **top of that high-volume bearish candle**, then starting to fall again while MACD stays positive
When all conditions align, the script prints a **red triangle above the bar**, indicating a **bearish pullback confirmation** – often a good area to take profits on longs or consider short/hedge setups.
---
#### 3. Signal History Tracking
For both long and short signals, the script internally tracks the **most recent three signals**:
* Timestamp of the signal
* Price at the signal
* Short-term percentage change into the signal
This is mainly for internal use and future expansion, but already gives you a structured signal history if you want to extend or connect the logic later.
---
### Multi-Timeframe SMA20 Dashboard (Bottom-Right Panel)
One of the most useful parts of this script is the **compact dashboard table** in the **bottom-right corner** of the chart. It updates in real time and shows:
1. **Current Price**
2. **Daily SMA20** – value + whether price is above/below
3. **3-Day SMA20** – value + whether price is above/below
4. **Weekly SMA20** – value + whether price is above/below
5. **Monthly SMA20** – value + whether price is above/below
6. **RSI** (current timeframe)
For each timeframe’s SMA20:
* If **price ≥ SMA20**, the status cell is **green** with a ✓
* If **price < SMA20**, the status cell is **red** with a ✗
This gives you, at a glance:
* Is the market in a **short-term uptrend or downtrend** (Daily SMA20)?
* Is the **swing / position trend** healthy (3D & Weekly SMA20)?
* Is the broader **macro structure** supportive (Monthly SMA20)?
You don’t need to manually switch timeframes or add multiple moving averages – the script does all of that for you automatically using `request.security`.
---
### Alerts
The script comes with two built-in alert conditions:
* **MACD回踩转多信号 (MACD pullback bullish signal)**
* **空头回抽确认信号 (Bearish pullback confirmation signal)**
You can attach TradingView alerts to these conditions to get notified whenever a new long or bearish-confirmation setup appears, even when you’re not watching the chart.
---
### How to Use It in Your Trading
1. **Choose your main trading timeframe**
* For intraday swing: 15m / 1h / 4h
* For swing / position: 4h / Daily
2. **Watch the bottom-right SMA20 panel**
* If most higher-timeframe SMA20 rows are **green**, you are trading **with the larger trend**.
* If they are **mixed or mostly red**, you’re either counter-trend or in a choppy transition zone.
3. **Use the green MACD pullback signals**
* Prefer long setups when:
* The **Weekly and Monthly SMA20 rows are green**, and
* The signal appears **above the Daily SMA20**
* This stacks multiple edges: trend + pullback + momentum re-acceleration.
4. **Use the red bearish confirmation signals for risk management**
* Take partial profits on longs when a red signal appears near resistance.
* Consider hedge/short opportunities if higher-timeframe SMA20 rows are already red or turning red.
5. **Use RSI as a context indicator**
* Combine with overbought/oversold zones or your own RSI thresholds for additional confirmation.
---
### Why This Script Is Useful
* **Trend awareness across timeframes**:
You always know where current price sits relative to the Daily / 3-Day / Weekly / Monthly SMA20 – without switching charts.
* **Clear, rule-based signals**:
The MACD logic is explicit and systematic, focused on **pullbacks within trends** rather than random crossovers.
* **Volume-aware bearish logic**:
High-volume bearish candles often mark important supply zones. The script builds this idea directly into the short-side confirmation logic.
* **Visual and intuitive**:
Green/Red triangles + Green/Red table cells make it easy to interpret even if you are not a heavy indicator user.
* **Flexible**:
All key parameters (MACD lengths, SMA length, volume threshold, lookback period, RSI length, weekly filter) are customizable, so you can adapt it to different markets (crypto, stocks, FX) and timeframes.
---
In short, this script is a **multi-timeframe MACD pullback system with an integrated SMA20 dashboard**, suitable for swing traders and position traders who want a structured, visually clean way to align entries with trend and momentum while keeping an eye on higher-timeframe levels.
EMA 9×20 Multi-TF Scanner — M/W/DThis scrip will facilitate for swing trade based on momentum achieved in monthly weekly and daily
MTF MACD – 1m / 15m / 1D / 1W//@version=6
indicator("MTF MACD – 1m / 15m / 1D / 1W", overlay=false)
// MACD inputs
fastLen = input.int(12, "Fast length")
slowLen = input.int(26, "Slow length")
signalLen = input.int(9, "Signal length")
// Multi-timeframe MACD using built-in ta.macd()
= request.security(syminfo.tickerid, "1", ta.macd(close, fastLen, slowLen, signalLen))
= request.security(syminfo.tickerid, "15", ta.macd(close, fastLen, slowLen, signalLen))
= request.security(syminfo.tickerid, "D", ta.macd(close, fastLen, slowLen, signalLen))
= request.security(syminfo.tickerid, "W", ta.macd(close, fastLen, slowLen, signalLen))
// Plot MACD lines for each timeframe
plot(macd_1m, title="MACD 1m", color=color.red, linewidth=2)
plot(macd_15m, title="MACD 15m", color=color.blue, linewidth=2)
plot(macd_1d, title="MACD 1D", color=color.green, linewidth=2)
plot(macd_1w, title="MACD 1W", color=color.orange, linewidth=2)
// (Optional) you can uncomment these if you also want signals/histograms:
// plot(signal_1m, title="Signal 1m", color=color.new(color.red, 50), style=plot.style_dotted)
// plot(signal_15m, title="Signal 15m", color=color.new(color.blue, 50), style=plot.style_dotted)
// plot(signal_1d, title="Signal 1D", color=color.new(color.green, 50), style=plot.style_dotted)
// plot(signal_1w, title="Signal 1W", color=color.new(color.orange, 50), style=plot.style_dotted)
// plot(hist_1m, title="Hist 1m", color=color.red, style=plot.style_histogram)
// plot(hist_15m, title="Hist 15m", color=color.blue, style=plot.style_histogram)
// plot(hist_1d, title="Hist 1D", color=color.green, style=plot.style_histogram)
// plot(hist_1w, title="Hist 1W", color=color.orange, style=plot.style_histogram)
Buy/Sell/SL/TP + MTF + Candle-close (v6)This indicator provides clean Buy/Sell signals with automatic Stop-Loss and Take-Profit levels, multi-timeframe filtering, and confirmed candle-close alerts to avoid false signals. SL/TP can be calculated using percentage or ATR.
It includes full alertconditions for Buy, Sell, SL hit, and TP hit, plus optional JSON webhook alerts for automation (WhatsApp, Telegram, bots, etc.).
Ideal for intraday and swing traders who want simple entries, clear risk management, and fast automated notifications.
EMA 5-8 Crossover Indicator//@version=5
indicator("EMA 5-8 Crossover Indicator", shorttitle="EMA Cross", overlay=false)
// EMA calculations
ema5 = ta.ema(close, 5)
ema8 = ta.ema(close, 8)
// Crossover signals
bullishCross = ta.crossover(ema5, ema8) // EMA5 crosses above EMA8 (BUY)
bearishCross = ta.crossunder(ema5, ema8) // EMA5 crosses below EMA8 (SELL)
// Trend state (for continuous background)
var int trend = 0
if bullishCross
trend := 1
else if bearishCross
trend := -1
// EMA lines (in lower pane)
plot(ema5, title="EMA 5", color=color.new(color.blue, 0), linewidth=2)
plot(ema8, title="EMA 8", color=color.new(color.orange, 0), linewidth=2)
// Continuous background colors
bgcolor(trend == 1 ? color.new(color.green, 85) : trend == -1 ? color.new(color.red, 85) : na, title="Trend Background")
// Alert conditions
alertcondition(bullishCross, title="BUY Signal", message="EMA 5 crossed above EMA 8 - BUY!")
alertcondition(bearishCross, title="SELL Signal", message="EMA 5 crossed below EMA 8 - SELL!")
RSI Divergence on Daily with 4hr & 1hr CorrectionRSI Divergence on Daily chart viewed in 4 hr timeframe to identifty 4 hr/1hr rsi corrections inside of the identified, Daily RSI level (source high)
Daily Vertical LineToggle to draw a vertical line through the start of each day. E.g. a dotted vertical line appears through the first candle of the day on any candle scale (up to around 2months prior)






















