OPEN-SOURCE SCRIPT

srd786-MTF Day Trading Indicator

208
Srd786-MTF Day Trading Indicator
Complete User Guide
Full Documentation with Input Descriptions, Functionality, Best Practices & Recommended Parameters

Table of Contents
1. Overview
2. Core Concept: Timeframe Alignment
3. Input Parameters
4. Functionality Breakdown
5. Signal Generation Logic
6. Information Tables
7. Alert Conditions
8. Best Practices
9. Recommended Parameter Values
10. Common Mistakes to Avoid
11. Appendix A: Color Coding Guide
12. Appendix B: Glossary
13. Appendix C: Quick Reference Card
14. Version Information
15. Support & Feedback
1. Overview
The srd786-MTF Day Trading Indicator is a sophisticated Multi-Timeframe (MTF) Day Trading System specifically designed for trading precious metals futures.
Symbol Description
MGC! Micro Gold futures
SIL! Micro Silver futures

Key Features
• Three-timeframe analysis for comprehensive market understanding
• MTF alignment scoring system for trade confidence filtering
• Session-based trading levels (ComeX hours)
• Automatic commodity-specific adjustments
• Real-time information tables
• Multiple alert conditions for automation
2. Core Concept: Timeframe Alignment
The indicator uses three timeframes for comprehensive market analysis:
Timeframe Purpose Default Setting
High TF (HTF) Determines overall trend direction Daily (1D)
Intermediate TF (ITF) Identifies trade setups 4-Hour (240)
Lower TF (LTF) Provides precise entry timing 1-Hour (60)

The Alignment Principle
The core principle is “alignment” — only take trades when all three timeframes agree on direction, which significantly improves probability. This reduces false signals and increases win rate by ensuring the larger market context supports your trade.
3. Input Parameters
3.1 MTF Settings
Input Description Default Options
High TF (Trend) Higher timeframe for trend identification 1D 1D, 1W, 240
Intermediate TF (Setup) Intermediate timeframe for confirmation 240 240, 120, 60, 30
Lower TF (Entry) Lower timeframe for precise entries 60 60, 30, 15, 5
Use HTF Trend Filter Only trade in HTF trend direction true true/false
Use HTF Momentum Confirm Require HTF momentum confirmation true true/false
Use ITF for Signal Generation ITF must confirm signals true true/false
Use LTF for Entry Timing Use LTF for entry timing true true/false
HTF Trend Bars Required Consecutive bars HTF must show trend 2 1-5
ITF Confirm Bars Required Bars ITF must confirm 1 1-3

Parameter explanations:
High TF (Trend)
• 1D (Daily): Best for capturing daily patterns in Gold/Silver
• 1W (Weekly): Longer-term trend perspective
• 240 (4-Hour): Faster trend identification
Use HTF Trend Filter
• When enabled: Only takes trades in HTF trend direction (lower risk)
• When disabled: Allows counter-trend trades (higher risk, more signals)
Use HTF Momentum Confirm
• When enabled: Requires HTF momentum confirmation
• Helps avoid trading against strong momentum
Use ITF for Signal Generation
• When enabled: ITF must confirm signals (additional layer)
• May reduce signal frequency but improves quality
Use LTF for Entry Timing
• When enabled: Uses LTF for precise entry timing
• Improves entry precision but adds complexity
HTF Trend Bars Required
• Higher values = stricter trend requirement
• More reliable signals but fewer opportunities
• Range: 1-5, Default: 2
ITF Confirm Bars Required
• Higher values = more confirmation needed
• Fewer but higher quality signals
• Range: 1-3, Default: 1
3.2 Commodity Settings
Input Description Default Options
Commodity Select trading commodity GOLD GOLD, SILVER

⚠️ Silver is more volatile than Gold and automatically receives adjusted settings: ATR Multiplier 2.0 vs Gold's 1.5; Limit Order Distance 0.10 vs Gold's 0.05. These overrides only apply if the user hasn't changed from default values.
3.3 VWAP Settings
Input Description Default
VWAP Source Price source for VWAP calculation hlc3

