AMD Visual State Model [POC]# AMD Visual State Model - Quick Start Guide
## 🎯 Goal
Get the indicator running on your TradingView chart in under 5 minutes.
---
## ⚡ 5-Minute Setup
### Step 1: Install (2 minutes)
1. Open (www.tradingview.com)
2. Open any chart (recommend ES1! or NQ1! futures, 1-minute timeframe)
3. Click Pine Editor at bottom of screen
4. Click "New" → "Blank indicator script"
5. Delete all default code
6. Copy/paste entire contents of `amd_complete.pine`
7. Click "Save" → Name it: `AMD Visual State Model`
8. Click "Add to Chart"
### Step 2: First Look (1 minute)
You should now see:
- ✅ Blue/orange boxes (session ranges) - if during Asian/London hours
- ✅ Yellow horizontal lines (liquidity levels) - if after 08:00 NY
- ✅ Gray/orange vertical lines (time markers) - at 09:30 and 10:00 NY
**If nothing appears:** Check that it's a trading day and within session hours.
### Step 3: Settings (2 minutes)
Click indicator name → Settings icon (gear) → Inputs tab
**Verify timezone:**
```
Timezone: America/New_York ✓
```
**Recommended starting values (already defaults):**
```
Sweep Distance (ATR): 1.5 ✓
Displacement ATR: 2.0 ✓
FVG Min Size: 0.5 ✓
Entry Timeout: 60 minutes ✓
Max Entries Per Day: 1 ✓
```
**Visual settings:**
- Enable all checkboxes (Show Session Ranges, Show Liquidity Levels, etc.)
- Adjust opacity if chart is too cluttered (default 90 is good)
**Alert settings:**
- Enable all 5 alert types
- You'll set up actual alerts in Step 4
Click "OK"
---
## 🔔 Setting Up Alerts (3 minutes)
### Critical Alert: Entry Allowed
1. Click indicator name on chart
2. Click "⋮" (three dots) → "Add alert on AMD Visual State Model"
3. **Condition:** "Any alert() function call" OR specific "Entry Allowed" message
4. **Alert name:** "AMD Entry Signal - "
5. **Options:**
- Trigger: "Once Per Bar Close" ✓
- Expiration: "Open-ended" ✓
6. **Notifications:**
- ✓ Notify on app
- ✓ Show popup
- ✓ Send email (optional)
- ✓ Webhook URL (if using automation - leave blank for now)
7. Click "Create"
### Optional: Set Up All 5 Alerts
Repeat above for each alert type:
1. Manipulation Detected
2. Distribution Confirmed
3. FVG Formed
4. Price in Entry Zone
5. Entry Allowed ⭐ (most critical)
---
## 📊 First Day Usage
### Pre-Market (Before 09:30 NY)
**Action:** None - just ensure indicator is on chart
### Asian Session (18:00-02:00 NY)
**What to expect:**
- Blue box appears showing Asian high/low range
- This happens automatically
**Action:** None required
### London Session (03:00-08:00 NY)
**What to expect:**
- Orange box appears showing London high/low range
- At 08:00, yellow lines appear = liquidity levels
- State advances to ACCUMULATION_READY
**Action:** None required - just observation
### NY Open (09:30 NY)
**What to expect:**
- Gray vertical line appears
- State is still ACCUMULATION_READY
**Action:** Get ready to watch
### Decision Point (10:00 NY) ⭐
**What to expect:**
- Orange vertical line appears
- State advances to MANIPULATION_ARMED
- Now watching for liquidity sweep
**Action:** Active monitoring begins
### 10:00-11:00 (The Trading Window)
**Watch for this sequence:**
#### 1. 🔼/🔽 MANIPULATION LABEL
- Price sweeps liquidity level (high or low)
- Reverses quickly
- Label appears: "🔼 BULLISH SWEEP" or "🔽 BEARISH SWEEP"
- Alert fires: "Manipulation Detected"
**What this means:** Setup is activating. Direction is determined.
#### 2. ⚡ DISPLACEMENT LABEL
- Large candle appears in direction opposite the sweep
- Label: "⚡ DISPLACEMENT"
- State: DISTRIBUTION_ARMED
**What this means:** Institutional involvement confirmed.
#### 3. 📊 STRUCTURE SHIFT LABEL
- Price breaks swing high (bullish) or swing low (bearish)
- Label: "📊 STRUCTURE SHIFT"
- Alert fires: "Distribution Confirmed"
**What this means:** Trend change confirmed. Watch for entry zone.
#### 4. FVG BOX APPEARS
- Green box (bullish) or red box (bearish)
- Shows "gap" in price where imbalance occurred
- Alert fires: "FVG Formed"
**What this means:** Entry zone identified. Wait for price to retrace.
#### 5. 🎯 ENTRY SIGNAL
- Price touches/enters FVG zone
- Big label appears: "🎯 LONG ENTRY" or "🎯 SHORT ENTRY"
- Alert fires: "ENTRY ALLOWED" ⭐
**What this means:** ALL CONDITIONS MET. Execute trade.
---
## 💡 Your First Trade (Paper Trading Recommended)
### When Entry Signal Appears:
**For LONG Entry (Bullish Sweep):**
```
Entry: Current price (in FVG zone)
Stop Loss: Below manipulation low
Take Profit: 1.5-2x risk
```
**For SHORT Entry (Bearish Sweep):**
```
Entry: Current price (in FVG zone)
Stop Loss: Above manipulation high
Take Profit: 1.5-2x risk
```
### Example Trade (Bullish)
```
Manipulation low: 4845.00
Entry price: 4850.00 (in FVG)
Stop loss: 4843.00 (2 points below manip low)
Risk: 7 points
Target: 4860.50 (1.5R) or 4871.00 (3R)
```
**Position sizing:**
- Determine $ risk per trade (e.g., $500)
- Calculate: Contracts = $500 / (7 points × $50/point) = 1.4 → round to 1 contract
---
## 🐛 Troubleshooting First Day Issues
### "I don't see any boxes or lines"
**Check:**
1. Is it a trading day? (Not weekend/holiday)
2. Is it within session hours?
3. Are visual settings enabled? (Click indicator → Settings → Inputs → scroll to Visual Settings)
### "I see session boxes but no liquidity levels"
**Reason:** Liquidity levels only appear after sessions complete (after 08:00 NY)
**Solution:** Wait until London session ends
### "I got manipulation alert but no FVG formed"
**Possible reasons:**
1. Distribution phase incomplete (need displacement + structure shift)
2. No valid FVG detected (gap too small)
3. Settings too strict
**Solution:** Enable debug mode to see what's blocking progression
### "Entry signal never appeared"
**Check debug table:**
- Is FVG detected? ✓
- Is price in FVG? (may have missed it)
- Is entry timeout reached? (>60 minutes past 10am)
**Solutions:**
- Increase entry timeout to 90 minutes
- Watch price more closely when FVG forms
---
## 🎓 Learning Mode (First Week)
### Day 1-2: Observation Only
- Watch indicator state progression
- Note when each label appears
- Don't take trades yet - just learn the flow
### Day 3-5: Paper Trading
- Take trades on paper when entry signal appears
- Track outcomes in spreadsheet
- Refine understanding of risk/reward
### Day 6-10: Small Size Live
- If paper results positive, start with 1 micro contract (MES/MNQ)
- Gradually increase as confidence builds
---
## 📈 Success Metrics (First 30 Days)
Track these metrics:
**Setup Quality:**
- Total days with complete AMD cycle: ___ / 20 trading days
- % of cycles that completed: ___% (target: >50%)
**Entry Quality:**
- Total entry signals: ___
- Signals taken: ___
- Win rate: ___% (target: >55%)
**Execution Quality:**
- Average R-multiple: ___ (target: >1.5R)
- Max adverse excursion: ___ (should be < stop distance)
- Max favorable excursion: ___ (should be > 2R minimum)
---
## 🔧 Settings Adjustment After First Week
### If too many false signals:
```
Sweep ATR: 1.5 → 2.0
Displacement ATR: 2.0 → 2.5
FVG Min Size: 0.5 → 0.7
```
### If missing good setups:
```
Sweep ATR: 1.5 → 1.2
Displacement ATR: 2.0 → 1.7
FVG Min Size: 0.5 → 0.4
Entry Timeout: 60 → 90 minutes
```
### If setups never complete:
```
Structure Confirm: 2 → 1 bar
Swing Length: 5 → 3
FVG Lookback: 10 → 15 bars
```
---
## 📱 Mobile Setup (Optional)
1. Download TradingView app
2. Open saved chart with AMD indicator
3. Alerts will push to phone when conditions met
4. Can monitor progression on mobile
**Limitations:**
- Smaller screen (harder to see details)
- Debug table may be hard to read
- Recommend tablet over phone for active monitoring
---
## ✅ Day 1 Checklist
Before market open tomorrow:
- Indicator installed on chart
- Settings verified (timezone, defaults)
- At least "Entry Allowed" alert set up
- Alert notifications working (test with random alert)
- Risk management plan documented
- Position size calculated
- Stop loss strategy defined
- Trading journal ready to log results
---
## 🎯 Key Reminders
1. **One setup per day maximum** (unless max entries increased)
2. **Only trade after 10:00 AM** (decision point)
3. **Wait for entry signal** (don't anticipate)
4. **Stop loss is mandatory** (below/above manipulation level)
5. **If in doubt, sit out** (better to miss setup than lose capital)
---
## 📞 Next Steps
**After first successful setup observed:**
→ Review full documentation (AMD_DOCUMENTATION.md)
**After 10-20 trades:**
→ Analyze results, adjust parameters
**After 60 days with positive results:**
→ Consider strategy version for automation
---
**Good luck with your first AMD setup!**
Remember: The indicator prevents premature entry. Trust the state progression.
Indicateurs et stratégies
VIXO - VIX Oscillator// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © emreiletrade
//@version=6
indicator(title="VIXO - VIX Oscillator", shorttitle="VIXO", overlay=false)
// === Inputs ===
rsiLen = input.int(defval=14, title="RSI Length", minval=11, maxval=55)
momLen = input.int(defval=11, title="Momentum Length", minval=9, maxval=21)
normLookback = input.int(defval=100, title="Momentum Normalization Lookback", minval=20, maxval=200)
// === Data (OHLC needed) ===
=
request.security("TVC:VIX", timeframe.period, )
// === RSI Oscillator ===
vixRsi = ta.sma(ta.rsi(vixClose, rsiLen), 5)
// === Momentum (ROC) ===
vixMom = ta.roc(vixClose, momLen)
// === Momentum Normalization (0–100, 50 neutral) ===
momMin = ta.lowest(vixMom, normLookback)
momMax = ta.highest(vixMom, normLookback)
vixMomNorm = ta.sma(100 * (vixMom - momMin) / math.max(momMax - momMin, 1e-6), 3)
// === Helpers ===
vixMa = ta.sma(vixClose, 21)
ratio = vixMa != 0.0 ? (vixClose / vixMa) : 0.0
clampedRatio = math.min(math.max(ratio, 0.0), 1.6)
dynamicTransparency = 100.0 - (clampedRatio * 40.0)
dynamicTransparency := math.min(math.max(dynamicTransparency, 0.0), 100.0)
dynamicTransparency := vixHigh < 30 ? 100 : dynamicTransparency
// === Colors ===
color baseColor = close > close ? color.new(#00FF00, 0)
: close < close ? color.new(#FF0080, 0) : color.gray
color vixBarColor = color.new(baseColor, dynamicTransparency)
color pointColor = color.new(baseColor, dynamicTransparency)
// === Levels ===
hline(80, "Panic of Market", color=color.rgb(0, 255, 0, 40))
hline(60, "VIX says BUY", color=color.rgb(0, 255, 0, 70))
hline(50, "Neutral / Momentum Mid", color=color.new(color.gray, 50))
hline(40, "Get Ready", color=color.new(color.gray, 60))
// === Plots ===
plot(vixRsi, title="VIX RSI", color=color.rgb(0, 255, 255), linewidth=2)
plot(vixMomNorm, title="VIX Normalized Momentum", color=color.new(color.gray, 50), linewidth=1)
plot(vixHigh > 50 ? vixHigh : na, title = "High Points", style = plot.style_cross, color = color.new(pointColor,0))
plot(vixHigh, title="VIX Value Bars", style=plot.style_histogram, color=vixBarColor, linewidth=1)
Red light / Green lightInspired on the video www.youtube.com
In the video he claims that using simple indicators work better than complex indicators.
This script was created using 1 indicator from each indicator family.
The following indicators are used:
- RVI as a volatility indicator
- Chaiking Oscillator as a volume indicator
- RSI as a momentum indicator
- MACD as a trend indicator
Don't forget to adapt the order size and the commission. I've taken commission as 0.1 based on the Bybit non-VIP spot trading.
Happy trading!
Gammastrike Greek Neutrals by WWfor Gammastrike users:
Fill the SPX or SPXW fields with the four neutrals from the dashboard page separated by commas and no spaces:
xxxx,xxxx,xxxx,xxxx
up to two decimal places and/or a mix of whole numbers, one or two decimal places are supported:
xxxx.x,xxxx.x,xxxx.x,xxxx.x
xxxx.xx,xxxx.xx,xxxx.xx,xxxx.xx
xxxx.x,xxxx,xxxx.xx,xxxx
Explore other settings to tailor to your liking.
Enjoy!
[PickMyTrade] Trend strategy for LongThis strategy detects descending trend resistance using pivot-based trendlines and enters long positions when price confirms a breakout above a validated trendline. It is designed to capture bullish trend reversals with strict risk control and flexible exit management.
The system focuses on structural market behavior rather than indicators, making it suitable for traders who prefer price-action-based decision making.
USAGE
This strategy automatically builds trendlines from confirmed pivot highs. A trendline is considered valid only when price has interacted with it a user-defined number of times, ensuring that trades are taken only from well-formed market structures.
A trade is triggered when price closes above a validated descending trendline while optional session and position limits are respected.
All risk and position sizing are calculated automatically based on the selected risk amount and stop-loss distance.
HOW IT WORKS
The strategy identifies swing highs using pivot logic and connects them into descending trendlines. Each trendline must meet a minimum number of touch confirmations before becoming eligible for trading.
When price closes above a valid trendline, the strategy calculates:
Stop-loss placement below the most recent pivot low
Position size based on fixed monetary risk
Profit targets based on the selected exit method
EXIT METHODS
Three exit models are supported:
Risk–Reward Ratio
Uses a fixed multiple of the defined risk distance to set the take-profit level.
Lookback Candle Exit
Exits trades when price shows structural reversal behavior based on recent candles.
Fibonacci Targets
Uses Fibonacci extensions derived from recent swing structure to trail profits dynamically.
An optional trailing stop can also be enabled to protect open profits.
FEATURES
Automatic pivot-based trendline detection
Multi-trendline or single-trendline operation
Dynamic position sizing based on monetary risk
Pivot-based stop-loss placement
Multiple exit methodologies
Optional trailing stop
Optional trading session filter
Fully visualized trendlines, stop levels, and profit targets
SETTINGS
Trend Detection
Pivot Length for Trend
Touch Number
Validation Percentage
Optional Pivot-to-Pivot Confirmation
Risk Management
Fixed Risk Amount
Default Contract Size Option
Stop-Loss Buffer
Trailing Stop Toggle
Take-Profit
Exit Method Selection
Risk-Reward Ratio
Lookback Candle Length
Fibonacci Extension Levels
Session Filter
Enable/Disable Session Trading
Trading Session Time Window
FX Rate Bias US vs EU 2YFX Rate Bias – US vs EU (2Y)
This indicator provides a macro bias framework for FX markets by tracking the 2-year government bond yield differential between the United States and Germany.
Rather than displaying the spread as a raw calculation, the script translates interest-rate expectations into a clear directional bias, helping traders understand which currency currently holds a rate advantage.
The 2Y segment of the yield curve is highly sensitive to:
Central bank expectations
Forward guidance
Shifts in short-term monetary policy outlook
How to use
Positive spread → USD rate advantage
Negative spread → EUR rate advantage
Designed to be used as a contextual macro tool, this indicator helps align technical setups with broader monetary conditions.
It is not intended as a standalone entry or signal generator.
Midnight StrategyHigh / Low 15mins after midnight CET, after two breakouts Long/Short with SL (High-Low)/2
Ichimoku VIPThe system automatically analyzes strengths and advantages, making it easier to filter signals.
Happy New Year Kalman bands Oscillator🎄 Happy New Year Kalman bands Oscillator 🎆
Kalman bands + william's wix fix + price elasticity
ATR Trimmed Daily Volatility Context Open-Close AnchoredPurpose
This indicator provides daily volatility context using a trimmed Average True Range ATR. It helps you assess whether todays movement is compressed, normal, or expanded — without predicting direction.
Key idea
Price movement is meaningful only relative to typical volatility. ATR describes what is normal for the instrument; it does not forecast highs-lows.
How it works
ATR Trim is calculated from the last N completed daily candles (default 5).
The script optionally removes extreme daily ranges (Trim used) to reduce distortion from abnormal spikes.
Bands are projected from a selectable Anchor:
Open (todays daily open) — intraday session context
Close (previous days close) — swing-multi-day context
Killzones [Tradeuminati]Killzones is a precise TradingView indicator designed to display the most important institutional trading windows (“Killzones”) based strictly on New York local time.
The indicator focuses on accurate session timing, automatic asset classification, and stable chart behavior without affecting price scale or candle colors.
🔹 Included Killzones (NY Local Time)
London Killzone
02:00 – 05:00
New York Killzone (AM)
Indices & Index CFDs: 09:30 – 11:00
All other assets (Forex, Crypto, Commodities such as Gold, DXY): 07:00 – 10:00
New York PM Killzone
14:00 – 15:00
🔹 Asset Logic (Fully Automatic & Locked)
- Indices and Index CFDs are detected automatically
- Forex, Crypto, Commodities (e.g. Gold/XAUUSD, DXY) always use the 07:00–10:00 New York Killzone
- Stocks (Equities) are completely excluded
→ no lines, no table, no status display
This ensures the indicator is purpose-built for intraday trading in highly liquid markets and intentionally not designed for stock charts.
🔹 Chart Visualization
- Vertical session lines are drawn statically at the start of each New York trading day
- Lines are not dependent on bar timestamps
- No distortion of the price scale
- Session lines are shown only on intraday timeframes below 4H
- Line color, width, and style are fully adjustable
🔹 Status Table (Top Right)
- Clear overview of all Killzones with start and end times
- Live status indicator (green/red) based on the real current time (timenow), not the last printed candle
- The table remains visible on all timeframes (except stocks)
🔹 Technical Highlights
- Pure New York time–based logic, independent of chart timezone
- No future-bar plotting
- Stable across different brokers and CFD feeds
- Does not interfere with other indicators or candle coloring
⚠️ Disclaimer
This indicator is intended for technical analysis only and does not constitute trading or investment advice.
777 mean reversion engineA guy asked his librarian if they had any books on "paranoia." She leaned in and whispered, "They're right behind you." He hasn't been back to the library since.
Dragon Trend+Arrows Suite
This indicator is a volatility-normalized momentum + trend state tool designed to provide a clean “market regime” read: UP / DOWN / NEUTRAL, with optional visual confirmation on the chart. Works on collection of clasic indicators and some simple math.
⚙️ How it works (logic)
1) Adaptive baseline
The core reference line is an EMA(basisLen) acting as a dynamic equilibrium price. You can treat this setting as a sensitivity for entire thing.
2) ATR volatility envelope
An ATR channel is built around the baseline:
Upper Band = EMA + (ATR × multiplier)
Lower Band = EMA − (ATR × multiplier)
This scales signals to current volatility (tight markets vs. fast markets).
3) “Impulse” detection
Bull impulse when price is above both the baseline and the upper ATR band.
Bear impulse when price is below both the baseline and the lower ATR band.
4) Momentum confirmation (filters)
Signals are confirmed only when momentum agrees:
RSI must be on the correct side of 50
MACD Histogram must match direction (positive for bullish / negative for bearish)
So a signal requires price expansion (ATR breakout) + momentum agreement (RSI + MACD).
🧭 Trend state behavior
When a new BUY/SELL impulse is confirmed, the script updates a persistent trend state (“BUY”, “SELL”, or “NONE”).
That state stays active until the opposite confirmed impulse appears.
✅ Visuals & Usage
Made some minor, mostly visual upgrades on this release:
Baseline + ATR bands are smoothed for cleaner visuals.
Optional BUY/SELL arrows are plotted outside the channel to avoid overlap with channel.
Optional full-chart background shading reflects the current trend state:
Green = UPTREND
Red = DOWNTREND
A minimal top panel shows the current regime (UP / DOWN / NEUTRAL).
I also recently added this channel smoother parameter (for Dragon Channel), if you want it to have less spikes on those MAs just use the bigger number, I picked 8 for default.
Actualy its as simple as just follow the arrows direction, given the correct settings with slightly higher basisLen on higher TFs you can get prety accurate long shots. Ofcourse you can still can get random signals or noise on lower TFs, so it can be used as a background trend/momentum confirmation layer alongside your other favorite indicators or strategy tools.
byquan RSI Divergence (OB/OS + RSI MA Base)byquan RSI Divergence (OB/OS + RSI MA Base)
Description
byquan RSI Divergence is a technical analysis indicator designed to visualize RSI-based divergence patterns within clearly defined overbought and oversold zones, enhanced with an optional RSI moving average baseline.
The script focuses on structural divergence detection rather than signal prediction, providing visual reference points to help users study momentum behavior and price–oscillator relationships.
This indicator is intended for educational and analytical purposes only.
Conceptual Overview
The core idea of this indicator is based on a widely accepted technical principle:
When price structure and momentum structure diverge, market behavior may be transitioning rather than continuing impulsively.
Instead of reacting to every fluctuation, this script identifies well-defined divergence formations that occur:
At RSI pivot points
Within controlled lookback ranges
Inside overbought or oversold zones
Indicator Components
1. RSI Oscillator
The indicator uses a standard Relative Strength Index (RSI):
User-defined period
User-defined source price
RSI values are plotted directly in the pane for transparency and clarity.
2. RSI Base Moving Average
An optional RSI baseline is calculated using a selectable moving average type:
SMA
EMA
RMA
WMA
This baseline is intended to provide additional context for momentum direction and smoothing, not as a signal trigger.
3. Overbought / Oversold Zones
Customizable horizontal levels define:
Overbought conditions
Oversold conditions
Divergences are evaluated only when RSI is located inside the corresponding zone, helping reduce irrelevant signals.
4. Pivot-Based Divergence Detection
The script detects RSI pivot highs and lows using configurable left/right lookback values.
Based on these pivots, it evaluates four divergence types:
Regular Bullish Divergence
Hidden Bullish Divergence
Regular Bearish Divergence
Hidden Bearish Divergence
Each divergence type is plotted independently and can be enabled or disabled by the user.
5. Lookback Range Control
To avoid excessive or outdated comparisons, divergence evaluation is constrained within a user-defined bar range.
This helps ensure that only structurally relevant divergences are displayed.
Visualization
Divergence lines are plotted directly on the RSI pane
Labels are used to distinguish divergence types
Regular and hidden divergences are visually differentiated using color transparency
The indicator prioritizes clarity and interpretability over signal density.
Alert Logic
An alert condition is provided when any divergence type is detected.
Alerts are informational and do not imply direction, timing, or outcome.
Intended Use
This indicator is designed to be used as:
A momentum structure study tool
A visual divergence reference
A supporting component within broader technical analysis
It is not intended to:
Predict market tops or bottoms
Serve as a standalone trading system
Provide financial or investment advice
Technical Notes
The script uses pivot-based confirmation and therefore does not repaint
All calculations are deterministic and rule-based
Divergences are identified only after pivots are confirmed
Results may vary across assets and timeframes
Attribution & Transparency
This script represents a custom implementation and adaptation of commonly documented RSI divergence techniques, including:
Pivot-based divergence logic
Overbought / oversold filtering
RSI smoothing via moving averages
These concepts are widely used in technical analysis.
The specific parameterization, visualization, and filtering structure reflect a personal analytical approach, without claiming exclusivity over the underlying methods.
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice, trading recommendations, or performance guarantees.
Past behavior does not imply future results.
byquan AlphaTrend + Supertrend ComboAlphaTrend + Supertrend Combo (Confirmation-Based Indicator)
Description
AlphaTrend + Supertrend Combo is a confirmation-based technical indicator that combines momentum-sensitive trend tracking with ATR-based trend structure.
The script is designed to highlight situations where two independent trend-following methods agree within a short time window, helping users visually identify moments of potential trend alignment.
This indicator is intended for technical analysis and educational use only.
Conceptual Idea
The core concept of this indicator is confirmation, not prediction.
Instead of relying on a single signal source, the script observes:
A volatility-adjusted trend line (AlphaTrend)
A price-structure-based trend switch (Supertrend)
A signal is displayed only when both methods confirm each other within a limited number of bars.
Indicator Components
1. AlphaTrend Module
AlphaTrend is calculated using:
ATR-based dynamic levels
Momentum evaluation via:
Money Flow Index (MFI), or
RSI when volume data is unavailable
This module adapts its direction based on market momentum and volatility, producing trend transition events rather than continuous signals.
2. Supertrend Module
The Supertrend component uses:
ATR-based bands
Price crossing logic to define trend direction changes
Supertrend acts as a structural trend confirmation layer, reacting to changes in price behavior relative to volatility.
3. Confirmation Window Logic
Rather than requiring both indicators to trigger on the exact same bar, the script introduces a bar-based confirmation window:
When one indicator produces a signal
The script waits up to a user-defined number of bars
If the second indicator confirms within this window, the signal is considered valid
This approach allows for natural timing differences between indicators while avoiding long-delayed confirmations.
Signal Logic Summary
BUY confirmation
AlphaTrend signals bullish direction
Supertrend confirms bullish direction within the waiting window
SELL confirmation
AlphaTrend signals bearish direction
Supertrend confirms bearish direction within the waiting window
Signals are displayed only when both conditions are satisfied.
Inputs Overview
Confirmation Bars
Defines how many bars the script waits for the second indicator to confirm
AlphaTrend Settings
Period, multiplier, source, and volume handling options
Supertrend Settings
ATR period, multiplier, and calculation method
All parameters are user-adjustable to support different instruments and timeframes.
Intended Use
This indicator is designed to be used as:
A confirmation or alignment tool
A visual aid for studying trend behavior
A supporting layer within a broader analysis framework
It is not intended to:
Predict market direction
Serve as a complete trading system
Replace risk management or personal judgment
Technical Notes
The script is rule-based and deterministic
No repainting logic is used
Signals depend strictly on historical and current bar data
Results may vary across symbols, sessions, and timeframes
Attribution & Transparency
This script represents a custom integration and modification of widely known technical analysis concepts, including:
AlphaTrend-style volatility-adjusted trend tracking
Supertrend ATR-based trend logic
These methods are commonly documented in technical analysis literature.
The implementation, parameter structure, and confirmation logic reflect a personal adaptation and combination, not a claim of originality over the underlying concepts.
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or an invitation to trade.
Past behavior does not guarantee future outcomes.
byquan GP maxmin+SPtrendGP MaxMin SRSI + SSPtrend
Description
GP MaxMin SRSI + SSPtrend is a composite technical indicator designed to combine momentum context analysis with trend confirmation.
The script integrates:
A multi-source, multi-timeframe Stochastic RSI context layer
A standard Supertrend-based trend switch
A time-based signal validation window to reduce isolated or out-of-context signals
This indicator is intended for market observation and educational analysis, not as a standalone trading system.
Conceptual Overview
The core idea behind this indicator is simple:
Strong trend reversals or continuations are more meaningful when they occur after the market reaches extreme momentum conditions across multiple timeframes.
Instead of triggering signals immediately at overbought or oversold levels, this script:
Detects momentum extremes first
Waits for a structural trend confirmation
Allows signals only within a limited context window
Indicator Structure
1. Multi-Source Stochastic RSI Context
The script computes Stochastic RSI values based on four price sources:
Open
High
Low
Close
From these values, the script extracts:
The minimum momentum reading (deepest oversold condition)
The maximum momentum reading (strongest overbought condition)
This approach aims to reflect momentum dispersion, rather than relying on a single price input.
2. Multi-Timeframe Aggregation
Momentum values are evaluated across multiple higher timeframes (configurable by the user).
The aggregated values are normalized into a unified 0–100 scale, producing:
A composite oversold context
A composite overbought context
These conditions define market context only, not entry signals.
3. Trend Confirmation Using Supertrend
A conventional Supertrend calculation is used to detect trend state changes:
Trend transitions define potential directional shifts
Supertrend acts as the only trigger mechanism
No signal is generated solely from momentum values.
4. Context Validation Window
Once an overbought or oversold context is detected:
A configurable bar-based window is opened
Supertrend signals occurring within this window are considered valid
Signals outside the window are ignored
This design helps avoid delayed or unrelated confirmations.
Signal Logic Summary
BUY context
Oversold momentum detected → Supertrend turns bullish within the allowed window
SELL context
Overbought momentum detected → Supertrend turns bearish within the allowed window
Only signals satisfying both context and confirmation are displayed.
Intended Use
This indicator is designed to be used as:
A confirmation or filtering tool
A context layer alongside other analysis methods
A visual aid for studying market structure and momentum behavior
It is not intended to:
Predict future price movements
Replace risk management
Provide trading advice or signals with guaranteed outcomes
Important Notes
This script does not repaint
All calculations are rule-based and deterministic
Results may vary across symbols and timeframes
Users are encouraged to evaluate the logic independently
Past behavior does not imply future performance.
Attribution & Transparency
This script is a custom integration and modification of commonly used technical concepts such as:
Stochastic RSI
Supertrend
Multi-timeframe analysis
While the underlying ideas are widely known, the combination, parameterization, and signal-filtering logic reflect a personal implementation approach.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or solicitation to trade.






















