Multi-TF EMA Alignment - Safe 3/4 Above EMA50 + ATR Pullbackthis script only triggers when your context, Validation, and entry time frames EMA's align for long positions
المؤشرات والاستراتيجيات
VX Levels and Ranch Ranges with SPY/SPX price converterThis is a indicator for all Vexly subscribers to plot the following:
1. Plot SPY/SPX levels on your ES chart. Or QQQ levels on your NQ chart
2. VX levels obtained from vx_levels command. SPY on ES chart and QQQ on NQ chart
3. Ranch Range levels from the discord channel for ES and NQ chart.
You can enable/disable any of them at your discretion.
MTF FVG 3-candleMTF FVG 3-candle is an indicator that detects Fair Value Gaps using a 3-candle pattern on the timeframe selected in the settings. It projects FVG zones onto lower timeframes, tracks the first touch and full fill of each zone, and provides alerts.
Vertical Time LinesVertical Time Lines is an indicator that draws vertical lines at specific times of each day on the price chart.
⚙️ Main Features
Up to 5 independent time lines
Precise hour and minute editing (HH:MM)
Individual enable/disable option per line
Customizable line color and style
Works on any asset and any timeframe
📝 Note
Due to Pine Script limitations, the lines are drawn using UTC time, not the time zone configured on the chart.
Lines are generated only when a candle exists exactly at the configured minute. If candles for the specified hours and minutes are not visible on the chart, the lines will not be displayed.
QQQ Overlay on NQ/NDX by @DashingBixbyEnhanced version of PtGambler's for drawing QQQ levels over NQ/NDX.
Candle LeverageTechnical indicator that calculates and visually displays the mathematical leverage factor of each individual candle.
FORMULA:
• Bullish Candle: Close ÷ (Close - Low)
• Bearish Candle: Close ÷ (High - Close)
VISUAL REPRESENTATION:
• Green labels above bullish candles with prefix "Lx"
• Red labels below bearish candles with prefix "Sx"
• The displayed number represents the calculated leverage value
TIME FRAME COMPATIBILITY:
• Works on ALL time frames (1 minute to monthly charts)
• Real-time calculation on each candle close
• Consistent behavior across all chart intervals
INTERPRETATION:
• Higher values indicate candles with smaller shadow proportion
• Lower values suggest candles with larger shadow proportion
• Purely quantitative analysis of candle structure
FEATURES:
• Purely mathematical calculation
• No predictions or trading signals
• Non-intrusive chart display
• Decimal places configuration available
• Compatible with any trading instrument (stocks, forex, crypto, etc.)
UTILITY:
For objective technical analysis of candle formations across any time frame, useful when combined with other analysis tools.
DISCLAIMER:
This indicator is provided for educational and research purposes only. It does not constitute financial advice. Trading involves significant risk of loss.
Dipy the MFT Super OscillatorDipy the MFT Super Oscillator
A multi-timeframe bandpass oscillator for mean-reversion and "buy the dip" strategies.
🎯 What It Does
Isolates market cycles within a specific frequency range to identify overbought/oversold conditions and reversal points.
⏱️ Multi-Timeframe
Set Signal Timeframe to calculate signals on higher TF while viewing lower TF chart. Example: 5min chart + 1H signals = noise reduction with precise timing.
⚙️ Key Settings
Bandwidth/BandEdge: Define the cycle range to capture
Cloud Type: None for thresholds, others for consensus cloud
Thresholds: Overbought/oversold levels for signals
💡 Best Use
Combine with trend indicator (only buy dips in uptrend)
Higher Signal Timeframe = cleaner signals
Cloud mode = more conservative entries
🔔 Alerts
Create ONE alert for all signals.
Derived from TASC 2025.04 Ultimate Oscillator by John Ehlers.
Key Levels: Volume Profile POCProfessional Intraday Key Levels (CST)
This is a comprehensive, institutional-grade Pine Script indicator designed for intraday traders (Futures, Stocks, Options) operating in the Central Time Zone. It automatically plots the most significant support and resistance levels used by algorithms and professional desks.
1. Core Levels Monitored
Daily Levels: Previous Day High (PDH), Low (PDL), Open, Close, and the 50% Midpoint (Equilibrium).
Volume Profile POC: Unlike standard indicators that use a simple average, this calculates the Volume Weighted Average Price (VWAP) of the previous day to determine the true "Fair Value" or Point of Control. Plotted with a thicker, distinct purple line.
Weekly Magnets: Previous Week High (PWH) and Low (PWL), which often act as major targets for breakouts or reversals.
Pre-Market Data: Tracks the High and Low established between 03:00 AM – 08:30 AM CST.
Opening Range (OR): Automatically captures the High and Low of the first 60 minutes of the regular session (08:30 AM – 09:30 AM CST).
2. Smart Visualization Features
Anti-Overlap Labels: If two levels (e.g., Pre-Market High and Previous Day High) are within 0.02% of each other, the script automatically merges them into a single label (e.g., "PDH & Pre-Market High") to prevent chart clutter.
Source Tracing: Trace lines extend backward from the current price level to the exact candle where that High or Low was formed (for Pre-Market and Opening Range levels), giving you instant context on when the level was created.
Clean Readability: Labels are displayed in bold, solid text without price numbers, ensuring a clean chart that focuses on level identification rather than data overload.
3. Technical Precision
Time Zone Locked: Hardcoded to America/Chicago to ensure Pre-Market and Opening Range calculations remain accurate regardless of your local computer settings.
Non-Repainting: Daily and Weekly levels are locked using closed-candle data (lookahead_on), ensuring lines do not shift during the trading day.
Buffer Safe: Optimized drawing logic prevents historical buffer errors, even on lower timeframes (1m/5m).
4. Customization
Toggle Everything: Every single level has an individual "Show/Hide" checkbox in the settings.
Label Sizing: Adjustable text size (Tiny to Huge) and offset positioning.
Compact Mode: Option to switch between full names ("Previous Day High") and abbreviations ("PDH").
MTF H4 Double Maru - All Historydouble marubozu level at h4 will appear at lower timeframe, use it wisely , take action after price already near or react with the level
GS Volume Truth Serum (With Alerts)this tells you when institutions are behind a move and its not a bull trap
Volume MAs Oscillator | Lyro RS// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © LyroRS
//@version=6
indicator("Volume MAs Oscillator | Lyro RS")
import LyroRS/LMAs/1 as DynamicMAs
//─────────────────────────────────────────────────────────────────────────────────────────────────────────────
//─██████─────────████████──████████─████████████████───██████████████───────████████████████───██████████████─
//─██░░██─────────██░░░░██──██░░░░██─██░░░░░░░░░░░░██───██░░░░░░░░░░██───────██░░░░░░░░░░░░██───██░░░░░░░░░░██─
//─██░░██─────────████░░██──██░░████─██░░████████░░██───██░░██████░░██───────██░░████████░░██───██░░██████████─
//─██░░██───────────██░░░░██░░░░██───██░░██────██░░██───██░░██──██░░██───────██░░██────██░░██───██░░██─────────
//─██░░██───────────████░░░░░░████───██░░████████░░██───██░░██──██░░██───────██░░████████░░██───██░░██████████─
//─██░░██─────────────████░░████─────██░░░░░░░░░░░░██───██░░██──██░░██───────██░░░░░░░░░░░░██───██░░░░░░░░░░██─
//─██░░██───────────────██░░██───────██░░██████░░████───██░░██──██░░██───────██░░██████░░████───██████████░░██─
//─██░░██───────────────██░░██───────██░░██──██░░██─────██░░██──██░░██───────██░░██──██░░██─────────────██░░██─
//─██░░██████████───────██░░██───────██░░██──██░░██████─██░░██████░░██───────██░░██──██░░██████─██████████░░██─
//─██░░░░░░░░░░██───────██░░██───────██░░██──██░░░░░░██─██░░░░░░░░░░██───────██░░██──██░░░░░░██─██░░░░░░░░░░██─
//─██████████████───────██████───────██████──██████████─██████████████───────██████──██████████─██████████████─
//─────────────────────────────────────────────────────────────────────────────────────────────────────────────
// LyroRS v1.0
// Groups
ma_g = "𝗠𝗢𝗩𝗜𝗡𝗚 𝗔𝗩𝗘𝗥𝗔𝗚𝗘"
bands_g = "𝗕𝗔𝗡𝗗"
display_g = '𝗗𝗜𝗦𝗣𝗟𝗔𝗬'
// Inputs
// -- Moving Average
source = input.source(close, "Source", group= ma_g, tooltip= "Select where the data originates (open, high, low, close, etc..).")
ma_type = input.string("EMA", "Select Moving Average", options= , group=ma_g, tooltip="Choose a moving average type to apply to the price multiplied by volume. VWMA already incorporates volume directly.")
ma_length = input.int(30, "Moving Average Length", group= ma_g, tooltip= "Defines the length or period of the selected moving average.")
// -- Bands
band_length = input.int(27, "Band Length", group=bands_g, tooltip="Number of bars used to calculate standard deviation.")
band_smoothing = input.float(0.8, "Band Smoothing", group=bands_g, minval=0, tooltip="Smooths the band edges to reduce noise.")
pbm = input.float(1.8, "Positive Band Multiplier", group=bands_g, minval=0, tooltip="Multiplier for the upper band distance.")
nbm = input.float(-0.85, "Negative Band Multiplier", group=bands_g, maxval=0, tooltip="Multiplier for the lower band distance.")
// Color Inputs
signal_type = input.string("Trend", "Select Signal Type", options= , group=display_g, tooltip="Select which way to use the indicator.")
ColMode = input.string("Mystic", "Custom Color Palette", inline="drop", options= , display=display.none, group= display_g, tooltip="Select a predefined color scheme for the indicator display. (Major Themes color mode automatically switches colors based on the major asset you picked for valuation analysis.)")
cpyn = input.bool (true, "Use Custom Palette", group= display_g, display=display.none, tooltip="Enables custom color selection for signals.")
cp_UpC = input.color (#00ff00, "Custom Up", inline = "Custom Palette", group= display_g, display=display.none, tooltip="")
cp_DnC = input.color (#ff0000, "Custom Down", inline = "Custom Palette", group= display_g, display=display.none, tooltip="User specifed bullish and bearish colors.")
d_obos_sigs = input.bool (true, "Display Oversold/Overbought Signs", group= display_g, display=display.none, tooltip="Enables triangle signs to be displayed.")
d_signs = input.bool (true, "Display Signs", group= display_g, display=display.none, tooltip="Enables signs for Trend mode.")
d_bgcol = input.bool (true, "Display Background Color", group= display_g, display=display.none, tooltip="Enables background color for Reversion & Valuation mode.")
// Colors
color UpC = na
color DnC = na
// -- Predefined Colors
switch ColMode
"Classic" =>
UpC := #00E676
DnC := #880E4F
"Mystic" =>
UpC := #30FDCF
DnC := #E117B7
"Accented" =>
UpC := #9618F7
DnC := #FF0078
"Royal" =>
UpC := #FFC107
DnC := #673AB7
// -- Custom Colors
if cpyn
UpC := cp_UpC
DnC := cp_DnC
// Coloring Function for Valuation
coloring(src) =>
color.from_gradient(src, ta.lowest(src, band_length), ta.highest(src, band_length), UpC, DnC)
// Moving Average Switch
float ma = na
switch ma_type
"SMA" => ma := DynamicMAs.SMA(source * volume, ma_length) / DynamicMAs.SMA(volume, ma_length)
"EMA" => ma := DynamicMAs.EMA(source * volume, ma_length) / DynamicMAs.EMA(volume, ma_length)
"WMA" => ma := DynamicMAs.WMA(source * volume, ma_length) / DynamicMAs.WMA(volume, ma_length)
"VWMA" => ma := DynamicMAs.VWMA(source, volume, ma_length) // Already Volume Based MA
"DEMA" => ma := DynamicMAs.DEMA(source * volume, ma_length) / DynamicMAs.DEMA(volume, ma_length)
"TEMA" => ma := DynamicMAs.TEMA(source * volume, ma_length) / DynamicMAs.TEMA(volume, ma_length)
"RMA" => ma := DynamicMAs.RMA(source * volume, ma_length) / DynamicMAs.RMA(volume, ma_length)
"HMA" => ma := DynamicMAs.HMA(source * volume, ma_length) / DynamicMAs.HMA(volume, ma_length)
"LSMA" => ma := DynamicMAs.LSMA(source * volume, ma_length, 0) / DynamicMAs.LSMA(volume, ma_length, 0)
"SMMA" => ma := DynamicMAs.SMMA(source * volume, ma_length) / DynamicMAs.SMMA(volume, ma_length)
"ALMA" => ma := DynamicMAs.ALMA(source * volume, ma_length, 0, 20) / DynamicMAs.ALMA(volume, ma_length, 0, 20)
"ZLSMA" => ma := DynamicMAs.ZLSMA(source * volume, ma_length) / DynamicMAs.ZLSMA(volume, ma_length)
"FRAMA" => ma := DynamicMAs.FRAMA(source * volume, ma_length) / DynamicMAs.FRAMA(volume, ma_length)
"KAMA" => ma := DynamicMAs.KAMA(source * volume, ma_length) / DynamicMAs.KAMA(volume, ma_length)
"JMA" => ma := DynamicMAs.JMA(source * volume, ma_length, 0) / DynamicMAs.JMA(volume, ma_length, 0)
"T3" => ma := DynamicMAs.T3(source * volume, ma_length, 0.5) / DynamicMAs.T3(volume, ma_length, 0.5)
price_diff = ((source - ma) / ma) * 100 // Percentage Difference between Source and the Moving Average of the source
// Calculations for the Bands
std = ta.stdev(price_diff, band_length)
upperBandRaw = std * pbm
lowerBandRaw = std * nbm
var float upperBand = na
var float lowerBand = na
// Smooth
upperBand := upperBandRaw * band_smoothing + nz(upperBand ) * (1 - band_smoothing)
lowerBand := lowerBandRaw * band_smoothing + nz(lowerBand ) * (1 - band_smoothing)
// Plot Color
var color pc = na
var color uB_color = na
var color lB_color = na
var int signal = 0
if signal_type == "Trend"
uB_color := UpC
lB_color := DnC
if price_diff > upperBand
pc := UpC
signal := 1
if price_diff < lowerBand
pc := DnC
signal := -1
if signal_type == "Reversion"
uB_color := DnC
lB_color := UpC
if price_diff > upperBand
pc := DnC
signal := -1
else if price_diff < lowerBand
pc := UpC
signal := 1
else
pc := color.gray
signal := 0
if signal_type == "Valuation"
uB_color := UpC
lB_color := DnC
pc := coloring(price_diff)
// Plot
plot(price_diff, color= pc, linewidth = 2, title= "Volume MAs Oscillator")
plot(upperBand, color= color.new(uB_color, 50), title= "Upper Band")
plot(lowerBand, color= color.new(lB_color, 50), title= "Lower Band")
plot(0, color= color.new(pc, 60), linewidth = 2, display= display.pane, title= "Mid Line")
plot(0, color= color.new(pc, 75), linewidth = 5, display= display.pane, title= "Mid Line Glow 1")
plot(0, color= color.new(pc, 85), linewidth = 10, display= display.pane, title= "Mid Line Glow 2")
plotchar(upperBand + 0.5, char='▼', color= ta.crossunder(price_diff, upperBand) ? DnC : na, location=location.absolute, title= "Overbought Signal", display= d_obos_sigs ? display.pane : display.none, size= size.tiny)
plotchar(lowerBand - 0.5, char='▲', color= ta.crossover(price_diff, lowerBand) ? UpC : na, location=location.absolute, title= "Oversold Signal", display= d_obos_sigs ? display.pane : display.none, size= size.tiny)
reversion_enable = signal_type == "Reversion"
valuation_enable = signal_type == "Valuation"
bgcolor(d_bgcol and ((valuation_enable and price_diff > upperBand) or (reversion_enable and ta.crossunder(price_diff, upperBand))) ? color.new(DnC, 85) : na, title= "BG Color OB")
bgcolor(d_bgcol and ((valuation_enable and price_diff > upperBand) or (reversion_enable and ta.crossunder(price_diff, upperBand))) ? color.new(DnC, 85) : na, title= "BG Color OB Overlay", force_overlay = true)
bgcolor(d_bgcol and ((valuation_enable and price_diff < lowerBand) or (reversion_enable and ta.crossover(price_diff, lowerBand))) ? color.new(UpC, 85) : na, title= "BG Color OS")
bgcolor(d_bgcol and ((valuation_enable and price_diff < lowerBand) or (reversion_enable and ta.crossover(price_diff, lowerBand))) ? color.new(UpC, 85) : na, title= "BG Color OS Overlay", force_overlay = true)
plotshape(ta.crossover(signal, 0), title="Buy Signal", location=location.belowbar,
style=shape.labelup, text="𝓛𝓸𝓷𝓰", textcolor=#000000, size=size.small,
color=UpC, force_overlay=true, display= signal_type == "Trend" and d_signs == true ? display.pane : display.none)
plotshape(ta.crossunder(signal, 0), title="Sell Signal", location=location.abovebar,
style=shape.labeldown, text="𝓢𝓱𝓸𝓻𝓽", textcolor=#000000, size=size.small,
color=DnC, force_overlay=true, display= signal_type == "Trend" and d_signs == true ? display.pane : display.none)
plotcandle(open, high, low, close, color= pc, wickcolor = pc, bordercolor = pc, force_overlay = true, display= display.pane, title= "Plot Candle")
barcolor(pc, title= "Barcolor")
// ==========================================================================================
// === Dashboard with Telegram Link ===
var table myTable = table.new(position.top_center, 1, 1, border_width=1, frame_color=color.black, bgcolor=color.white)
// Add Telegram Message to Dashboard
table.cell(myTable, 0, 0, "Join Telegram @mrexpert_ai", bgcolor=color.blue, text_color=color.white, text_size=size.normal)
Approved Engulfing - Confirmed Close Triggerengulfing tak respek atau king CMS, guna cs sebelum engulfing ni sebagai area entry, bila prce kembali ke area ini, tunggu rejection baru boleh entry, andai tak ada rejection tak boleh entry
the Engulfing is not respected or fails to hold (King CMS), use the candle prior to this engulfing as your entry area. When price returns to this zone, wait for a clear rejection before entering. If there is no rejection, do not enter the trade."
HMA & RSI Delta Hybrid SignalsA lag-free trend follower combining Hull Moving Average (HMA) with RSI Momentum Delta to filter false signals and catch high-probability reversals.
# 🚀 HMA & RSI Delta Hybrid Signals
This indicator represents a hybrid approach to trend trading by combining the smoothness of the **Hull Moving Average (HMA)** with the explosive detection capabilities of **RSI Momentum Delta**.
Unlike standard indicators that rely solely on price crossovers, this tool confirms the trend direction with the *velocity* of the price change (Momentum Delta), reducing false signals in choppy markets.
### 🧠 How It Works?
**1. Trend Detection (HMA):**
The script uses the **Hull Moving Average**, known for being extremely fast and lag-free, to determine the overall market direction.
* **Orange Line:** Represents the HMA Trend. The slope determines if we are in an Uptrend or Downtrend.
**2. Momentum Confirmation (RSI Delta):**
Instead of looking at raw RSI levels (like 70 or 30), this algorithm calculates the **"Delta"** (Absolute change from the previous bar).
* It asks: *"Is the price moving in the trend direction with enough speed?"*
* If the RSI jumps significantly (determined by the `Delta Threshold`), it confirms a strong entry.
### 🎯 Signal Modes (Sensitivity)
You can choose between two modes depending on your trading style:
* **🛡️ Conservative Mode (Default):**
* Strict filtering.
* Requires the Trend to match the HMA direction AND the RSI Delta to exceed the specific threshold (e.g., 0.8).
* *Best for:* Avoiding false signals in sideways markets.
* **⚔️ Aggressive Mode:**
* Faster entries.
* Requires the Trend to match the HMA direction AND any positive momentum change in RSI.
* *Best for:* Scalping or catching the very beginning of a move.
### ✨ Key Features
* **Non-Repainting Signals:** Once a bar closes, the signal is fixed.
* **Non-Repeating:** It will not spam multiple "BUY" signals in a row; it waits for a trend change or reset.
* **Visual Trend:** Background color changes based on the HMA slope (Green for Bullish, Purple for Bearish).
* **Fully Customizable:** Adjust HMA length, RSI period, and Delta sensitivity.
---
**⚠️ DISCLAIMER:** This tool is for educational and analytical purposes only. Always manage your risk.
Approved Engulfing - Confirmed Close Triggerit a single engulfing that i personally chase to find a good setup
Andres System - SuperTrend DMI EMAAdvanced Multi-Filter Trading System combining SuperTrend, DMI (Directional Movement Index), and EMA crossovers for high-probability trade entries.
**Key Features:**
- Real-time DMI table showing trend strength (Sideways/Mild/Normal/Strong/Very Strong)
- Filter status dashboard - see exactly which conditions are met
- Smart entry logic: signals trigger during entire EMA alignment period, not just at exact crossover
- Clear BUY/SELL signals with exit markers
- One signal per trade - prevents duplicate entries
**Entry Requirements:**
LONG: EMA 7 > 21 + SuperTrend bullish + DI+ > 20
SHORT: EMA 7 < 21 + SuperTrend bearish + DI- > 20
**Exit Conditions:**
Position closes when EMA crosses back or SuperTrend changes direction
**Additional Tools:**
- Previous Day High/Low levels
- Daily VWAP
- Color-coded EMAs (7, 21, 50)
- Customizable thresholds for all filters
**Best Timeframes:** 4H for swing trading, 1D for position trading
All visual elements can be toggled on/off. Alerts available for all signals.
N Days Back Session DividerThis Pine Script acts as a smart vertical marker that identifies exactly where a trading day began a specific number of sessions ago. It is designed to ignore "dead time" (like weekends or holidays) by focusing on actual market activity.
Plan Your Trade, Trade Your Plan. Levels. - by TenAMTrader📍 Plan Your Trade, Trade Your Plan. Levels. — by TenAMTrader
Successful trading is rarely about predicting — it’s about preparing.
"Plan Your Trade, Trade Your Plan. Levels" is designed to bridge the gap between analysis and execution by forcing clarity before the trade ever happens. Instead of reacting to price in real time, this tool encourages traders to define their plan, map their key levels, and then simply trade what they already decided.
🧠 Why Planning Matters
Most trading mistakes don’t come from bad analysis — they come from abandoning a plan mid-trade. Emotions take over when levels aren’t clearly defined ahead of time.
This indicator is built around a simple philosophy:
Make the plan first. Trade the plan second.
By writing your thesis directly into the indicator and visually anchoring it to price, you remove ambiguity and hesitation when the market starts moving.
📊 What This Indicator Does
Converts your written trade plan or market outlook into clearly plotted price levels
Automatically identifies:
Pivot level (key decision point)
Resistance levels (above pivot)
Support levels (below pivot)
Displays contextual notes directly on the chart so you always remember why a level matters
Keeps your focus on execution, not interpretation
✍️ How to Use It
Paste your daily or weekly plan into the Input your Plan/Levels box
Let the script extract and plot the levels automatically
Observe how price behaves around predefined zones
Execute only what aligns with your original plan
No guesswork. No moving targets.
🎯 Designed For
Traders who value structure and discipline
Futures, index, and equity traders who trade key levels
Traders focused on process over prediction
⚠️ Important Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice, investment advice, or a recommendation to buy or sell any security, futures contract, or financial instrument.
Trading involves substantial risk and is not suitable for all investors. Past performance is not indicative of future results. All trading decisions, risk management, and position sizing are the sole responsibility of the user.
By using this indicator, you acknowledge that TenAMTrader assumes no liability for any losses, damages, or decisions made based on its use.
Trade prepared. Trade disciplined.
"Plan Your Trade, Trade Your Plan.
— TenAMTrader
Slope Averages
📊 Indicator Overview: Three Moving Averages Slope Table
This indicator is designed to calculate and display the slopes and averages of three different moving averages (MAs) in a table format. It helps traders quickly visualize the direction and strength of multiple moving averages, as well as their combined averages, across different timeframes.
⚙️ Inputs and Configuration
• MA Type 1, 2, 3: Choose the type of moving average for each line. Options:
• (Exponential Moving Average)
• (Simple Moving Average)
• (Weighted Moving Average)
• (Volume-Weighted Moving Average)
• (a custom smoother using multiple EMAs)
• Length 1, 2, 3: Periods for each moving average (e.g., 20, 50, 100).
• Source: The price source used (default = ).
• Extra Timeframes (optional): You can configure up to 3 additional timeframes (e.g., 1h, 4h, Daily) to compare the combined average across different chart periods.
🔧 Functions Explained
1. tilson(src, length)
• A custom moving average that smooths price using 8 sequential EMAs.
• Produces a smoother line than a standard EMA.
2. getMA(src, length, maType)
• Selects the correct moving average type based on user input.
• Returns the chosen MA value.
3. Slope Calculation
• Each slope is calculated as:
• This converts the difference between current and previous MA values into an angle in degrees.
• Positive slope = upward trend, negative slope = downward trend.
4. Combined Slopes
• : Average slope of all three MAs.
• , , : Average slopes of pairs of MAs.
5. Combined Averages
• : Average of MA1 and MA2.
• : Average of MA2 and MA3.
• : Average of MA1 and MA3.
• : Average of all three MAs.
6. Color Function
• : Returns green if value ≥ 0, red if value < 0.
• Used to color table cells for quick visual feedback.
📋 Table Output
The table shows:
1. Individual slopes of MA1, MA2, MA3.
2. Average slope of all three.
3. Combined averages (M1+M2, M2+M3, M1+M3).
4. Combined slopes of pairs.
5. Overall average .
6. Optional: RSI or multi-timeframe averages can also be added.
Each value cell is colored green if positive, red if negative, making it easy to spot bullish or bearish conditions.
🎯 How to Use It
• Trend Strength: Look at the slope values. Steeper positive slopes = stronger uptrend; steep negative slopes = stronger downtrend.
• Confluence: When all three MAs and their combined averages point in the same direction, it signals strong trend alignment.
• Multi-Timeframe Analysis: Configure extra timeframes to see if short-term and long-term averages agree. If they align, confidence in the trend increases.
• RSI Integration (optional): Add RSI to confirm momentum. For example, bullish slope + RSI > 50 = stronger buy signal.
✅ Practical Example
• MA1 = EMA(20), MA2 = SMA(50), MA3 = WMA(100).
• If slope1, slope2, slope3 are all positive and green, and is also green → strong bullish trend.
• If slopes are mixed (some green, some red), the market is consolidating.
• If all slopes are red and is red → strong bearish trend.
Dynamic Multi-Timeframe SMAs (Brian Shannon Style)Overview : This indicator implements the logic of Brian Shannon's "Multi-Timeframe Analysis" on intraday charts. It automatically calculates the correct length for the 5-Day and 50-Day Simple Moving Averages (SMA), regardless of the timeframe (e.g., 5m, 15m, 1h) you are viewing.
How it works Standard SMAs only count bars. A "50 SMA" on a 5-minute chart only looks back ~4 hours. This script dynamically calculates how many bars represent full trading days.
Features:
Asset Class Selector : Choose between Crypto (24/7) and Stocks (6.5h US Session) to ensure correct minute-per-day calculations.
Info Table : Displays exactly how many bars are being used for the calculation in real-time.






