• hlc3 (Default): (High + Low + Close) / 3 — Standard VWAP source
• Close: Uses closing price only
• Open: Uses opening price
• OHLC4: (Open + High + Low + Close) / 4
3.4 ATR Settings
Input Description Default Recommended Range
ATR Length Period for ATR calculation 14 14 (standard)
ATR Multiplier for SL ATR multiple for stop-loss distance 1.5 Gold: 1.5, Silver: 2.0

• ATR Length: Higher = smoother but slower ATR response; standard is 14.
• ATR Multiplier: Higher = wider stop; lower = tighter stop. Gold recommended: 1.5; Silver recommended: 2.0.
3.5 Trade Settings
Input Description Default Notes
Reward-to-Risk Ratio Target calculation ratio 3.0 3.0 = aggressive, 2.0 = conservative
Limit Order Distance Distance from price for limit orders (ATR units) 0.05 Gold: 0.05, Silver: 0.10

Target (Long) = Entry + (ATR × ATR_Multiplier × RR_Ratio)
Target (Short) = Entry - (ATR × ATR_Multiplier × RR_Ratio)
Ratio Trading Style Risk Level
2.0 Conservative Lower reward, more fills
2.5 Balanced Moderate approach
3.0 Aggressive Higher reward, fewer fills

3.6 Swing Detection
Input Description Default Range
Swing Lookback Length Period for pivot detection 5 2+
Show Swing Highs/Lows Toggle swing visualization true true/false

• Higher values: More significant swings but fewer signals
• Lower values: More swings but more noise
• Default (5): Good balance for intraday trading
3.7 Support & Resistance
Input Description Default Range
S/R Lookback Bars Bars to look back for S/R detection 20 5+
Breakout Tolerance % Minimum % move to confirm breakout 0.02 0.01+

• Higher values: Fewer false breakouts but may miss valid ones
• Lower values: More breakouts detected but more false signals
• Default (0.02 = 2%): Good balance for precious metals
3.8 Trend & Momentum
Input Description Default Range
Trend EMA Length EMA period for trend determination 9 5+
Momentum Length RSI calculation period 14 5+

EMA Length Response Best For
5-9 Fast, more signals Scalping
9-21 Balanced Day Trading
21+ Slow, fewer signals Swing Trading

RSI Period Sensitivity Best For
7 High Short-term trading
14 Standard General use
21 Low Long-term analysis

3.9 Volume Settings
Input Description Default Range
Volume Average Length SMA period for average volume 20 5+

Used to determine if current volume is above or below normal. Volume confirmation strengthens breakout signals.
3.10 Info Settings
Input Description Default
Show Info Table Toggle main info tables true
Show MTF Table Toggle multi-timeframe analysis table true

3.11 Session Settings (Eastern Time)
Input Description Default
Session Start Hour (ET) Session start hour (0-23) 8
Session Start Minute Session start minute (0-59) 30
Session End Hour (ET) Session end hour (0-23) 15
Session End Minute Session end minute (0-59) 30

⚠️ ComeX Session: The primary precious metals exchange operates 8:30 AM - 3:30 PM ET
4. Functionality Breakdown
4.1 Multi-Timeframe Data Request System
The indicator uses request.security() to fetch data from three different timeframes simultaneously. The [1] offset ensures non-repainting confirmed values only; lookahead=barmerge.lookahead_on prevents future leak; tuples allow efficient single requests for multiple values.
4.2 MTF Trend Detection
Each timeframe is analyzed using EMA trend comparison, RSI momentum, and MACD direction.
4.3 MTF Alignment Scoring System
The alignment score quantifies how well all timeframes agree.
4.4 Breakout Detection
Breakouts are detected on current timeframe, session levels, and MTF combinations; MTF breakouts require both HTF and ITF confirmation.
4.5 Session Tracking
Tracks ComeX session open, high, low, and range.
4.6 Trade Level Calculations
When signals are confirmed, the indicator calculates limit order, stop-loss, target, and risk:reward levels.
4.7 Volume Analysis
Volume is classified against the configured average volume.
4.8 Volatility Context (ATR)
ATR is categorized as high, normal, or low volatility based on commodity type.
Indicator Calculation Bullish Signal Bearish Signal
Trend MA EMA comparison Close > EMA Close < EMA
Momentum RSI 14-period RSI RSI > 50 RSI < 50
MACD 12,26,9 MACD Line > Signal Line < Signal

