Credit Spread Monitor: HY & IG vs US10Y📉 Credit Spread Monitor: HY & IG vs US10Y
This indicator provides a dynamic and visual way to monitor credit spreads relative to the US Treasury benchmark. By comparing High Yield (HY) and Investment Grade (IG) corporate bond yields to the 10-Year US Treasury Yield (US10Y), it helps assess market stress, investor risk appetite, and potential macro turning points.
🔍 What It Does
-Calculates credit spreads:
HY Spread = BAMLH0A0HYM2EY − US10Y
IG Spread = BAMLC0A0CMEY − US10Y
-Detects macro risk regimes using statistical thresholds and yield curve signals:
🔴 HY Spread > +2σ → Potential financial stress
🟠 Inverted Yield Curve + HY Spread > 2% → Recession risk
🟢 HY Spread < 1.5% → Risk-on environment
-Visually highlights conditions with intuitive background colors for fast decision-making.
📊 Data Sources Explained
🔴 High Yield (HY): BAMLH0A0HYM2EY → ICE BofA US High Yield Index Effective Yield
🔵 Investment Grade (IG): BAMLC0A0CMEY → ICE BofA US Corporate Index Effective Yield
⚪ Treasury 10Y: US10Y → 10-Year US Treasury Yield
⚪ Treasury 2Y: US02Y → 2-Year US Treasury Yield (used to detect curve inversion)
✅ This Indicator Is Ideal For:
Macro traders looking to anticipate economic inflection points
Portfolio managers monitoring systemic risk or credit cycles
Fixed-income analysts tracking the cost of corporate borrowing
ETF/Asset allocators identifying shifts between risk-on and risk-off environments
🧠 Why It's Useful
This script helps visualize how tight or loose credit conditions are relative to government benchmarks. Since HY spreads typically widen before major downturns, this tool can provide early warning signals. Similarly, compressed spreads may indicate overheating or complacency in risk markets.
🛠️ Practical Use Case:
You’re managing a multi-asset portfolio. The HY spread jumps above +2σ while the yield curve remains inverted. You decide to reduce exposure to equities and high-yield bonds and rotate into cash or Treasuries as recession risk rises.
📎 Additional Notes
Sourced from FRED (Federal Reserve Economic Data) and TradingView’s bond feeds.
Designed to work best on daily resolution, using open prices to ensure consistency across series with different update timings.
This script is original, not based on built-in or public templates, and intended to offer educational, statistical, and visual insights for serious market participants.
指标和策略
LANZ Strategy 4.0🔷 LANZ Strategy 4.0 — Trend Impulse Detection with Risk Management
LANZ Strategy 4.0 is a multi-indicator trend strategy designed for short to medium-term trading on any asset or timeframe. It combines Parabolic SAR, Supertrend, ADX, and time zone highlighting to detect and confirm trend impulses, while managing entries with dynamic Stop Loss (SL) and Take Profit (TP) levels.
🧠 Core Components:
Parabolic SAR: Identifies short-term trend reversals.
Supertrend: Highlights trend continuation zones.
ADX Filter: Ensures trend strength by filtering entries when ADX exceeds a defined threshold.
Impulse Detection Logic: Detects and confirms movement impulses with a counter, only generating trade signals on confirmed sequences.
Risk Management: Calculates dynamic SL/TP with a default risk-reward ratio of 1:2, minimum SL of 4 pts, and maximum of 12 pts.
📊 Visual Features:
Trend lines from Supertrend and SAR.
Colored background zones for different sessions (Asia, NY).
Labels and lines for entry, SL, and TP.
Movement number labels help visualize impulse progression.
Alerts when a new impulse is confirmed.
⚙️ How It Works:
The strategy waits for a confirmed impulse (i.e., change in SAR + Supertrend + ADX filter).
Once a valid impulse is confirmed:
A trade signal (BUY/SELL) is shown.
SL and TP levels are calculated and drawn.
The script monitors live price to determine if SL or TP is hit.
Impulse counter advances to label movement progression.
🔔 Alerts:
You will receive an alert each time a new valid impulse is confirmed, indicating a potential trading opportunity.
📝 Notes:
Script is intended for discretionary or assisted trading, not automated execution.
Works best during active sessions with visible trend direction.
You can adjust ATR period, multiplier, SL padding, and impulse thresholds.
Credits:
Developed by LANZ combines established technical indicators and original impulse-count logic.
NY Key Open Lines (UTC-4 - Label to Right Side)📌 NY Key Open Lines (UTC-4 Based) — Indicator Description
This TradingView indicator automatically draws horizontal lines at four key New York session opening times:
08:30, 09:30, 10:30, and 18:00 (based on New York time, UTC-4).
Customizable style:
Line color
Line width
Label font size
Label vertical offset
🛠️ How to Use
Apply the indicator on a 5-minute chart for best results.
Make sure your chart is set to Chicago time (UTC-5) if you're syncing with CME instruments.
Use the settings panel to personalize each line’s appearance and visibility.
Gamma + Fibonacci EMA Bands# Gamma + Fibonacci EMA Bands
## Overview
The Gamma + Fibonacci EMA Bands indicator combines two powerful analytical approaches: Gamma-weighted Exponential Moving Averages and Fibonacci sequence-based standard EMAs. This dual system creates a comprehensive "band" structure that helps identify trend direction, strength, and potential reversal zones with greater precision than single moving average systems.
## Features
- **Gamma-weighted EMAs**: Three customizable Gamma EMAs (fast-responding) with adjustable gamma parameters
- **Fibonacci Sequence EMAs**: Six standard EMAs based on the Fibonacci sequence (34, 55, 89, 144, 233, 377)
- **Visual Band Structure**: Color-coded for instant visual analysis
- **Trend Confirmation**: Multiple timeframe validation through varied moving average periods
- **Support/Resistance Identification**: Natural price reaction zones highlighted by EMA confluences
## How It Works
The indicator uses two complementary EMA systems:
1. **Gamma EMAs** (γ-EMAs) - These responsive moving averages use a direct gamma weighting factor (between 0-1) rather than a period length. Lower gamma values create smoother lines, while higher values create more responsive ones. These react quickly to price changes and serve as short-term trend indicators.
2. **Fibonacci EMAs** - These traditional EMAs use period lengths based on the Fibonacci sequence (34, 55, 89, 144, 233, 377). They provide longer-term trend context and naturally identify key support/resistance levels that align with market psychology.
## Interpretation
### Trend Direction
- When price is above all bands: Strong bullish trend
- When price is below all bands: Strong bearish trend
- When price is between bands: Consolidation or trend transition
### Support/Resistance
- Gamma EMAs (purple shades): Short-term dynamic support/resistance
- Fibonacci EMAs (orange/red shades): Stronger, longer-term support/resistance
### Trend Strength
- Wider band separation: Stronger trend momentum
- Compressed bands: Consolidation or trend weakness
### Reversal Signals
- Price breaking through multiple bands: Potential trend reversal
- Gamma EMAs crossing Fibonacci EMAs: Changing momentum
## Settings
- **Source**: Price data source (default: close)
- **Gamma 1**: Fast γ-EMA value (default: 0.2)
- **Gamma 2**: Medium γ-EMA value (default: 0.5)
- **Gamma 3**: Slow γ-EMA value (default: 0.8)
## Notes
This indicator works best on higher timeframes (1H+) and liquid markets. The Gamma-weighted EMAs provide faster signals while the Fibonacci sequence EMAs provide reliable support/resistance levels that often align with key market turning points.
For optimal use, watch for price interaction with these bands and how the bands interact with each other to confirm trend changes before they become obvious to the majority of market participants.
Strategia Forex con RSI, MACD, SuperTrend, MA, SL/TPQuesto indicatore è progettato per il trading su Forex e XAUUSD nel time frame 1H. Combina 4 elementi tecnici fondamentali: RSI, MACD, SuperTrend e Media Mobile a 200 periodi.
Un segnale BUY viene generato quando:
- L'RSI è in ipervenduto
- Il MACD è in incrocio rialzista
- Il SuperTrend è verde (trend up)
- Il prezzo è sopra la media mobile a 200
Un segnale SELL viene generato quando:
- L'RSI è in ipercomprato
- Il MACD è in incrocio ribassista
- Il SuperTrend è rosso (trend down)
- Il prezzo è sotto la media mobile a 200
Il sistema mostra inoltre Stop Loss e Take Profit sul grafico, con un’etichetta del rapporto Rischio/Rendimento (R:R). Sono inclusi anche alert per segnali BUY e SELL. Ideale per strategie trend following su base oraria.
This indicator is designed for trading Forex and XAUUSD on the 1H timeframe. It combines 4 key technical tools: RSI, MACD, SuperTrend, and 200-period Moving Average.
Se volete anche il secondo script da allegare al primo per l'indicatore macd contattatemi che lo invio subito
A BUY signal is generated when:
- RSI is in oversold territory
- MACD shows a bullish crossover
- SuperTrend is green (uptrend)
- Price is above the 200 MA
A SELL signal is generated when:
- RSI is overbought
- MACD shows a bearish crossover
- SuperTrend is red (downtrend)
- Price is below the 200 MA
The system also plots Stop Loss and Take Profit levels, along with a Risk/Reward (R:R) label. Alerts for BUY and SELL signals are included. Ideal for 1H trend-following strategies.
MinhPhan Trend Pullback EntryThis Pine Script strategy, "Trend Pullback Entry (Clean View)," is designed to identify pullback entries within a trending market using EMA, ADX, RSI, and VWAP. It dynamically distinguishes between trending and sideways markets by calculating the ADX (average directional index) and EMA spread, and it visually highlights trend/sideway zones with shaded boxes.
Key Logic:
Trend Detection: A trend is confirmed when ADX > Threshold and the spread between EMA Fast and EMA Slow exceeds 0.2%. Otherwise, the market is considered sideways.
Entry Conditions:
Long: When in an uptrend, price pulls back near VWAP, EMA Fast > EMA Slow, and RSI > 50.
Short: In a downtrend, price pulls back near VWAP, EMA Fast < EMA Slow, and RSI < 50.
Trade Management:
Entries are marked using strategy.entry for both long and short setups.
Exits are handled with fixed risk-reward logic: Take Profit and Stop Loss in percent, converted into price ticks using syminfo.mintick.
Visual Aids:
Box overlays distinguish trend and sideway zones.
EMA and VWAP lines guide the trend direction.
Arrows mark entry signals on the chart for both long and short setups.
Equal High/Low (EQH/EQL) [AlgoAlpha]OVERVIEW
This script detects and visualizes Equal High (EQH) and Equal Low (EQL) zones—key liquidity areas where price has previously stalled or reversed. These levels often attract institutional interest due to the liquidity buildup around them. The indicator is built to highlight such zones using dynamic thresholding, overbought/oversold RSI filtering, and adaptive mitigation logic to manage zone relevance over time.
CONCEPTS
Equal Highs/Lows are price points where the market has repeatedly failed to break past a certain high or low, hinting at areas where stop orders and pending interest may be concentrated. These areas are often prime targets for liquidity grabs or reversals. By combining this with RSI filtering, the script avoids false signals during neutral conditions and instead focuses on zones where market pressure is more directional.
FEATURES
Detection Logic: The script identifies EQH and EQL zones by comparing the similarity between recent highs or lows with a dynamic volatility threshold. The `tolerance` input allows users to control how strict this comparison is.
RSI Filtering: If enabled, it only creates zones when RSI is significantly overbought or oversold (based on the `state_thresh` input). This helps ensure zones form only in meaningful market conditions.
Zone Display: Bullish (EQL) zones are shown in grey, while bearish (EQH) zones are in blue. Two horizontal lines mark the zone using wick and body extremes, and a filled area visualizes the zone between them.
Zone Management: Zones automatically extend with price until they’re invalidated. You can choose whether a zone is removed based on wick or body sweeps and whether it requires one or two candle confirmations. Zones also expire after a customizable number of bars.
Alerts: Four alert conditions are built in—when a new EQH/EQL is formed and when one is mitigated—making it easy to integrate into alert-based workflows.
USAGE
Equal highs/lows can be used as liquidity markers, either as entry points or as take-profit targets.
This tool is ideal for liquidity-based strategies and helps traders map out possible reversal or sweep zones that often precede aggressive moves.
asami.SmartTrend### **1\. Purpose**
The script fires **Buy/Sell signals** based on an EMA golden/death‑cross, but only when **volatility (ATR & Bollinger width), volume, and short‑term momentum** confirm that market conditions are meaningful. It also self‑tracks win‑rate and average P/L, displaying the stats in a table.
### **2\. Input Parameters**
| Category | Variable(s) | Function |
| :---- | :---- | :---- |
| Trend | `emaFast`, `emaSlow` | Determine EMA crossover direction |
| Oscillator | `rsiLength` | Oversold/overbought context only |
| MACD | `macdFast`, etc. | Extra momentum context (not plotted) |
| Volatility | `atrPeriod`, `atrMultiplier`, `bbLength`, `bbMult` | Measure relative ATR & BB width |
| Threshold | `minVolatilityThreshold` | Minimum % width to call vol “high” |
### **3\. Core Logic**
1. **Trend** – `fastMA > slowMA` is up‑trend, else down.
2. **Signal Generation**
* `crossover(fastMA, slowMA)` → **Buy**
* `crossunder(fastMA, slowMA)` → **Sell**
3. **Volatility & Volume Filter**
* Current ATR vs 100‑bar ATR average.
* Bollinger‑band width (% of middle band).
* Volume \> 1.5 × 20‑bar MA.
* If both conditions pass, table shows “HIGH”.
4. **Momentum Filter** – 3‑bar price %‑change must exceed the same threshold.
5. **Stat Tracking** – On every Buy→Sell pair it logs P/L %, counts total & successful signals, and updates accuracy / average profit.
### **4\. Visual Components**
* **Chart** – Plots fast/slow EMA, ATR‑based dynamic bands, upper/lower BB, plus triangle icons at each signal.
* **Table (top‑right)** – Displays volatility status, BB width %, ATR ratio, current or last signal, plus room to add accuracy/avg P/L lines.
### **5\. Alerts**
Three `alertcondition()` calls let you create TradingView alerts for **Buy**, **Sell**, or **any** signal and forward JSON/Webhooks to external trading bots.
### **6\. Usage Notes**
* The multilayer filter aims to fire only when **trend, volatility, and volume align**, reducing crossover whipsaws.
* Treat the built‑in statistics as a **research aid**; refine parameters (`minVolatilityThreshold`, `atrMultiplier`, etc.) per symbol and timeframe.
* Combine with proper risk management (SL/TP, position sizing) before live deployment.
asami.RSI T3-PMax### **1\. Overview**
**Indicator**: asami.PMax on RSI w T3 (Short: **PmR3**)
**Pane**: Separate (`overlay=false`)
**Goal**: Smooth classic RSI with Tillson T3, overlay ATR-based PMax stops, and highlight momentum shifts with built-in alerts.
### **2\. Code Breakdown**
1. **WWMA-Based RSI**
* Use weighted moving average on up/down moves (`avUp`, `avDown`) to compute `rsi = 100 - 100/(1 + avUp/avDown)`.
2. **ATR on RSI**
* Define true range (`tr`) from RSI high/low differences; compute `atr = sma(tr, periodsATR)`.
3. **Tillson T3 Smoothing**
* Concatenate six EMAs of length `lenT3`, then blend via coefficients derived from `T3a1` to form `mAvg`.
4. **PMax Stop Bands**
* `longStop = mAvg - multiplier * atr` and `shortStop = mAvg + multiplier * atr`.
* Enforce monotonic expansion and pick inner band based on trend direction `dir`.
5. **Signals & Alerts**
* `crossover(mAvg, pMax)` → Buy signal
* `crossunder(mAvg, pMax)` → Sell signal
* Additional alerts on price vs. PMax crosses.
### **3\. Inputs**
| Input Name | Default | Description |
| :---- | :---- | :---- |
| Source | hl2 | Base price series (e.g., (High+Low)/2) |
| ATR Multiplier | 3.0 | Width factor for PMax band |
| Tillson T3 Length | 8 | EMA chain length for T3 smoothing |
| TILLSON T3 Volume Factor | 0.7 | Blending factor for T3 smoothing |
| ATR Length | 10 | Period for ATR calculation |
| RSI Length | 14 | Period for RSI calculation |
| Show RSI? | true | Toggle RSI plot |
| Show Moving Average? | true | Toggle T3-RSI centerline |
| Show Crossing Signals? | true | Toggle Buy/Sell markers |
| Highlighter On/Off? | true | Toggle background color highlights (green/red) |
### **4\. Plots & Signals**
* **RSI \+ Bands**: Plots RSI with 70/30 horizontal lines and semi-transparent background fill.
* **Center Line (T3-RSI)**: Thick black line (`linewidth=2`).
* **PMax**: Thick red line.
* **Buy/Sell Labels**: Tiny up/down labels along the PMax line when enabled.
* **Background Highlight**: Green when `mAvg > pMax`; red when `<`.
### **5\. Use Cases**
* **Day & Swing Trading**: Ideal on 5 min–4 h charts for clean momentum flip detection.
* **Directional Filter**: Restrict long trades to price above PMax, shorts below.
* **Automated Execution**: Hook alerts into webhook-driven bots for live order placement.
### **6\. Tips & Caveats**
* **Whipsaw Control**: In low volatility, ATR contracts excessively—consider longer ATR or additional volatility filters.
* **Multi-Timeframe Alignment**: Validate trend direction on higher timeframes to reduce false signals.
* **Risk Management**: Oscillator-based stops often trigger tight exits; adjust position sizing accordingly.
### **7\. Conclusion**
PmR3 combines RSI, ATR, and Tillson T3 techniques to deliver a noise-reduced, trend-aware momentum indicator. With intuitive color highlights and ready-to-use alerts, it fits both discretionary and algorithmic TradingView strategies.
asami.PMax on Rsi w T3### **1\. Overview**
**Indicator**: asami.PMax on RSI w T3 (Short: **PmR3**)
**Pane**: Separate (`overlay=false`)
**Goal**: Smooth classic RSI with Tillson T3, overlay ATR-based PMax stops, and highlight momentum shifts with built-in alerts.
### **2\. Code Breakdown**
1. **WWMA-Based RSI**
* Use weighted moving average on up/down moves (`avUp`, `avDown`) to compute `rsi = 100 - 100/(1 + avUp/avDown)`.
2. **ATR on RSI**
* Define true range (`tr`) from RSI high/low differences; compute `atr = sma(tr, periodsATR)`.
3. **Tillson T3 Smoothing**
* Concatenate six EMAs of length `lenT3`, then blend via coefficients derived from `T3a1` to form `mAvg`.
4. **PMax Stop Bands**
* `longStop = mAvg - multiplier * atr` and `shortStop = mAvg + multiplier * atr`.
* Enforce monotonic expansion and pick inner band based on trend direction `dir`.
5. **Signals & Alerts**
* `crossover(mAvg, pMax)` → Buy signal
* `crossunder(mAvg, pMax)` → Sell signal
* Additional alerts on price vs. PMax crosses.
### **3\. Inputs**
| Input Name | Default | Description |
| :---- | :---- | :---- |
| Source | hl2 | Base price series (e.g., (High+Low)/2) |
| ATR Multiplier | 3.0 | Width factor for PMax band |
| Tillson T3 Length | 8 | EMA chain length for T3 smoothing |
| TILLSON T3 Volume Factor | 0.7 | Blending factor for T3 smoothing |
| ATR Length | 10 | Period for ATR calculation |
| RSI Length | 14 | Period for RSI calculation |
| Show RSI? | true | Toggle RSI plot |
| Show Moving Average? | true | Toggle T3-RSI centerline |
| Show Crossing Signals? | true | Toggle Buy/Sell markers |
| Highlighter On/Off? | true | Toggle background color highlights (green/red) |
### **4\. Plots & Signals**
* **RSI \+ Bands**: Plots RSI with 70/30 horizontal lines and semi-transparent background fill.
* **Center Line (T3-RSI)**: Thick black line (`linewidth=2`).
* **PMax**: Thick red line.
* **Buy/Sell Labels**: Tiny up/down labels along the PMax line when enabled.
* **Background Highlight**: Green when `mAvg > pMax`; red when `<`.
### **5\. Use Cases**
* **Day & Swing Trading**: Ideal on 5 min–4 h charts for clean momentum flip detection.
* **Directional Filter**: Restrict long trades to price above PMax, shorts below.
* **Automated Execution**: Hook alerts into webhook-driven bots for live order placement.
### **6\. Tips & Caveats**
* **Whipsaw Control**: In low volatility, ATR contracts excessively—consider longer ATR or additional volatility filters.
* **Multi-Timeframe Alignment**: Validate trend direction on higher timeframes to reduce false signals.
* **Risk Management**: Oscillator-based stops often trigger tight exits; adjust position sizing accordingly.
### **7\. Conclusion**
PmR3 combines RSI, ATR, and Tillson T3 techniques to deliver a noise-reduced, trend-aware momentum indicator. With intuitive color highlights and ready-to-use alerts, it fits both discretionary and algorithmic TradingView strategies.
3 SMMA with Simple SessionsOverview
This script combines the power of three Smoothed Moving Averages (SMMA) with a global session visualizer to provide enhanced market context and trend clarity. Designed for intraday and swing traders who require precision in session awareness and trend-following confirmation.
Features
🔹 3 SMMA Overlay
SMMA 60 (blue), SMMA 100 (green), and SMMA 200 (red)
Offers a smoother view of trend direction by reducing lag compared to traditional EMAs/SMA
Fully customizable period and data source for each curve
🔹 Session Highlight Zones
Auto-detected background highlights for major market sessions:
▫️ US (New York)
▫️ EU (London)
▫️ JP (Tokyo)
Color-coded and adjustable time ranges
Helps identify periods of peak volatility and overlapping liquidity
Use Case Suggestions
Identify dynamic support/resistance using long-term SMMA intersections
Time entries and exits with session opens and closes
Filter trades during overlapping sessions for increased momentum probability
Script Type: Visual Overlay | Pine Script v6
Recommended Timeframes: 15m, 1H, 4H
Volume Change % Display1- Current bar's volume change %
2- Previous bar's volume change %
* Each line uses its own color based on volume rising or falling.
* Keeps the layout compact and readable.
Multi RSI (3,7,14,21,50)Multi time frame RSI. Helps figure out the overall market on multi time frames.
Multitimeframe Order Block Finder (Zeiierman)█ Overview
The Multitimeframe Order Block Finder (Zeiierman) is a powerful tool designed to identify potential institutional zones of interest — Order Blocks — across any timeframe, regardless of what chart you're viewing.
Order Blocks are critical supply and demand zones formed by the last opposing candle before an impulsive move. These areas often act as magnets for price and serve as smart-money footprints — ideal for anticipating reversals, retests, or breakouts.
This indicator not only detects such zones in real-time, but also visualizes their mitigation, bull/bear volume pressure, and a smoothed directional trendline based on Order Block behavior.
█ How It Works
The script fetches OHLCV data from your chosen timeframe using request.security() and processes it using strict pattern logic and volume-derived strength conditions. It detects Order Blocks only when the structure aligns with dominant pressure and visually extends valid zones forward for as long as they remain unmitigated.
⚪ Bull/Bear Volume Power Visualization
Each OB includes proportional bars representing estimated buy/sell effort:
Buy Power: % of volume attributed to buyers
Sell Power: % of volume attributed to sellers
This adds a visual, intuitive layer of intent — showing who controlled the price before the OB formed.
⚪ Order Block Trendline (Butterworth Filtered)
A smoothed trendline is derived from the average OB value over time using a two-pole Butterworth low-pass filter. This helps you understand the broader directional pressure:
Trendline up → favor bullish OBs
Trendline down → favor bearish OBs
█ How to Use
⚪ Trade From Order Blocks Like Institutions
Use this tool to find institutional footprints and reaction zones:
Enter at unmitigated OBs
⚪ Volume Power
Volume Pressure Bars inside each OB help you:
Confirm strong buyer/seller dominance
Detect possible traps or exhaustion
Understand how each zone formed
⚪ Find Trend & Pullbacks
The trendline not only helps traders detect the current trend direction, but the built-in trend coloring also highlights potential pullback areas within these trends.
█ Settings
Timeframe – Selects which timeframe to scan for Order Blocks.
Lookback Period – Defines how many bars back are used to detect bullish or bearish momentum shifts.
Sensitivity – When enabled, the indicator uses smoothed price (RMA) with rising/falling logic instead of raw candle closes. This allows more flexible detection of trend shifts and results in more Order Blocks being identified.
Minimum Percent Move – Filters out weak moves. Higher = only strong price shifts.
Mitigated on Mid – OB is removed when price touches its midpoint.
Show OB Table – Displays a panel listing all active (unmitigated) Order Blocks.
Extend Boxes – Controls how far OB boxes stretch into the future.
Show OB Trend – Toggles the trendline derived from Order Block strength.
Passband Ripple (dB) – Controls trendline reactivity. Higher = more sensitive.
Cutoff Frequency – Controls smoothness of trendline (0–0.5). Lower = smoother.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
תחזית ממוצע נע (4 ממוצעים)Visualize potential future movements of up to four Simple Moving Averages (SMAs) with this customizable forecasting tool for TradingView, built on Pine Script v4.
How It Works:
This indicator plots your chosen SMAs and then, from the most recent bar, projects their paths into the future. The projection is based on a single, global 'Future Price Change %' that you define. This allows you to model how the SMAs might react under different market scenarios (e.g., if the price is expected to rise by 10%, fall by 5%, or remain flat).
Key Features:
Four Configurable SMAs: Set distinct lengths and colors for up to four different SMAs.
Global Price Change Scenario: Input a single percentage (positive, negative, or zero) to simulate future price behavior, which then drives all SMA projections.
Adjustable Projection Horizon: Specify how many future bars to project the SMAs over.
Clear Visuals: Current SMAs are plotted as solid lines, while their future projections are displayed as corresponding dotted lines for easy differentiation.
Important Note (Pine Script v4):
Due to line drawing limitations in Pine Script v4 (max_lines_count=500), when all four SMAs are active, the 'Future Bars to Inspect' input is capped at 126. This ensures the script functions correctly within platform limits (drawing 125 segments * 4 SMAs = 500 lines).
Use Cases:
Anticipate potential future support and resistance levels based on projected SMA crossovers or positions.
Analyze how different SMAs might behave if the market trends up, down, or sideways by your assumed percentage.
Enhance your technical analysis by adding a forward-looking dimension to your SMA strategy.
This script is an extension of an idea by vladimir.kamba, modified to support four SMAs and provide future projections.
Fire Sling Shot Stochastic// ============================================================================
// Stochastic Indicator (5,3,3) Explanation
// ============================================================================
//
// The Fire Sling Shot strategy uses a Stochastic oscillator (5,3,3) as a
// confirming indicator to enhance the reliability of EMA crossover signals.
//
// WHAT IS STOCHASTIC?
// The Stochastic oscillator is a momentum indicator that compares a security's
// closing price to its price range over a specific period. The indicator
// oscillates between 0 and 100, with readings above 80 considered overbought
// and readings below 20 considered oversold.
//
// SETTINGS USED:
// - %K Period: 5 (faster sensitivity to price movements)
// - %D Period: 3 (smoothing of %K)
// - Smoothing: 3 (additional smoothing applied to the %K line)
// - Overbought Level: 80
// - Oversold Level: 20
//
// HOW IT'S USED IN THIS STRATEGY:
//
// 1. Bull Signal Enhancement:
// When the 15 EMA crosses above the 50 EMA (primary signal), we check
// if the Stochastic is below 20 or has just crossed above 20. This suggests
// momentum is starting to turn upward from an oversold condition, improving
// the quality of the long entry.
//
// 2. Bear Signal Enhancement:
// When the 15 EMA crosses below the 50 EMA (primary signal), we check
// if the Stochastic is above 80 or has just crossed below 80. This suggests
// momentum is starting to turn downward from an overbought condition,
// improving the quality of the short entry.
//
// 3. Early Warning:
// Stochastic movements below 20 or above 80 can provide early warning of
// potential EMA crossovers, allowing traders to prepare for possible entry
// signals.
//
// The Stochastic filter is optional and can be enabled/disabled through the
// strategy inputs. When disabled, the strategy relies solely on EMA crossovers
// for entry signals.
//
// NOTE: While Stochastic can improve signal quality, no indicator is perfect.
// False signals can occur, especially in ranging or choppy markets. Always
// combine with proper risk management and consider the overall market context.
//
// ============================================================================
NY Key Open Lines (True UTC-4)📌 NY Key Open Lines (UTC-4 Based) — Indicator Description
This TradingView indicator automatically draws horizontal lines at four key New York session opening times:
08:30, 09:30, 10:30, and 18:00 (based on New York time, UTC-4).
✅ Key Features
Auto-draws lines at:
Custom line length per time: You can independently set how far each line extends to the right (in number of bars).
Label above line: Each line shows a clean time label (e.g., 09:30) slightly above the right edge of the line.
Customizable style:
Line color
Line width
Label font size
Label vertical offset
Forex Fire Sling Shot// Forex Fire Sling Shot Strategy
// ============================================================================
//
// This strategy implements a simple yet effective trading system based on EMA
// crossovers with stochastic confirmation. The system identifies high-probability
// entry points for both long and short positions in forex markets.
//
// Features:
// - Uses 15 EMA crossing 50 EMA as primary signal generator
// - Stochastic (5,3,3) provides early confirmation signals
// - Take profit targets set at customizable pip levels (default 35 pips)
// - Visual labels for "Sling Shot" (long) and "Bear Sling" (short) signals
// - Real-time status indicator showing current market bias
// - Alert conditions for easy notification setup
//
// How it works:
// 1. LONG ENTRY ("Sling Shot"): When 15 EMA crosses above 50 EMA
// Stochastic below 20 and moving upward can provide early confirmation
// Target: 25-55 pips (default 35)
//
// 2. SHORT ENTRY ("Bear Sling"): When 15 EMA crosses below 50 EMA
// Stochastic above 80 and moving downward can provide early confirmation
// Target: 25-55 pips (default 35)
//
// DISCLAIMER:
// This script is for educational purposes only. Past performance is not
// indicative of future results. Always test strategies thoroughly before
// trading real capital.
//
// Author: Forex_Fire
// Version: 1.0 (2025-05-06)
You Need To Add My Fire Sling Shot Stochastic to this
asami.factor Buy/Sell Strategy### **1\. Purpose**
The script fires **Buy/Sell signals** based on an EMA golden/death‑cross, but only when **volatility (ATR & Bollinger width), volume, and short‑term momentum** confirm that market conditions are meaningful. It also self‑tracks win‑rate and average P/L, displaying the stats in a table.
### **2\. Input Parameters**
| Category | Variable(s) | Function |
| :---- | :---- | :---- |
| Trend | `emaFast`, `emaSlow` | Determine EMA crossover direction |
| Oscillator | `rsiLength` | Oversold/overbought context only |
| MACD | `macdFast`, etc. | Extra momentum context (not plotted) |
| Volatility | `atrPeriod`, `atrMultiplier`, `bbLength`, `bbMult` | Measure relative ATR & BB width |
| Threshold | `minVolatilityThreshold` | Minimum % width to call vol “high” |
### **3\. Core Logic**
1. **Trend** – `fastMA > slowMA` is up‑trend, else down.
2. **Signal Generation**
* `crossover(fastMA, slowMA)` → **Buy**
* `crossunder(fastMA, slowMA)` → **Sell**
3. **Volatility & Volume Filter**
* Current ATR vs 100‑bar ATR average.
* Bollinger‑band width (% of middle band).
* Volume \> 1.5 × 20‑bar MA.
* If both conditions pass, table shows “HIGH”.
4. **Momentum Filter** – 3‑bar price %‑change must exceed the same threshold.
5. **Stat Tracking** – On every Buy→Sell pair it logs P/L %, counts total & successful signals, and updates accuracy / average profit.
### **4\. Visual Components**
* **Chart** – Plots fast/slow EMA, ATR‑based dynamic bands, upper/lower BB, plus triangle icons at each signal.
* **Table (top‑right)** – Displays volatility status, BB width %, ATR ratio, current or last signal, plus room to add accuracy/avg P/L lines.
### **5\. Alerts**
Three `alertcondition()` calls let you create TradingView alerts for **Buy**, **Sell**, or **any** signal and forward JSON/Webhooks to external trading bots.
### **6\. Usage Notes**
* The multilayer filter aims to fire only when **trend, volatility, and volume align**, reducing crossover whipsaws.
* Treat the built‑in statistics as a **research aid**; refine parameters (`minVolatilityThreshold`, `atrMultiplier`, etc.) per symbol and timeframe.
* Combine with proper risk management (SL/TP, position sizing) before live deployment.
asami.Multifactor + Supertrend AutoTrade## Overview
The Pine Script strategy **“Multifactor + Supertrend AutoTrade”** combines the Supertrend indicator as a dynamic trend filter (using ATR to measure volatility) with a multifactor filter—short-term vs. long-term EMAs, MACD crossover, RSI overbought/oversold levels, and Bollinger Bands extremes—to suppress false signals and capture trend continuations. Buy signals trigger when all multifactor conditions are met **and** price crosses above the Supertrend line; similarly, sell signals trigger when the inverse multifactor conditions are met **and** price crosses below the Supertrend line. Webhook alerts make it ready for seamless automated trading integration.
---
## Component Breakdown
### Supertrend
* Uses ATR to draw a volatility-adjusted trend line on the chart.
* When the line is green and below price → bullish trend; when red and above price → bearish trend.
### EMA (Exponential Moving Average)
* Places more emphasis on recent price data for quicker trend response.
* A crossover of the fast EMA above the slow EMA signals bullish momentum, and vice versa.
### MACD (Moving Average Convergence Divergence)
* Calculates the difference between two EMAs (default 12 and 26) and compares it to a 9-period signal EMA.
* A bullish signal is when the MACD line crosses above its signal line; bearish when it crosses below.
### RSI (Relative Strength Index)
* Oscillator measuring the speed and change of price movements on a 0–100 scale.
* Readings above 70 indicate overbought conditions; below 30 indicate oversold.
### ATR (Average True Range)
* Quantifies market volatility by averaging true price ranges over a set period.
* Often used to size stops or gauge how far price may move.
### Bollinger Bands
* Plots an SMA (default 20) with upper and lower bands offset by ±2 × standard deviation.
* Bands widen during high volatility and contract during low; price touches can indicate extremes.
---
## Signal Logic
1. **Multifactor Filters**
* **`mfBuy`**: Fast EMA > Slow EMA **AND** MACD > Signal **AND** RSI < 30 **AND** Close < Lower BB
* **`mfSell`**: Fast EMA < Slow EMA **AND** MACD < Signal **AND** RSI > 70 **AND** Close > Upper BB
2. **Supertrend Crossover**
* **Buy** when `mfBuy` is true **AND** `ta.crossover(close, st)`
* **Sell** when `mfSell` is true **AND** `ta.crossunder(close, st)`
3. **Automated Orders**
```pine
strategy.entry("Long", strategy.long, comment="Long", alert_message="LONG_SIGNAL")
strategy.entry("Short", strategy.short, comment="Short", alert_message="SHORT_SIGNAL")
```
4. **Alerts**
```pine
alertcondition(buyCond, title="Long Alert", message="{{strategy.order.alert_message}}")
alertcondition(sellCond, title="Short Alert", message="{{strategy.order.alert_message}}")
```
---
## Key Advantages
* **Robust Filtering**: Combining multiple indicators greatly reduces whipsaws compared to single-indicator systems.
* **Dynamic Trend Detection**: Supertrend adapts to changing volatility, helping to enter only in genuine trends.
* **Highly Customizable**: All lookback periods, thresholds, and multipliers are exposed as inputs for fine-tuning.
---
## Parameter Tuning Tips
* **Supertrend ATR & Factor**: Shorter ATR or smaller factor → more frequent signals but potentially more noise; longer/slower for fewer, smoother signals.
* **EMA Periods**: Adjust fast/slow EMA lengths (e.g. 5/20, 10/50) to match the time horizon of your chosen market.
* **RSI Thresholds**: You can shift from classic 70/30 to tighter bands (e.g. 60/40) if you want earlier signals.
* **Bollinger Settings**: Tweaking the standard-deviation multiplier (1.5–2.5) changes how “extreme” price must be to qualify.
---
## Risk Management & Best Practices
* **Backtest & Forward Test**: Validate on both historical data and live demo before going live.
* **Latency Considerations**: Account for webhook and broker execution delays—consider external order management logic if needed.
* **Position Sizing**: Use the built-in `% of equity` sizing (`default_qty_type=strategy.percent_of_equity`) or your preferred money-management rules.
CK Trader Pro sessions plus LSMALSMA Multi-Timeframe Indicator
The LSMA Multi-Timeframe Indicator is a powerful tool designed to enhance trend analysis by incorporating Least Squares Moving Average (LSMA) calculations across multiple timeframes. This indicator displays LSMA values from the 1-minute, 5-minute, 15-minute, and 1-hour charts, allowing traders to gain deeper insight into the overall trend structure and potential areas of support or resistance.
By visualizing LSMA across different timeframes, traders can:
✅ Identify Key Support & Resistance – Higher timeframe LSMA levels often act as strong barriers where price reacts.
✅ Enhance Trend Confirmation – A confluence of LSMAs pointing in the same direction strengthens confidence in a trend.
✅ Spot Reversals & Trend Shifts Early – Watching lower timeframe LSMAs in relation to higher ones can signal potential shifts before they fully develop.
This indicator is ideal for traders looking to align short-term entries with longer-term trend dynamics, providing an edge in both intraday and swing trading strategies
CK Session Tracker – Global Market Session Levels
The CK Session Tracker is a precision-built TradingView indicator designed to map out the most critical times in the market — the Asia, EU, and US sessions. This tool automatically plots the open, close, high, and low of each major session, giving traders a crystal-clear view of market structure, key liquidity zones, and session-based momentum shifts.
🔍 Features:
🕒 Automatic Session Markers – Visualize the exact open and close times of Asia, Europe, and US sessions directly on your chart.
📈 Session Highs & Lows – Instantly spot where price reacted during each session, helping identify breakouts, reversals, or liquidity grabs.
🌐 Global Market Awareness – Designed to adapt to futures, forex, and crypto across all time zones.
🎯 Smart Trading Zones – Use session data to pinpoint high-probability setups during overlaps or session handoffs.
Perfect for intraday traders, ICT strategy followers, and anyone focused on session-based movement. The CK Session Tracker gives you the edge of institutional timing — all on one chart..
Boolean RSI Trend Indicator (Turn + 50 Filter)Indicates when there is an alignment on multi RSI, i.e. 3, 7, 14, 21 and 50.
Multi RSI (3,7,14,21,50)Gives multi RSI on the same indicator. Very visual to determine weather in up or down trend.