UIA TrendCompass V1.0UIA TrendCompass v1.0 is a market structure interpretation tool designed to visualize trend states in real time.
The script identifies four structural states based on price behavior and trend continuity:
• T — Trend Start
• E — Trend Extension
• H — Structural High / Low
• X — Trend Exit / Reversal
This indicator is intended for market structure analysis and educational purposes only.
It does NOT provide trading signals, buy/sell recommendations, or investment advice.
All labels are generated based on historical price data and do not predict future market movements.
Users should combine this tool with their own analysis and risk management framework.
This script is provided "as is" with no guarantee of accuracy or performance.
Indikator dan strategi
Pyramid EnterPyramid Enter — Structured Add-On Entry Framework
Pyramid Enter is an analytical add-on framework designed to highlight structured continuation entry zones within an already-established directional move. It is intentionally not a standalone signal tool and is not designed to initiate positions on its own. Instead, it focuses on scaling logic once a directional bias is already defined.
The indicator is minimal, disciplined, and role-specific:
it answers the question “Where might additional entries make structural sense if I am already aligned?”
Core Philosophy
Most indicators attempt to do too much:
Identify trend
Call tops and bottoms
Time entries
Manage exits
Pyramid Enter does none of that.
Its sole purpose is to identify continuation alignment — moments where price structure and momentum re-synchronize after a pause or reset, potentially allowing for incremental exposure rather than a single all-in decision.
This makes it especially useful for studying trend persistence, not prediction.
How Pyramid Enter Works
At its core, Pyramid Enter evaluates the relationship between:
A fast EMA (price responsiveness)
A smoothed reference line (structure stabilization)
An ENTER event is generated when:
The fast EMA crosses above the selected smoothed line
Optional EMA 8/21 trend filter confirms directional alignment
Per-bar locking ensures only one event per bar
Adaptive logic allows alignment immediately when trend conditions flip
The indicator includes:
Real-time detection
Bar-close backup logic
Single-event locking per bar
This design ensures clean behavior in both live and historical environments without signal duplication.
What Pyramid Enter Is Not
It is important to be explicit:
Pyramid Enter does not determine trend direction
It does not mark exits
It does not replace a primary entry tool
It does not predict future price movement
It simply highlights structural continuation conditions.
Clean Pairing with Rasta
Rasta defines the market regime and structural rhythm.
It answers:
Is the market trending or transitioning?
What side is structurally favored?
Has the state flipped?
Pyramid Enter is designed to be used only after Rasta has already established context.
A common analytical workflow:
Use Rasta to identify structural alignment
Ignore Pyramid Enter entirely until Rasta confirms direction
Once aligned, Pyramid Enter highlights where continuation alignment re-appears
This keeps responsibilities separated:
Rasta = context
Pyramid Enter = continuation opportunity
Clean Pairing with RSI Extremes
RSI Extremes focuses on pressure exhaustion, not continuation.
It highlights:
Oversold exhaustion (ENTER conditions)
Overbought exhaustion (EXIT conditions)
Statistically rare stress points
When combined:
RSI Extremes highlights where pressure may reset
Pyramid Enter highlights when structure realigns after that reset
This pairing allows users to study:
Exhaustion → stabilization → continuation
without relying on a single indicator to do everything.
Three-Tool System Architecture
When used together, each tool has a clearly defined role:
Rasta
→ Structural regime & directional bias
RSI Extremes
→ Momentum exhaustion & pressure extremes
Pyramid Enter
→ Continuation alignment & scaling logic
Each tool is independent, but complementary.
None replaces the others.
Design Principles
Pyramid Enter is built around:
Role clarity
Minimalism
State discipline
No prediction
No guarantees
It is intended for educational, analytical, and research use only. All interpretation, risk management, and decision-making remain the responsibility of the user.
Summary
Pyramid Enter is a focused continuation framework that:
Highlights structural add-on alignment
Avoids prediction or exit logic
Pairs cleanly with Rasta and RSI Extremes
Encourages disciplined scaling rather than impulsive entries
Its value comes from what it refuses to do, not from over-complexity.
Position Calculator---
# Position Calculator
Calculates the optimal position size with a fixed profit/loss ratio based on opening, stop-loss, and take-profit levels. Determines the direction of the position based on the opening and stop-loss settings.
Initial use requires manual setting of opening, take-profit, and stop-loss. Afterward, you can manually drag the price line to set values and the system will automatically calculate position information.
---
# 仓位计算器
通过开仓、止损、止盈计算固定盈亏比适合的开仓数量,根据开仓和止损判断开仓方向。
首次使用需要手动设置开仓、止盈、止损,之后可以手动拖拽价格线设置值然后自动计算仓位信息。
ORB M15 Fibo din ORB EMA200 MTFTesting a new idea based on ORB m15. Still on testing, not worth it to translate it into English
Cave Diving 3 Lines System
🤿 Cave Diving Dashboard - A Deep Dive into Market Structure
## The Cave Diving Analogy
Imagine you're a cave diver exploring underwater caverns. As you descend deeper, you encounter different layers of the cave system:
- **The Surface (Internal Levels)** - Where you currently are, constantly shifting with each breath
- **The First Chamber (De Novo Levels)** - Your last known safe position, recently established
- **Deep Caverns (External Levels)** - Ancient, untouched chambers deeper in the system
Just as a cave diver must constantly monitor their position relative to these reference points, traders must track price action against key structural levels.
---
## 🎯 Understanding the Three-Tiered System
### 📍 **INTERNAL LEVELS** (Current 15m Candle)
*Your real-time position in the market*
**Internal High** 🟡 - The highest point reached in the current unfinished 15-minute candle
**Internal Low** 🟢 - The lowest point reached in the current unfinished 15-minute candle
**Think of these as:**
- Your current depth while actively diving
- They update continuously as price moves
- Status shows "Updating" when actively changing, "Intact" when stable
- These are NOT trade levels—they're awareness zones
**Key Insight:** When Internal Low drops below De Novo Low, you're in **Situation A** (bearish pressure building)—the indicator highlights this with red coloring.
---
### 🎯 **DE NOVO LEVELS** (Previous Closed 15m Candle)
*Your most recent confirmed safe zone*
**De Novo High** 🔵 - The high of the last completed 15-minute candle
**De Novo Low** 🟣 - The low of the last completed 15-minute candle
**Etymology:** "De Novo" = Latin for "from new" or "anew"—these are freshly established reference points
**Think of these as:**
- The last solid ground you stood on
- Your most recent confirmed position
- The bridge between where you are (Internal) and where you've been (External)
**Status Tracking:**
- **⬆️ Upgrade** - Level moved favorably (Higher high for resistance, Higher low for support)
- **⬇️ Downgrade** - Level moved unfavorably (Lower high, Lower low)
- **= Same** - No structural change from previous candle
**Trading Significance:**
- Primary reference points for intraday structure
- Breaking De Novo levels often signals directional commitment
- Can merge with External Level 1 when they align (shown as "DN🟰Ext1")
---
### ⛽🤿 **EXTERNAL LEVELS** (Unmitigated Historical 15m Levels)
*Deep liquidity pools waiting to be discovered*
**External High 1 & 2** 🟢🔵 - The two most recent unmitigated 15m highs
**External Low 1 & 2** 🟠🌸 - The two most recent unmitigated 15m lows
**Think of these as:**
- Untouched chambers in the cave system
- Liquidity pools that smart money is targeting
- Levels that "remember" and attract price
**What Makes a Level "Unmitigated"?**
- **Highs**: Price has NOT yet traded through them (broken above)
- **Lows**: Price has NOT yet swept them (broken below)
- Once touched, they're "mitigated" and removed from tracking
- The indicator automatically maintains the two most recent unmitigated levels
**Why "External"?**
They exist outside your current candle structure—historical reference points that institutions use for:
- Stop loss placement
- Profit taking targets
- Liquidity hunting zones
---
## 🎨 Color Coding System
### HIGHS (Resistance/Targets) - Cool Colors
- 🔵 **Ext High 2** - Light Blue (Distant target)
- 🟢 **Ext High 1** - Lime Green (Primary target)
- 🔵 **De Novo High** - Cyan (Recent resistance)
- 🟡 **Internal High** - Lemon Yellow (Current ceiling)
### LOWS (Support/Stops) - Warm Colors
- 🟢 **Internal Low** - Lime (Current floor)
- 🟣 **De Novo Low** - Purple (Recent support)
- 🟠 **Ext Low 1** - Orange-Red (Primary stop zone)
- 🌸 **Ext Low 2** - Pink (Distant support)
---
## 📊 Dashboard Breakdown
### The Table Shows:
1. **Level** - Which level you're tracking
2. **Price** - Exact price of the level
3. **Pts** - Distance from current price (+ above, - below)
4. **Status** - Current state or role of the level
### Special Features:
- **⏰ Countdown Timer** - Shows time remaining until next 15m candle close (next De Novo update)
- **⚠️ Proximity Alerts** - Bottom row warns when within threshold distance of key levels (default: 25 points, adjustable)
---
## 🎯 Trading Applications
### **For Buyers (Going Long):**
- **Entry Zone**: Between De Novo Low and Ext Low 1
- **Stops**: Below Ext Low 1 (or Ext Low 2 for wider stops)
- **Targets**: De Novo High → Ext High 1 → Ext High 2
- **Confirmation**: Internal Low holds above De Novo Low
### **For Sellers (Going Short):**
- **Entry Zone**: Between De Novo High and Ext High 1
- **Stops**: Above Ext High 1 (or Ext High 2 for wider stops)
- **Targets**: De Novo Low → Ext Low 1 → Ext Low 2
- **Warning**: Watch for Situation A (Internal Low < De Novo Low)
### **Risk Management:**
- **DN🟰Ext1** status means De Novo = External 1 (tighter range, use caution)
- Proximity alerts help you avoid chasing price into resistance/support
- "Updating" status on Internal levels = active volatility
- "Upgrade/Downgrade" signals = structural shift in progress
---
## ⚙️ Customization Options
### Lookback Period
- Default: 500 candles (searches 125 hours of 15m data)
- Increase for more historical External levels
- Decrease for focus on recent structure
### Proximity Threshold
- Default: 25 points
- Set based on your instrument's average range
- Lower = tighter alerts (for scalping)
- Higher = strategic warnings (for swing trading)
### Visual Customization
- Line thickness (1-5)
- Line style (Solid/Dashed/Dotted)
- All colors fully customizable
- Show/hide lines independently
---
## 🧭 The Cave Diving Mindset
**Never dive deeper than you can safely return from.**
In trading terms:
- Know your Internal position (real-time awareness)
- Respect your De Novo levels (recent structure)
- Hunt for External liquidity (where the targets are)
- Always have an exit plan (stops below Ext Lows, above Ext Highs)
The market, like a cave, has structure. This indicator illuminates that structure across three timeframes of reference, helping you navigate with precision rather than guessing in the dark.
---
## 🎓 Key Takeaways
1. **Internal** = Real-time, unfinished, awareness only
2. **De Novo** = Just confirmed, primary reference, updates every 15m
3. **External** = Historical, unmitigated, high-probability targets/stops
4. **Upgrades/Downgrades** = Trend signals
5. **DN🟰Ext1** = Structural alignment (tighter range)
6. **Situation A** = Bearish warning (Internal < De Novo Low)
---
## 📝 Credits
*"In cave diving, you plan your dive and dive your plan. In trading, you plan your levels and trade your levels."*
**Indicator:** Cave Diving Dashboard - Part 1: Price Levels
**Timeframe:** Optimized for 15-minute structure on any chart timeframe
**Philosophy:** Structure first, price second. Know where you are, where you've been, and where the liquidity waits.
---
Happy Diving! 🤿📈
KORVEX TRADING - S&PKORVEX Keylevel Must-Move Trading is a precise approach focused on identifying Must-Move-Levels to generate high-quality trades at clearly defined Keylevels. The strategy targets reversals and pullbacks at prominent Keylevels, resulting in a high hit rate with fewer, but highly qualitative signals.
Core Idea & Market Logic
KORVEX is not a classic continuous-signal indicator, but a targeted Must-Move finder for GOLD, DAX, S&P500, and EURUSD.
The strategy aims to trade reversals and pullbacks at clearly identifiable Keylevels (Daily High/Low, Previous High/Low, Daily Pivot, relevant Fibonacci zones such as 0.5, 0.618, 0.786).
Trading primarily takes place on the M15 timeframe, optionally also on M30 or H1, to find the best combination of signal quality and trading time.
Advantages of the Strategy
Fewer, but high-quality trades instead of continuous trading, which strengthens discipline and focus.
The use of clear Keylevels increases the probability of sustainable moves and reduces the risk of erroneous trades.
Combining technical levels with Fibonacci zones provides an objective decision basis and prevents subjective interpretations.
This approach creates a clear market logic based on quality and precise entries – ideal for traders aiming for sustainable results with fewer, but targeted trades.
RSI ExtremesRSI Extremes — Exhaustion-Based Entry & Exit Framework
RSI Extremes is an analytical momentum-exhaustion framework designed to highlight statistically rare conditions where price action has stretched far enough to warrant heightened attention. Rather than attempting to predict direction or forecast outcomes, this tool focuses on identifying extreme pressure zones where risk dynamics materially change.
The indicator is intentionally minimal, rule-based, and transparent, making it suitable for studying market behavior across any asset class or timeframe.
Core Concept
Traditional RSI implementations rely on a single RSI line calculated from closing prices. RSI Extremes takes a more nuanced approach by separating downside exhaustion from upside exhaustion using different price references:
RSI (Low) is used to evaluate downside pressure
RSI (High) is used to evaluate upside pressure
This separation allows the indicator to react to true intrabar extremes instead of relying solely on closes, which can obscure meaningful stress during volatile moves.
Signal Logic
ENTER (Oversold Exhaustion)
An ENTER event is generated when:
RSI calculated on Low prices touches or falls below a user-defined lower threshold (default: 15)
This condition highlights moments where selling pressure has reached an extreme and downside momentum may be statistically overextended.
EXIT (Overbought Exhaustion)
An EXIT event is generated when:
RSI calculated on High prices touches or exceeds a user-defined upper threshold (default: 85)
This condition highlights moments where buying pressure has reached an extreme and upside momentum may be statistically overextended.
Real-Time + Bar-Close Safety
RSI Extremes is designed to function reliably in both live and historical environments:
Real-time detection allows signals to appear as conditions are met intrabar
Bar-close backup logic ensures signals are not missed if real-time conditions occur between updates
One alert per event prevents duplicate or spam signals
This structure makes the indicator suitable for observation, testing, and integration into broader analytical workflows.
Cooldown (Rest Period)
To reduce signal clustering in choppy or highly compressed conditions, RSI Extremes includes a configurable cooldown period after any signal. During this rest window, no new ENTER or EXIT events will fire.
This helps isolate meaningful extremes rather than repeated micro-signals.
Visual Components
RSI (Low) — highlights downside pressure
RSI (High) — highlights upside pressure
Ghost RSI (smoothed) — a visual-only reference to contextualize momentum flow
Neutral band (30–70) — provides orientation without acting as a signal source
The ghost line does not participate in signal logic and exists strictly to improve visual clarity.
How RSI Extremes Works with Rasta
RSI Extremes is designed to complement Rasta, not replace it.
Role Separation
Rasta focuses on structure and directional rhythm
RSI Extremes focuses on exhaustion and pressure extremes
When used together:
Rasta helps define context and trend behavior
RSI Extremes highlights where that behavior may be stretched
Practical Pairing Concept
A common analytical workflow is:
Use Rasta to understand market structure, regime, and directional flow
Use RSI Extremes to observe where price has reached statistically rare exhaustion levels within that structure
This pairing allows users to study timing versus context without relying on a single indicator to do everything.
Important Notes
RSI Extremes is an analytical and educational tool
It does not predict future price movement
It does not provide financial advice
Signals indicate conditions, not outcomes
Users are responsible for interpretation, risk management, and decision-making
Summary
RSI Extremes is a focused exhaustion-detection framework built to:
Highlight rare momentum conditions
Reduce noise through strict thresholds and cooldown logic
Operate cleanly in real-time and historical analysis
Integrate naturally with structure-based tools like Rasta
Its strength lies in clarity, restraint, and role discipline — identifying when markets are stretched, not what must happen next.
Markov: Transition Matrix [Daily Timeframe]Description
This indicator computes a 3-state Markov chain from price action and visualizes the transition probabilities between daily states:
• Up: daily % change > threshold
• Down: daily % change < -threshold
• Sideways: |daily % change| ≤ threshold
From those states, it builds transition matrices:
• Today → Tomorrow (1 day ahead)
• Today → In 2 days
• Today → In 3 days
Each matrix cell shows:
P(next state | current state)
Rows are the current state (today), columns are the future state (tomorrow / +2 / +3).
Each row sums to 100% (when there is sufficient sample size).
________________________________________
How to read it (trader workflow)
1. Identify the current regime (the most recent confirmed daily state).
2. Look at the row matching that regime:
• The ★ marks the highest probability outcome for that row (most likely next state).
• Heatmap intensity increases as probability increases.
• Each row shows its own sample size (n=...) so you can judge statistical support.
3. Use Quick-read:
• “Now” = current regime
• “Best” = top conditional outcome + probability
• “2nd” = second-best outcome + probability
4. Use Universe (N):
• Shows the marginal distribution: how often days are Up/Down/Sideways across the whole dataset.
________________________________________
Settings
Core logic
• Sideways threshold: controls how strict “Sideways” is.
Example: 0.001 = ±0.10% daily move is considered Sideways.
Display
• Toggle 1D / 2D / 3D matrices.
• Highlight best probability per row (★).
• Show n per row (row transition count).
• Focus: current state row only to reduce noise and speed decision-making.
• Quick-read row for the current regime.
Theme (fully customizable)
All colors can be customized:
• Up / Down / Sideways base colors
• Header background + header text
• Values text
• Quick-read neutral background
This makes it suitable for both light and dark chart themes.
________________________________________
Notes / Limitations
• The indicator is designed for daily sessions. It uses daily close-to-close returns to classify states and update the Markov chain once per day.
• On very volatile assets, a very small threshold can make Sideways rare. If you want a more frequent Sideways regime, increase the threshold.
• This is a statistical visualization tool, not a trading system.
________________________________________
Disclaimer (TradingView-friendly)
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Past probabilities do not guarantee future results. Use at your own discretion and always apply proper risk management.
Multi-Period Opening Range [ORB]Multi-Period Opening Range Indicator
A comprehensive Opening Range (OR) tool for traders who want to track multiple timeframe ORs simultaneously with complete visual customization.
📊 WHAT IS OPENING RANGE?
The Opening Range is the high and low price established during a specific period at the start of a trading session. Professional traders use these levels as critical support/resistance zones throughout the day.
✨ KEY FEATURES
Five Customizable OR Periods:
5-Minute OR : 9:30-9:35 AM EST (Quick scalping reference)
15-Minute OR : 9:30-9:45 AM EST (Standard OR period)
30-Minute OR : 9:30-10:00 AM EST (Extended morning range)
1-Hour OR : 9:30-10:30 AM EST (Full morning session)
Overnight OR : 6:00-7:00 PM EST (After-hours reference)
Complete Visual Customization:
Individual Toggle Controls : Turn each OR period on/off independently
Custom Colors : Set unique colors for each timeframe's lines and fills
Adjustable Line Thickness : Choose from 1-5 pixel width
Label Styles : "5Min OR-High" or simple "OR-High" format
Label Background Options : Choose colored backgrounds or clean text-only labels
Label Sizes : Tiny, Small, Normal, or Large text
Smart Display Options:
OR-High, OR-Mid, OR-Low : Each level clearly labeled with price tooltips
Midpoint Toggle : Show/hide dashed midpoint line
Fill Toggle : Enable/disable shaded area between levels
Historical Ranges : Show/hide previous session ORs
Line Extension : Set projection distance (0-1440 minutes, default 5 min)
Color-Coded Labels : Semi-transparent backgrounds match each OR theme (optional)
🎨 DEFAULT COLOR SCHEME
Active by Default:
5-Min OR : Red lines (no fill)
1-Hour OR : Sky blue lines (no fill)
Overnight OR : Brown lines with shaded fill
Disabled by Default:
15-Min OR (Purple) - enable when needed
30-Min OR (Orange) - enable when needed
📈 HOW TO USE
Setup:
Add to any intraday timeframe (1min, 5min recommended)
Enable your preferred OR periods
Customize colors for visual distinction
Set line extension (default 5 minutes)
Trading Applications:
Breakout Trading : Enter when price breaks OR-High/Low
Range Trading : Trade between levels during consolidation
Support/Resistance : Use multiple ORs as confluence zones
Risk Management : Set stops beyond OR levels
Session Analysis : Compare OR widths to gauge volatility
Advanced Techniques:
Watch for false breakouts returning inside range
Combine with volume for confirmation
Use overnight OR for pre-market sentiment
Layer multiple ORs for high-probability zones
⚙️ CUSTOMIZATION OPTIONS
Display Settings:
Show/hide historical ranges, midpoint lines, and fills
Line thickness: 1-5 pixels (default: 1)
Label size: Tiny to Large
Label style: With period prefix or generic
Label background: With background or no background
Extend lines: 0-1440 minutes (default: 5)
Per-Period Controls:
Each OR has independent settings for enable/disable, line color, fill color, and transparency.
💡 PRO TIPS
Start with 5-min and 1-hour ORs only
Use distinct colors for each timeframe
Keep historical ranges OFF for cleaner charts
Adjust extension: 5-10 min for active trading, 60+ for planning
Combine OR breakouts with volume spikes
Use overnight OR to understand after-hours action
Wait for clean breakouts with volume confirmation
🔧 TECHNICAL SPECS
Timezone : America/New_York (EST/EDT)
Compatible Timeframes : Any intraday under 1 day
Optimal Timeframes : 1-minute, 5-minute charts
Real-Time Updates : Dynamic line extension with new bars
📌 BEST PRACTICES
Use on liquid instruments (ES, NQ, SPY, QQQ)
Wait for volume-confirmed breakouts
Place stops beyond OR levels you're trading
Size positions based on OR width
Respect 1-hour OR as major support/resistance
🎯 IDEAL FOR
Day traders, scalpers, futures traders (ES/NQ/YM), equity traders (SPY/QQQ), and anyone using Opening Range methodology in their trading strategy.
Note: For educational purposes. Practice proper risk management and combine with your complete trading strategy.
Jell TrendThe Jell Trend is a comprehensive tool designed for Trend Following and Pullback traders. It combines Short-Term Momentum, Long-Term Structure, and Multi-Timeframe (MTF) analysis into a single, clean indicator.
Key Features:
1. Momentum Ribbon (Short Term) Composed of EMA 13, 25, and 32.
Visual Aid: Dynamic clouds color the space between EMAs to show immediate trend strength.
2. Market Structure (Long Term) Displays classic institutional moving averages (SMA 100, EMA 200, SMA 200, SMA 300).
The "200 Zone": A specific cloud fills the gap between the EMA 200 and SMA 200, highlighting major institutional support/resistance areas.
3. Built-in Multi-Timeframe (MTF)
Fixed H4 EMA 200: Displays the 4-Hour EMA 200 on any timeframe (M5, M15, H1).
Benefit: Allows intraday traders to see major key levels without switching charts.
Customization:
Every line and cloud can be toggled on/off and colored to fit your specific charting needs.
RastaRasta — Real-Time Directional State Framework
Rasta is a real-time, state-based momentum and structure indicator designed to help users visualize directional market bias and observe transitions between bullish and bearish regimes. The script combines an adaptive baseline (EMA) with a selectable smoothing layer to create a clean, readable structure that highlights how price momentum and trend context evolve over time.
This indicator is built to be responsive in real time while remaining readable on higher timeframes. It is intended for users who want a practical framework for studying market rhythm, structure, and directional bias—without relying on hindsight-based visuals.
Concept Overview
Rasta works by tracking two primary curves:
EMA Line (core baseline)
A fast baseline that responds to price movement according to the selected length and source.
Smoothed Line (structure layer)
A second line derived from the baseline using a user-selected smoothing method. This creates a stable “structure reference” that helps distinguish meaningful directional shifts from minor noise.
When the baseline crosses the structure line, the script interprets it as a directional state transition:
LONG state when momentum structure shifts upward
SHORT state when momentum structure shifts downward
These transitions are presented as labels and can be used to trigger alerts that notify the user when a state change occurs.
Key Features
1) Real-Time Directional State Transitions
Rasta evaluates transitions continuously and can generate state-change markers in real time. This makes it suitable for users who want a framework that can react during the bar, not only after a bar closes.
2) Per-Bar Lock for Clean Signaling
To prevent repeated triggering inside the same candle, Rasta uses a per-bar lock. This helps keep the visual output and alerting behavior clean and prevents rapid repeats when price oscillates around the crossover level.
3) One-Position State Logic
Rasta uses an internal state model so signals behave consistently:
A LONG state change occurs only when not already in that state
A SHORT state change occurs only when already in a LONG state (and vice versa depending on configuration)
This produces a stable “state machine” feel rather than noisy multi-trigger behavior.
4) Bar-Close Backup Events
In addition to real-time behavior, Rasta includes bar-close confirmation events so that state transitions can still be captured on confirmed closes. This is intended as a reliability layer for users who prefer bar-close confirmations or want a secondary confirmation pathway.
5) Optional EMA 8/21 Trend Context Filter
Rasta includes an optional EMA 8 / EMA 21 trend context filter:
When enabled, LONG transitions can be gated by a higher-level trend condition
Exits/transitions are not blocked by the filter (filter is focused on trend alignment rather than preventing regime changes)
This allows users to tune between:
More responsive behavior (filter off)
More trend-aligned behavior (filter on)
6) Adaptive Entry Behavior When Trend Context Flips
When the trend filter flips into alignment, Rasta can optionally allow an adaptive entry behavior if internal structure is already aligned. This is intended to reduce missed transitions when broader trend context changes after the internal structure has already shifted.
Visual System
Rasta includes several visual aids designed to make directional regime clarity obvious at a glance:
Lines
EMA (baseline)
Smoothed (structure)
Directional Fog (optional)
A colored fill between the lines helps highlight:
Positive structure alignment
Negative structure alignment
Opacity is adjustable for different chart styles.
DNA Rungs (optional)
Rasta can draw “rungs” that connect the EMA line and the smoothed line, creating a ladder-style visualization of structure spacing and momentum intensity over time. Users can:
Enable/disable rungs
Adjust rung width
Control the max number of rungs retained (performance management)
Choose rung color behavior (fixed vs directional)
Inputs and Tuning Notes
Rasta is intentionally configurable so you can tailor it to different markets and timeframes:
Core Settings
Length: Controls baseline responsiveness
Source: Baseline source (close by default)
Offset: Optional visual offset (does not change logic)
Smoothing Settings
Type: SMA / EMA / RMA / WMA / None
Length: Controls how stable the structure line becomes
General intuition:
Lower smoothing = faster, more reactive
Higher smoothing = cleaner, more selective transitions
EMA 8/21 Filter (optional)
Enable/disable
Fast/slow EMA lengths
Optional plotting for transparency
How to Use
Rasta is best used as a directional context tool—a framework for evaluating regime shifts, momentum structure, and trend alignment.
Common analytical workflows:
Apply Rasta to a chart and observe LONG/SHORT state transitions
Use the line relationship and fog as a visual confirmation of structure alignment
Optionally enable the EMA 8/21 filter for higher-level trend context
Use alerts if you want notifications when state changes occur
This indicator is designed to be applied to many assets and timeframes. Users should expect to tune parameters based on:
Volatility profile
Liquidity
Timeframe
Market regime
Alerts
Rasta supports alerts that notify you when a directional state change occurs.
Provided alert messages:
LONG
SHORT
These alerts indicate a state transition condition occurred. Users can route these alerts to external systems if they choose; however, Rasta itself is an analytical indicator and does not execute trades.
Recommended alert frequency (typical best practice):
“Once per bar” for real-time transitions
Users may choose bar-close alerting preferences depending on their workflow
Performance and Platform Notes
Rasta includes optional visual elements (fog and rungs). If you notice slowdowns on very low timeframes or long histories, reduce rung count or disable rungs.
The indicator is designed to avoid repeated triggers within a single bar via a per-bar lock, improving signal cleanliness.
Important Disclosures
Rasta is an analytical and educational framework intended to help users study market structure and directional bias. It is not financial advice and is not a signal service. No claims are made regarding profitability or future performance. Markets involve risk, and users are responsible for their own decisions, risk management, and execution.
PDH/PDL + ONH/ONL (Enhanced Labels)At the start of a new day's session, this indicator will plot the Previous Day's High and Low as well as the Overnight (afterhours) High and Low as horizontal dotted lines on the current day's session.
You can edit the colors of the lines and the text (the same)
You can edit the color of the labels as well as the transparency of the label color itself
The label for each line will be plotting with the chart, you can edit the number of bars that the label will appear to the live price action to keep from having to zoom to determine which line it represents.
the chart settings - session must be set to "extended trading hours" for this to appear on your chart
REKIK Divergence for Many Indicators avec Filtres CompletsHere is my new year gift for the community, Digergence for Many Indicators v4. I tried to make it modular and readable as much as I can. Thanks to Pine Team for improving Pine Platform all the time!
How it works?
- On each candle it checks divergences between current and any of last 16 Pivot Points for the indicators.
- it search divergence on choisen indicators => RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, VWMACD, CMF and any External Indicator!
- it checks following divergences for 16 pivot points that is in last 100 bars for each Indicator.
--> Regular Positive Digergences
--> Regular Negative Digergences
--> Hidden Positive Digergences
--> Hidden Negative Digergences
- for positive divergences first it checks if closing price is higher than last closing price and indicator value is higher than perious value, then start searching divergence
- for negative divergences first it checks if closing price is lower than last closing price and indicator value is lower than perious value, then start searching divergence
Average Trading Range info box (today and historical)One small informational box, in the upper right of your chart to provide trading range information.
Line one (historical) tells you the trading range over a configurable period of time as a $ amount and as a %.
The second line (today) tells you where these values are today and the final line tells you as a %, where the values are today as a percentage of the configurable first line (14 days etc).
The third line changes color when you are 75% of the way to the historical value and red when you are at over 100% of the historical value.
Big DC scripts
DX Supply and Demand Pro💎 DX Supply and Demand Pro: Adaptive Line and Zone Mastery
The DX Supply and Demand Pro indicator is an advanced, hybrid trading tool engineered for precision and context. It seamlessly integrates the proprietary Arbitor Line with dynamic, volume-weighted Supply and Demand Zones. This unique combination provides traders with a clear, adaptive view of both the current trend bias and critical structural price levels.
⚠️ Critical Trading Disclaimer 🛑
Trading is highly speculative and carries a substantial risk of loss. The use of this indicator does not guarantee profits, and you may lose more than your initial capital. Before using this tool in a live trading environment, you must test its performance thoroughly using paper trading or a simulated account.
Why Traders Need the DX S&D Pro 🎯
Proprietary Adaptive Intelligence: The Arbitor Line is a calculated price anchor derived from a complex, undisclosed combination of multiple market factors and proprietary equations. It automatically adjusts its sensitivity based on the chart's timeframe, effectively filtering out market noise to present an accurate, weighted average of the prevailing market bias.
Structural Clarity: It detects high-probability Supply and Demand Zones using pivot points, filtering them for strength based on volume, ATR (volatility), and High Volume Node (HVN) confirmation from a higher timeframe.
Actionable Confluence: The indicator combines dynamic trend bias (the Arbitor Line) with static structural levels (S&D Zones). This allows traders to identify high-conviction setups where the structural turning point is confirmed by the real-time bias of the Arbitor Line.
📚 How to Use DX Supply and Demand Pro
This indicator is best used as a confluence tool, where the Arbitor Line confirms the strength and direction of the setup identified by the Supply/Demand Zones.
Trading Confluence with the Arbitor Line:
Scenario: Buy Zone Rejection 🟢
Condition: Price touches a Demand Zone.
Confluence: The Arbitor Line is Above the zone.
Interpretation: Indicates a Bullish Bias is confirming the structural support. Focus on long entries.
Scenario: Sell Zone Rejection 🔴
Condition: Price touches a Supply Zone.
Confluence: The Arbitor Line is Below the zone.
Interpretation: Indicates a Bearish Bias is confirming the structural resistance. Focus on short entries.
Scenario: Momentum Break ⚡
Condition: Price Closes strongly beyond a zone.
Confluence: The Arbitor Line is Aligned with the Break.
Interpretation: Confirms market momentum and suggests the structural break is valid for directional continuation.
⚙️ Key Settings and Optimization Guide 🔧
Arbitor Line Settings (Trend Bias):
VWAP Weight: (Default: 0.33) — The weight applied to a key volume component within the proprietary Arbitor calculation.
Suggestion for High Volatility/Volume: Increase to 0.40 to emphasize volume's influence.
Suggestion for Clean Trends: Decrease to 0.25 to allow momentum components to dictate the line's position.
Supply & Demand Zone Settings (Structural Levels)
HVN Volume TF: (Default: D - Daily) — Crucial Context Setter. The higher timeframe used to look for High Volume Nodes (HVNs) to confirm zone strength.
For Scalping (1m-15m): Use 1H or 4H for validation.
For Day Trading (30m-1H): Use 4H or D. D is the recommended default.
For Swing Trading (4H-Daily): Use W (Weekly).
HVN Bonus %: (Default: 20) — The strength boost applied to a zone if it aligns with an HVN.
Max Supply/Demand Zones: (Default: 2) — Limits the number of active, displayed zones to keep the chart clean.
Retest Bonus %: (Default: 10) — Boosts a zone's strength score each time it is retested (up to max retests).
Time Decay Rate %: (Default: 1) — Reduces a zone's strength for every 10 bars it remains unbroken (stale zones weaken).
Flip Zone on Break: (Default: True) — Turns a broken Demand Zone into a Supply Zone (and vice versa), reflecting structural flip concepts.
💡 Suggestions for Power Users 🚀
Look for Flipped Zones: Pay attention to zones that have been broken and flipped (indicated by yellow text in the labels). Flipped zones that confirm the Arbitor direction often lead to high-momentum continuation moves.
Confirm HVN Strength: Always prioritize trading zones with a high strength score (e.g., 90% or higher), as this indicates maximum confluence of Volume, Volatility, and the HVN Bonus.
Adaptive Timeframes: Use the indicator on multiple timeframes to ensure the Arbitor bias aligns with your trade direction. If the Arbitor is bullish on both the 5-minute and the 1-hour chart, the conviction is exceptionally high.
Final Note: The DX S&D Pro combines the best of trend following with the best of structural trading. It's so good, we call it the Arbitor because it settles the arguments between buyers and sellers... until the next bar, of course! 😉
....................................................................................
💎 مؤشر DX Supply and Demand Pro: خط التكيّف وإتقان المناطق ✨
مؤشر DX Supply and Demand Pro هو أداة تداول هجينة ومتقدمة مصممة للدقة والسياق. إنه يدمج بسلاسة خط Arbitor الخاص بنا مع مناطق العرض والطلب الديناميكية المرجحة بالحجم. يوفر هذا المزيج الفريد للمتداولين رؤية واضحة ومتكيفة لكل من انحياز الاتجاه الحالي ومستويات الأسعار الهيكلية (Structural Price Levels) الحرجة.
⚠️ إخلاء مسؤولية حاسم بشأن التداول 🛑
التداول ينطوي على مخاطرة عالية للغاية ويحمل مخاطر خسارة كبيرة. استخدام هذا المؤشر لا يضمن الأرباح، وقد تخسر أكثر من رأس مالك الأولي. قبل استخدام هذه الأداة في بيئة تداول حقيقية، يجب عليك اختبار أدائها بشكل شامل باستخدام التداول الورقي (Paper Trading) أو حساب محاكاة.
لماذا يحتاج المتداولون إلى مؤشر DX S&D Pro 🎯
ذكاء تكيّفي خاص (Proprietary Adaptive Intelligence): خط Arbitor هو مرساة سعر محسوبة مشتقة من تركيبة معقدة وغير معلنة من عوامل سوق متعددة ومعادلات خاصة. يقوم بضبط حساسيته تلقائيًا بناءً على الإطار الزمني للرسم البياني، مما يزيل ضوضاء السوق بشكل فعال لتقديم متوسط مرجح ودقيق للانحياز السائد في السوق.
وضوح هيكلي (Structural Clarity): يكتشف مناطق العرض والطلب ذات الاحتمالية العالية باستخدام نقاط التحول (Pivot Points)، ويقوم بترشيحها وتحديد قوتها بناءً على الحجم، ATR (التقلب)، وتأكيد من عقدة الحجم العالية (HVN) من إطار زمني أعلى.
تضافر قابل للتطبيق (Actionable Confluence): يجمع المؤشر بين انحياز الاتجاه الديناميكي (خط Arbitor) ومستويات الهيكل الثابتة (مناطق العرض والطلب). يتيح ذلك للمتداولين تحديد إعدادات ذات قناعة عالية حيث يتم تأكيد نقطة التحول الهيكلية من خلال انحياز خط Arbitor في الوقت الفعلي.
📚 كيفية استخدام مؤشر DX Supply and Demand Pro
يُفضل استخدام هذا المؤشر كأداة تضافر، حيث يؤكد خط Arbitor قوة واتجاه الإعداد المحدد بواسطة مناطق العرض والطلب.
تضافر التداول مع خط Arbitor:
السيناريو: ارتداد منطقة الشراء 🟢
الحالة: يلامس السعر منطقة الطلب (Demand Zone).
التضافر: يقع خط Arbitor فوق المنطقة.
التفسير: يشير إلى أن انحياز صعودي (Bullish Bias) يؤكد الدعم الهيكلي. التركيز على صفقات الشراء (Long Entries).
السيناريو: ارتداد منطقة البيع 🔴
الحالة: يلامس السعر منطقة العرض (Supply Zone).
التضافر: يقع خط Arbitor أسفل المنطقة.
التفسير: يشير إلى أن انحياز هبوطي (Bearish Bias) يؤكد المقاومة الهيكلية. التركيز على صفقات البيع (Short Entries).
السيناريو: كسر الزخم ⚡
الحالة: يُغلق السعر بقوة خارج المنطقة.
التضافر: يتماشى خط Arbitor مع الكسر.
التفسير: يؤكد زخم السوق ويشير إلى أن الكسر الهيكلي صالح للاستمرار الاتجاهي.
⚙️ الإعدادات الرئيسية ودليل التحسين 🔧
إعدادات خط Arbitor (انحياز الاتجاه)
VWAP Weight (وزن VWAP): (افتراضي: 0.33) — الوزن المطبق على مكون حجم رئيسي ضمن حساب Arbitor الخاص بنا.
اقتراح للتقلب/الحجم العالي: زيادة إلى 0.40 للتأكيد على تأثير الحجم.
اقتراح للاتجاهات النظيفة: تقليل إلى 0.25 للسماح لمكونات الزخم بتحديد موقع الخط بشكل أقوى.
إعدادات مناطق العرض والطلب (المستويات الهيكلية)
HVN Volume TF (الإطار الزمني لحجم HVN): (افتراضي: D - يومي) — مُحدِد السياق الحاسم. الإطار الزمني الأعلى المستخدم للبحث عن عقد الحجم العالية (HVNs) لتأكيد قوة المنطقة.
للمضاربة اللحظية (1د-15د): استخدم 1س أو 4س للتحقق.
للتداول اليومي (30د-1س): استخدم 4س أو D. D هو الإعداد الافتراضي الموصى به.
للتداول المتأرجح (4س-يومي): استخدم W (أسبوعي).
HVN Bonus % (مكافأة HVN %): (افتراضي: 20) — تعزيز القوة المطبق على المنطقة إذا كانت تتماشى مع عقدة HVN.
Max Supply/Demand Zones (الحد الأقصى لمناطق العرض/الطلب): (افتراضي: 2) — يحد من عدد المناطق النشطة المعروضة للحفاظ على نظافة الرسم البياني.
Retest Bonus % (مكافأة إعادة الاختبار %): (افتراضي: 10) — يعزز درجة قوة المنطقة في كل مرة يتم فيها إعادة اختبارها (حتى الحد الأقصى لإعادة الاختبارات).
Time Decay Rate % (معدل الاضمحلال الزمني %): (افتراضي: 1) — يقلل من قوة المنطقة لكل 10 شمعات تبقى فيها دون كسر (المناطق القديمة تضعف).
Flip Zone on Break (قلب المنطقة عند الكسر): (افتراضي: True - صحيح) — يحول منطقة الطلب المكسورة إلى منطقة عرض (والعكس صحيح)، مما يعكس مفاهيم التحول الهيكلي.
💡 اقتراحات للمستخدمين المتقدمين 🚀
ابحث عن المناطق المقلوبة (Flipped Zones): انتبه بشكل خاص إلى المناطق التي تم كسرها وقلبها (يشار إليها بنص أصفر في التسميات). غالبًا ما تؤدي المناطق المقلوبة التي تؤكد اتجاه Arbitor إلى تحركات استمرارية ذات زخم عالٍ.
تأكيد قوة HVN: أعطِ الأولوية دائمًا لتداول المناطق ذات درجة القوة العالية (على سبيل المثال، 90% أو أعلى)، حيث يشير هذا إلى أقصى درجات التضافر بين الحجم والتقلب ومكافأة HVN.
الأطر الزمنية التكيفية: استخدم المؤشر على أطر زمنية متعددة للتأكد من توافق انحياز Arbitor مع اتجاه تداولك. إذا كان Arbitor صعوديًا على كل من الرسم البياني 5 دقائق والساعة الواحدة، تكون القناعة عالية بشكل استثنائي.
ملاحظة أخيرة: يجمع مؤشر DX S&D Pro أفضل ما في تتبع الاتجاه مع أفضل ما في التداول الهيكلي. إنه جيد جدًا، لدرجة أننا نطلق عليه اسم Arbitor لأنه يحسم الجدل بين المشترين والبائعين... حتى الشمعة التالية بالطبع! 😉
دعواتكم 🙏.
My OB detector 18 DicProfessional Order Block indicator optimized for M3 timeframe. It features automatic 50% entry detection, a strict 1:1 risk-to-reward ratio, and a 10-pip minimum profit filter. Strictly follows the Madrid session hours for Euro and US sessions.
Omni-Trend Analytics + Live PnL DashboardOverview
The Omni-Trend Analytics suite is an all-in-one technical command center. It integrates the battle-tested UT Bot signal logic with a sophisticated real-time dashboard, session tracking, and multi-timeframe trend analysis.
📊 The "Nexus" Dashboard
The heart of this script is the 6-row dynamic dashboard, designed to give you "at-a-glance" confluence:
RSI & RSI-MA: Tracks the standard RSI alongside a custom RSI-based Moving Average to spot momentum shifts before they hit the price.
Selectable Trend Status: Unlike static indicators, you can toggle the "Trend" source between EMA 9, 20, or 200 in the settings to match your trading style (Scalping vs. Swing).
Distance to EMA: Shows exactly how "overextended" the price is from your selected trend line.
ATR Volatility (Color-Coded): Turns Green when volatility is expanding (ideal for trend following) and Red when the market is contracting (ideal for range-trading or caution).
Live PnL Tracking: Automatically calculates the profit or loss of the most recent UT Bot signal in real-time.
🛠️ Key Features & Settings
Precision Signals: Combines UT Bot Buy/Sell labels with RSI "!" reversal warnings for high-probability entries.
Institutional Moving Averages: Includes 5 SMAs (including the 610 SMA) and 3 EMAs (9, 20, 200) all set to a professional Thickness 2 for clarity.
Session Highlighting: Automatically shades the background for London and New York sessions to help you trade when liquidity is highest.
VWAP Integration: Includes a purple VWAP line to ensure you are trading at a "fair value" relative to volume.
🔔 Strategic Alert Suite
The script comes pre-loaded with 6 specialized alert conditions:
UT Bot Signal: Standard entry alerts.
RSI Cross RSI-MA: Early warning for momentum reversals.
High-Prob UT + VWAP: Signals that only trigger when aligned with institutional volume.
EMA 9/20 Momentum Cross: Classic trend-shift notification.
ATR Volatility Spike: Alerts you to 50% increases in market volatility.
PnL Target / Break-Even: Pings you when your live trade reaches a user-defined profit threshold.
💡 Trading Pro-Tip
The Convergence Strategy: Look for a UT Bot Buy signal that occurs during the London/NY Overlap while the ATR is Green (expanding) and the RSI is crossing over its RSI-MA. This "triple confluence" is the primary design intent of the Omni-Trend suite.
USDT.D MA30 MA200 PRO ULTIME//@version=5
indicator("USDT.D MA30 MA200 PRO ULTIME", shorttitle="USDT.D Pro", overlay=false, max_labels_count=500, max_lines_count=500)
///// PARAMETRES COMPLETS /////
len30 = input.int(30, "MA30 Periode", minval=1, maxval=500)
len200 = input.int(200, "MA200 Periode", minval=1, maxval=1000)
tf = input.timeframe("1D", "Timeframe USDT.D")
normalize = input.bool(true, "Normaliser 0-100")
forceLive = input.bool(true, "Force Update Live")
showDebug = input.bool(false, "Tableau Debug")
showAlerts = input.bool(true, "Alertes Cross")
///// RECUPERATION MULTI-SOURCES + ANTI-PLAT /////
usdt1 = request.security("TVC:USDT.D", tf, close, ignore_invalid_symbol=true, lookahead=barmerge.lookahead_off)
usdt2 = request.security("CRYPTOCAP:USDT.D", tf, close, ignore_invalid_symbol=true, lookahead=barmerge.lookahead_off)
usdtD = na(usdt1) or (forceLive and barstate.isrealtime) ? usdt2 : usdt1
///// CALCULS MA + DETECTION PLATS CORRIGEE /////
ma30 = ta.sma(usdtD, len30)
ma200 = ta.sma(usdtD, len200)
// CORRECTION CRITIQUE : flat_bars safe
flat30_bars = na(ta.valuewhen(ta.change(ma30) != 0, bar_index, 0)) ? 0 : bar_index - ta.valuewhen(ta.change(ma30) != 0, bar_index, 0)
flat200_bars = na(ta.valuewhen(ta.change(ma200) != 0, bar_index, 0)) ? 0 : bar_index - ta.valuewhen(ta.change(ma200) != 0, bar_index, 0)
isFlat30 = flat30_bars > 10
isFlat200 = flat200_bars > 10
///// NORMALISATION INTELLIGENTE /////
lookback = 1000
ma30_norm = normalize and not na(ma30) ? (ma30 - ta.lowest(ma30, lookback)) / (ta.highest(ma30, lookback) - ta.lowest(ma30, lookback)) * 100 : ma30
ma200_norm = normalize and not na(ma200) ? (ma200 - ta.lowest(ma200, lookback)) / (ta.highest(ma200, lookback) - ta.lowest(ma200, lookback)) * 100 : ma200
///// PLOTS AVANCES /////
ma30_color = isFlat30 ? color.new(color.gray, 50) : (ma30 > ma200 ? color.new(color.lime, 0) : color.new(color.blue, 0))
ma200_color = isFlat200 ? color.new(color.gray, 50) : (ma30 > ma200 ? color.new(color.orange, 20) : color.new(color.red, 0))
p30 = plot(ma30_norm, "MA30", ma30_color, 4)
p200 = plot(ma200_norm, "MA200", ma200_color, 4)
fill(p30, p200, color=ma30_norm > ma200_norm ? color.new(color.green, 88) : color.new(color.red, 88), title="Trend Fill")
///// NIVEAUX REFERENCE /////
hline_level = normalize ? 50 : 5
hline_high = normalize ? 80 : 7
hline_low = normalize ? 20 : 3
hline(hline_high, "Surachat", color=color.red, linestyle=hline.style_dashed, linewidth=2)
hline(hline_low, "Survente", color=color.green, linestyle=hline.style_dashed, linewidth=2)
hline(hline_level, "Milieu", color=color.gray, linestyle=hline.style_solid)
///// SIGNAUX CROSS + PLATS /////
bullCross = ta.crossover(ma30, ma200)
bearCross = ta.crossunder(ma30, ma200)
plotshape(bullCross and showAlerts, "ACHAT", shape.triangleup, location.bottom, color.lime, size=size.normal)
plotshape(bearCross and showAlerts, "VENTE", shape.triangledown, location.top, color.red, size=size.normal)
plotshape(isFlat30, "Plat MA30", shape.xcross, location.top, color.new(color.gray, 0), size=size.tiny)
plotshape(isFlat200, "Plat MA200", shape.xcross, location.bottom, color.new(color.gray, 0), size=size.tiny)
bgcolor((isFlat30 or isFlat200) ? color.new(color.yellow, 92) : na, title="Plat Alert")
///// ALERTES PROFESSIONNELLES /////
alertcondition(bullCross, "USDT.D Bull Cross", "USDT.D: MA30 croise AU-DESSUS MA200")
alertcondition(bearCross, "USDT.D Bear Cross", "USDT.D: MA30 croise EN-DESSOUS MA200")
alertcondition(isFlat30 or isFlat200, "USDT.D Flat", "USDT.D: MA PLAT detecte")
///// TABLEAU DEBUG LIVE CORRIGE /////
if showDebug and barstate.islast
var table dashboard = table.new(position.top_right, 2, 8, bgcolor=color.new(color.white, 10), border_width=2)
table.cell(dashboard, 0, 0, "USDT.D", text_color=color.purple, text_size=size.normal, bgcolor=color.new(color.purple, 90))
table.cell(dashboard, 1, 0, str.tostring(usdtD, "#.###") + "%", text_color=color.white, text_size=size.normal, bgcolor=color.new(color.purple, 90))
table.cell(dashboard, 0, 1, "MA30", text_color=ma30_color, text_size=size.small)
table.cell(dashboard, 1, 1, str.tostring(ma30, "#.###"), text_color=ma30_color, text_size=size.small)
table.cell(dashboard, 0, 2, "MA200", text_color=ma200_color, text_size=size.small)
table.cell(dashboard, 1, 2, str.tostring(ma200, "#.###"), text_color=ma200_color, text_size=size.small)
table.cell(dashboard, 0, 3, "Flat30", text_color=color.gray, text_size=size.small)
table.cell(dashboard, 1, 3, str.tostring(flat30_bars) + "b", text_color=isFlat30 ? color.red : color.green, text_size=size.small)
table.cell(dashboard, 0, 4, "Flat200", text_color=color.gray, text_size=size.small)
table.cell(dashboard, 1, 4, str.tostring(flat200_bars) + "b", text_color=isFlat200 ? color.red : color.green, text_size=size.small)
table.cell(dashboard, 0, 5, "Trend", text_color=color.black, text_size=size.small, bgcolor=color.new(color.yellow, 80))
table.cell(dashboard, 1, 5, ma30 > ma200 ? "HAUSSIER" : "BAISSIER", text_color=ma30 > ma200 ? color.green : color.red, text_size=size.normal, bgcolor=color.new(color.yellow, 80))
table.cell(dashboard, 0, 6, "TF", text_color=color.blue, text_size=size.small)
table.cell(dashboard, 1, 6, tf, text_color=color.blue, text_size=size.small)
table.cell(dashboard, 0, 7, "Plan OK", text_color=not na(usdtD) ? color.green : color.red, text_size=size.small)
table.cell(dashboard, 1, 7, not na(usdtD) ? "OK" : "NO", text_color=not na(usdtD) ? color.green : color.red, text_size=size.normal)
Multi-Timeframe 5 Moving Averages//@version=5
indicator("Multi-Timeframe 5 Moving Averages", shorttitle="MTF MA x5", overlay=true)
// ============== MOVING AVERAGE 1 ==============
ma1_enabled = input(true, title="Enable MA1", group="Moving Average 1")
ma1_period = input.int(9, title="MA1 Period", minval=1, group="Moving Average 1")
ma1_type = input.string("EMA", title="MA1 Type", options= , group="Moving Average 1")
ma1_color = input(color.new(#FF6B35, 0), title="MA1 Color", group="Moving Average 1")
// ============== MOVING AVERAGE 2 ==============
ma2_enabled = input(true, title="Enable MA2", group="Moving Average 2")
ma2_period = input.int(20, title="MA2 Period", minval=1, group="Moving Average 2")
ma2_type = input.string("EMA", title="MA2 Type", options= , group="Moving Average 2")
ma2_color = input(color.new(#004E89, 0), title="MA2 Color", group="Moving Average 2")
// ============== MOVING AVERAGE 3 ==============
ma3_enabled = input(true, title="Enable MA3", group="Moving Average 3")
ma3_period = input.int(50, title="MA3 Period", minval=1, group="Moving Average 3")
ma3_type = input.string("SMA", title="MA3 Type", options= , group="Moving Average 3")
ma3_color = input(color.new(#F7931E, 0), title="MA3 Color", group="Moving Average 3")
// ============== MOVING AVERAGE 4 ==============
ma4_enabled = input(true, title="Enable MA4", group="Moving Average 4")
ma4_period = input.int(100, title="MA4 Period", minval=1, group="Moving Average 4")
ma4_type = input.string("SMA", title="MA4 Type", options= , group="Moving Average 4")
ma4_color = input(color.new(#1E88E5, 0), title="MA4 Color", group="Moving Average 4")
// ============== MOVING AVERAGE 5 ==============
ma5_enabled = input(true, title="Enable MA5", group="Moving Average 5")
ma5_period = input.int(200, title="MA5 Period", minval=1, group="Moving Average 5")
ma5_type = input.string("EMA", title="MA5 Type", options= , group="Moving Average 5")
ma5_color = input(color.new(#43A047, 0), title="MA5 Color", group="Moving Average 5")
// ============== FUNCTION TO CALCULATE MA ==============
calcMA(period, maType, source) =>
switch maType
"SMA" => ta.sma(source, period)
"EMA" => ta.ema(source, period)
"WMA" => ta.wma(source, period)
=> ta.sma(source, period)
// ============== CALCULATE MOVING AVERAGES (CHART TIMEFRAME ONLY) ==============
ma1_value = calcMA(ma1_period, ma1_type, close)
ma2_value = calcMA(ma2_period, ma2_type, close)
ma3_value = calcMA(ma3_period, ma3_type, close)
ma4_value = calcMA(ma4_period, ma4_type, close)
ma5_value = calcMA(ma5_period, ma5_type, close)
// ============== PLOT MOVING AVERAGES ==============
plot(ma1_enabled ? ma1_value : na, title="MA1", color=ma1_color, linewidth=2)
plot(ma2_enabled ? ma2_value : na, title="MA2", color=ma2_color, linewidth=2)
plot(ma3_enabled ? ma3_value : na, title="MA3", color=ma3_color, linewidth=2)
plot(ma4_enabled ? ma4_value : na, title="MA4", color=ma4_color, linewidth=2)
plot(ma5_enabled ? ma5_value : na, title="MA5", color=ma5_color, linewidth=2)
Ultimate MTF//@version=5
indicator("Ultimate MTF", shorttitle="Ultimate MTF", overlay=true)
// ============== EMA 13 (Court Terme - Accélérateur) ==============
ema13_enabled = input(true, title="Enable EMA 13", group="EMA 13")
ema13_period = input.int(13, title="EMA 13 Period", minval=1, group="EMA 13")
ema13_color = input(color.new(#FF6B35, 0), title="EMA 13 Color", group="EMA 13")
// ============== EMA 21 (Court Terme - Signal) ==============
ema21_enabled = input(true, title="Enable EMA 21", group="EMA 21")
ema21_period = input.int(21, title="EMA 21 Period", minval=1, group="EMA 21")
ema21_color = input(color.new(#004E89, 0), title="EMA 21 Color", group="EMA 21")
// ============== SMA 50 (Moyen Terme - Zone de Vérité) ==============
sma50_enabled = input(true, title="Enable SMA 50", group="SMA 50")
sma50_period = input.int(50, title="SMA 50 Period", minval=1, group="SMA 50")
sma50_color = input(color.new(#F7931E, 0), title="SMA 50 Color", group="SMA 50")
// ============== SMA 200 (Long Terme - Juge de Paix) ==============
sma200_enabled = input(true, title="Enable SMA 200", group="SMA 200")
sma200_period = input.int(200, title="SMA 200 Period", minval=1, group="SMA 200")
sma200_color = input(color.new(#43A047, 0), title="SMA 200 Color", group="SMA 200")
// ============== FUNCTION TO CALCULATE MA ==============
calcMA(period, maType, source) =>
switch maType
"SMA" => ta.sma(source, period)
"EMA" => ta.ema(source, period)
=> ta.ema(source, period)
// ============== CALCULATE MOVING AVERAGES ==============
ema13_value = ta.ema(close, ema13_period)
ema21_value = ta.ema(close, ema21_period)
sma50_value = ta.sma(close, sma50_period)
sma200_value = ta.sma(close, sma200_period)
// ============== PLOT MOVING AVERAGES ==============
plot(ema13_enabled ? ema13_value : na, title="EMA 13", color=ema13_color, linewidth=2)
plot(ema21_enabled ? ema21_value : na, title="EMA 21", color=ema21_color, linewidth=2)
plot(sma50_enabled ? sma50_value : na, title="SMA 50", color=sma50_color, linewidth=2)
plot(sma200_enabled ? sma200_value : na, title="SMA 200", color=sma200_color, linewidth=2)
AlphaTrend_TC// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// author © KivancOzbilgic
// developer © KivancOzbilgic
// I'm just playing with it.... Jake Ryan
//@version=5
indicator('AlphaTrend', shorttitle='AT', overlay=true, format=format.price, precision=2, timeframe='')
coeff = input.float(1, 'Multiplier', step=0.1)
AP = input(14, 'Common Period')
ATR = ta.sma(ta.tr, AP)
src = input(close)
showsignalsk = input(title='Show Signals?', defval=true)
novolumedata = input(title='Change calculation (no volume data)?', defval=false)
upT = low - ATR * coeff
downT = high + ATR * coeff
AlphaTrend = 0.0
AlphaTrend := (novolumedata ? ta.rsi(src, AP) >= 50 : ta.mfi(hlc3, AP) >= 50) ? upT < nz(AlphaTrend ) ? nz(AlphaTrend ) : upT : downT > nz(AlphaTrend ) ? nz(AlphaTrend ) : downT
color1 = AlphaTrend > AlphaTrend ? #00E60F : AlphaTrend < AlphaTrend ? #80000B : AlphaTrend > AlphaTrend ? #00E60F : #80000B
k1 = plot(AlphaTrend, color=color.new(#0022FC, 0), linewidth=3)
k2 = plot(AlphaTrend , color=color.new(#FC0400, 0), linewidth=3)
fill(k1, k2, color=color1)
buySignalk = ta.crossover(AlphaTrend, AlphaTrend )
sellSignalk = ta.crossunder(AlphaTrend, AlphaTrend )
// Calculate Bollinger Bands around AlphaTrend
length = input(20, title="Bollinger Bands Length")
mult = input(2.0, title="Bollinger Bands Multiplier")
basis = ta.sma(AlphaTrend, length)
dev = mult * ta.stdev(AlphaTrend, length)
upperBand = basis + dev
lowerBand = basis - dev
// Plot Bollinger Bands
plot(upperBand, color=#2962FF, linewidth=1, title="Upper Bollinger Band")
plot(lowerBand, color=#2962FF, linewidth=1, title="Lower Bollinger Band")
// Rest of the code remains the same for generating signals and plotting arrows
K1 = ta.barssince(buySignalk)
K2 = ta.barssince(sellSignalk)
O1 = ta.barssince(buySignalk )
O2 = ta.barssince(sellSignalk )
plotshape(buySignalk and showsignalsk and O1 > K2 ? AlphaTrend * 0.9999 : na, title='BUY', text='BUY', location=location.absolute, style=shape.labelup, size=size.tiny, color=color.new(#0022FC, 0), textcolor=color.new(color.white, 0))
plotshape(sellSignalk and showsignalsk and O2 > K1 ? AlphaTrend * 1.0001 : na, title='SELL', text='SELL', location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(color.maroon, 0), textcolor=color.new(color.white, 0))
alertcondition(buySignalk and O1 > K2, title='Potential BUY Alarm', message='BUY SIGNAL!')
alertcondition(sellSignalk and O2 > K1, title='Potential SELL Alarm', message='SELL SIGNAL!')
alertcondition(buySignalk and O1 > K2, title='Confirmed BUY Alarm', message='BUY SIGNAL APPROVED!')
alertcondition(sellSignalk and O2 > K1, title='Confirmed SELL Alarm', message='SELL SIGNAL APPROVED!')
alertcondition(ta.cross(close, AlphaTrend), title='Price Cross Alert', message='Price - AlphaTrend Crossing!')
alertcondition(ta.crossover(low, AlphaTrend), title='Candle CrossOver Alarm', message='LAST BAR is ABOVE ALPHATREND')
alertcondition(ta.crossunder(high, AlphaTrend), title='Candle CrossUnder Alarm', message='LAST BAR is BELOW ALPHATREND!')
alertcondition(ta.cross(close , AlphaTrend ), title='Price Cross Alert After Bar Close', message='Price - AlphaTrend Crossing!')
alertcondition(ta.crossover(low , AlphaTrend ), title='Candle CrossOver Alarm After Bar Close', message='LAST BAR is ABOVE ALPHATREND!')
alertcondition(ta.crossunder(high , AlphaTrend ), title='Candle CrossUnder Alarm After Bar Close', message='LAST BAR is BELOW ALPHATREND!')
//from AlphaTrend






