Score Range Classification Trading Confidence
≥ 5 STRONG ALIGNMENT High confidence
2 to 4 MODERATE Good probability
-1 to 1 WEAK Low confidence (AVOID)
-2 to -4 MODERATE Good probability (short)
≤ -5 STRONG ALIGNMENT High confidence (short)

Session Time (ET)
Pre-Market 6:00 AM - 8:30 AM
ComeX Session 8:30 AM - 3:30 PM
Post-Market 3:30 PM - 5:00 PM

For GOLD ATR Classification
> 3 HIGH VOL
1.5 - 3 NORMAL VOL
< 1.5 LOW VOL

For SILVER ATR Classification
> 0.05 HIGH VOL
0.03 - 0.05 NORMAL VOL
< 0.03 LOW VOL

5. Signal Generation Logic
5.1 MTF Long Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bullish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bullish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bullish ITF trend and momentum useITFForSignals
4 LTF Timing Bullish LTF with RSI > 50 useLTFForEntry
5 MTF Alignment Score ≥ 2 Always

5.2 MTF Short Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bearish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bearish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bearish ITF trend and momentum useITFForSignals
4 LTF Timing Bearish LTF with RSI < 50 useLTFForEntry
5 MTF Alignment Score ≤ -2 Always

5.3 Signal Path Options
• Path 1: Full Confirmation — highest confidence; requires agreement across all analysis layers.
• Path 2: MTF-Only Signal — available when ITF/LTF confirmations are disabled.
6. Information Tables
6.1 Session Info Table (Top Left)
Row Content Description
1 Commodity GOLD or SILVER
2 Session ACTIVE / PRE-MKT / POST-MKT / CLOSED
3 ComeX Open Session open price
4 Session High Highest price this session
5 Session Low Lowest price this session
6 Session Range Total movement potential
7 vs Open Position vs session open (%)

6.2 Indicators Table (Top Right)
Row Content Description
1 Current Price Live price
2 VWAP Volume Weighted Average Price
3 VWAP Status ABOVE/BELOW/EXTENDED status
4 Support Recent swing low level
5 Resistance Recent swing high level
6 Level Status Proximity to key levels
7 Current Vol Current bar volume
8 Avg Vol 20-bar average volume
9 Vol Status HIGH/LOW/AVG classification
10 ATR Average True Range value
11 Vol Regime HIGH/NORMAL/LOW volatility
12 Trend Current trend classification
13 Momentum Momentum with RSI value
14 MACD BULLISH/BEARISH status

6.3 Trade Levels Table (Bottom Left)
Row Content Description
1 MTF Signal MTF LONG / MTF SHORT / WAIT
2 Alignment STRONG/MODERATE/WEAK classification
3 Limit Order Dist Distance in ATR units
4 Limit Order Price Pending entry price
5 Stop-Loss Risk exit level
6 Target Reward target price
7 Risk:Reward Achieved R:R ratio

6.4 MTF Analysis Table (Middle Right)
Row HTF ITF LTF
Timeframe 1D 4H 1H
Trend BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL
Momentum STRONG BULL/etc STRONG BULL/etc STRONG BULL/etc
RSI 55.0 52.0 58.0
MACD BULL/BEAR BULL/BEAR BULL/BEAR
VWAP ABOVE/BELOW ABOVE/BELOW ABOVE/BELOW
Breakout UP/DOWN/NONE UP/DOWN/NONE UP/DOWN/NONE
Alignment Score: X — —

7. Alert Conditions
The indicator creates 10 alert conditions for automated trading:
Alert Name Trigger Message/Use Case
MTF LONG Signal All TFs aligned for long Ticker, Price
MTF SHORT Signal All TFs aligned for short Ticker, Price
MTF Long Developing HTF/ITF align, LTF pending Early warning
MTF Short Developing HTF/ITF align, LTF pending Early warning
MTF Bullish Breakout Breakout on Daily AND 4H Highest confidence
MTF Bearish Breakout Breakdown on Daily AND 4H Highest confidence
VWAP Cross Up Price crosses above VWAP —
VWAP Cross Down Price crosses below VWAP —
Session Breakout Up Break above session high —
Session Breakout Down Break below session low —

8. Best Practices
8.1 Before Trading
16. Confirm Alignment Score: Wait for score ≥ 2 (bullish) or ≤ -2 (bearish)
17. Check Session Status: Ensure ComeX session is ACTIVE
18. Verify Volume: Confirm volume is ABOVE AVG or HIGH during signals
19. Review VWAP: Price should be above VWAP for longs, below for shorts
8.2 During Trading
20. Monitor Volatility: Adjust expectations in HIGH VOL conditions
21. Watch for Signal Changes: Alignment can shift quickly
22. Track Session Levels: Session High/Low act as dynamic S/R
8.3 Risk Management
23. Use Proper Position Size: Based on ATR-based stop loss
24. Never Risk More Than 1-2% Per Trade
25. Accept that 3:1 RR means ~33% win rate is breakeven
9. Recommended Parameter Values
For Gold (MGC!) Value Reason
Commodity GOLD Default setting
ATR Multiplier 1.5 Gold's moderate volatility
Limit Order Distance 0.05 Tight entries for gold
RR Ratio 3.0 Aggressive targeting
ATR Length 14 Standard setting

For Silver (SIL!) Value Reason
Commodity SILVER Required setting
ATR Multiplier 2.0 Silver's higher volatility
Limit Order Distance 0.10 Wider entries for silver
RR Ratio 2.5-3.0 Adjusted for volatility
ATR Length 14 Standard setting

Trading Style HTF ITF LTF
Scalping 240 60 5/15
Day Trading 1D 240 60
Swing Trading 1W 1D 240

Experience HTF Filter Momentum Confirm ITF Signals LTF Entry
Beginner ON ON ON ON
Intermediate ON ON ON OFF
Advanced OFF OFF OFF OFF

10. Common Mistakes to Avoid
Mistake Consequence Solution
Trading during alignment score = 0 Fighting conflicting timeframes Wait for alignment ≥ 2 or ≤ -2
Using tight stops in HIGH VOL Getting stopped out by noise Use higher ATR multiplier
Ignoring HTF trend direction Lower win rate Enable HTF Trend Filter
Trading outside ComeX session Poor liquidity, wider spreads Enable session filter
Taking trades with WEAK alignment Low probability trades Wait for MODERATE or STRONG
Ignoring volume confirmation False breakouts Wait for volume confirmation

Appendix A: Color Coding Guide
Color Meaning
🟢 Green Bullish / Above average
🔴 Red Bearish / Below average
🔵 Blue Neutral / VWAP related
🟣 Purple Session levels
🟠 Orange ComeX open reference
⚪ Gray Neutral / Waiting

Marker Meaning
Lime Triangle ↓ Confirmed MTF Long
Red Triangle ↑ Confirmed MTF Short
Faded Triangle Standard signal (not MTF confirmed)

Appendix B: Glossary
Term Definition
ATR Average True Range - measures volatility
ComeX Commodity Exchange - primary metals exchange
EMA Exponential Moving Average
HTF High Timeframe
ITF Intermediate Timeframe
LTF Lower Timeframe
MACD Moving Average Convergence Divergence
MTF Multi-Timeframe
RSI Relative Strength Index
RR Risk:Reward ratio
S/R Support and Resistance
VWAP Volume Weighted Average Price

Appendix C: Quick Reference Card
Daily Setup Checklist
☐ Commodity selected correctly (GOLD/SILVER)
☐ Timeframes configured for trading style
☐ Session times verified
☐ Info tables enabled
☐ Alerts configured
Before Entry Checklist
☐ Alignment score ≥ 2 (long) or ≤ -2 (short)
☐ ComeX session is ACTIVE
☐ Price above VWAP (longs) / below VWAP (shorts)
☐ Volume confirming the move
☐ All three TFs aligned
Trade Management
☐ Entry: Limit order at calculated level
☐ Stop: ATR-based stop loss
☐ Target: R:R based on settings
☐ Monitor: VWAP crossovers
☐ Exit: At target or stop, never early
Version Information
Item Details
Script Version v6
Author © Pineify
License Mozilla Public License 2.0
Compatibility TradingView Pine Script v6

Support & Feedback
• Submit through TradingView's indicator page
• Include your parameter settings when reporting issues
• Provide chart screenshots when possible
Formatted user guide generated from supplied content.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.