Previous Day High/Low/Close - Static Daily LinesKHAN H/L/C
its showing the HIGH,LOW and Closing Price of each previous day
指標和策略
Engulfing Pattern LineThe "Engulfing Pattern Line" is a custom TradingView indicator designed to identify and visualize engulfing candlestick patterns on a price chart, which are commonly used in technical analysis to predict potential reversals or continuations in market trends. This indicator specifically detects bullish and bearish engulfing patterns and draws a line extending from the engulfed candle for a user-defined number of candles.
BG ema mtfBG ema mtf – Multi-Timeframe Sentiment Dashboard
The BG EMA MTF indicator provides a quick overview of the overall market trend by analyzing 5 Exponential Moving Averages (EMAs) across 5 different timeframes. It calculates the direction of each EMA within each timeframe and produces a global sentiment score based on the number of bullish or bearish signals.
Key Features:
Multi-timeframe analysis (1min to 30min)
EMAs: 5, 20, 50, 70, and 200
Global sentiment score (Bullish / Bearish / Neutral)
Fully customizable visual dashboard with adjustable colors and text size
Suitable for scalping, day trading, or swing trading
This tool helps traders quickly assess market momentum and structure using reliable EMA trend signals.
You can tailor it to different instruments such as crypto, forex, or equities depending on your strategy.
SOFR Swap Spreads (2Y, 5Y, 10Y, 30Y)This indicator models real-time SOFR swap spreads across 2Y, 5Y, 10Y, and 30Y maturities by comparing SOFR Swapnote Futures (ICEEUR) to corresponding Treasury yields (TVC). It calculates the spread for each tenor and overlays a 90-day moving average as a fair value model, with ±1 standard deviation bands.
Swap spreads are critical signals for funding stress, liquidity dislocations, and systemic risk, especially during events like Treasury General Account (TGA) refills or changes in repo market conditions.
Blue = 2Y, Orange = 5Y, Green = 10Y, Purple = 30Y
When spreads deviate sharply below the model line, it may indicate tightening liquidity or risk-off behavior
When spreads widen, it can signal funding relief or macro shifts
Use this to monitor stress in the yield curve, repo market, and broader macro landscape.
Gann Ultimate Time-Price Squares Method V 1.0This Script is an outcome of my Passion towards Gann Theory and his Methodology towards Trading.
The Script is still Evolving.So wait for more updates....
# Complete Trading Guide: Gann Time-Price Squares Indicator
## 🎯 Core Trading Philosophy
**Gann's Key Principle**: "When time and price come together, a change in trend occurs."
Your indicator identifies these critical moments where **Time = Price**, creating high-probability trading opportunities.
---
## 📊 Setup & Configuration
### Recommended Settings by Timeframe
| Timeframe | Pivot Lookback | Min Price Move | Tolerance | Use Case |
|-----------|---------------|----------------|-----------|----------|
| **1-5 min** | 5-8 bars | 0.5-1.0 | 1.0-2.0 | Scalping |
| **15-30 min** | 8-12 bars | 1.0-3.0 | 1.5-2.5 | Day Trading |
| **1-4 hour** | 10-15 bars | 2.0-5.0 | 2.0-3.0 | Swing Trading |
| **Daily** | 15-25 bars | 5.0-20.0 | 3.0-5.0 | Position Trading |
### Initial Setup Steps
1. **Add indicator** to your chart
2. **Set lookback period** based on your timeframe
3. **Adjust tolerance** - start with 2.0 and fine-tune
4. **Enable all visualizations** initially
5. **Position info table** where it doesn't block price action
---
## 🚀 Trading Strategies
### Strategy 1: Square Completion Reversal Trading
#### **Long Entry Setup**
```
CONDITIONS:
✅ Bullish square completes (green box appears)
✅ Info table shows "✅ COMPLETED" status
✅ Price bounces off square's bottom edge
✅ Volume increases on bounce
✅ RSI < 30 (oversold confirmation)
ENTRY: Market buy when price breaks above square's top edge
STOP: Below square's bottom edge (-2 ATR)
TARGET: Next resistance level or 1:2 Risk/Reward
```
#### **Short Entry Setup**
```
CONDITIONS:
✅ Bearish square completes (red box appears)
✅ Info table shows "✅ COMPLETED" status
✅ Price rejects square's top edge
✅ Volume increases on rejection
✅ RSI > 70 (overbought confirmation)
ENTRY: Market sell when price breaks below square's bottom edge
STOP: Above square's top edge (+2 ATR)
TARGET: Next support level or 1:2 Risk/Reward
```
### Strategy 2: Gann Angle Trend Following
#### **1x1 Angle (45°) - The Master Angle**
- **Most Important**: This is Gann's primary trend line
- **Bullish**: Price above 1x1 = uptrend intact
- **Bearish**: Price below 1x1 = downtrend intact
- **Break**: 1x1 angle break = major trend change
#### **Multi-Angle Confluence Trading**
```
STRONG BULLISH SIGNAL:
✅ Price above 1x1 angle (45°)
✅ Bouncing off 2x1 angle (support)
✅ Volume increasing
✅ Multiple angles pointing up
ENTRY: Buy on 2x1 angle bounce
STOP: Below 1x2 angle
TARGET: Next angle resistance
```
### Strategy 3: Projection Trading (Forming Squares)
#### **Anticipation Strategy**
```
SETUP IDENTIFICATION:
👀 Info table shows "⚡ FORMING" status
👀 Progress bar > 70%
👀 P/T Ratio approaching 1.00
👀 Price approaching projected completion zone
ENTRY PREPARATION:
- Set alerts for projected completion levels
- Prepare for reversal at projection zone
- Watch for volume confirmation
- Monitor momentum indicators
```
## 📈 Step-by-Step Trading Process
### Phase 1: Market Analysis (Before Trading)
1. **Check Market Trend**: Look at info table trend indicator
2. **Identify Active Pivots**: Note last significant high/low
3. **Assess Volatility**: High volatility = larger stops needed
4. **Review Completed Squares**: These become support/resistance zones
### Phase 2: Trade Setup Identification
1. **Monitor Forming Squares**: Watch progress bars in info table
2. **Check Gann Angles**: Are they supporting or opposing your bias?
3. **Confirm with Volume**: Look for volume spikes at key levels
4. **Set Alerts**: Use TradingView alerts for completion zones
### Phase 3: Trade Execution
1. **Wait for Confirmation**: Don't trade on projections alone
2. **Enter on Breakout**: Price breaking square boundaries
3. **Set Stops Immediately**: Use square edges as stop levels
4. **Scale Out**: Take partial profits at angle intersections
### Phase 4: Trade Management
1. **Trail Stops**: Use Gann angles as trailing stop levels
2. **Monitor Progress**: Watch for new square formations
3. **Exit Signals**: New squares in opposite direction
4. **Review Performance**: Analyze win/loss against square accuracy
---
## 🎯 High-Probability Setups
### Setup A: Double Confirmation
```
BULLISH EXAMPLE:
1. Bullish square completes at major support
2. Price bounces off 1x1 Gann angle
3. Volume surge confirms reversal
4. RSI divergence present
PROBABILITY: 75-80%
RISK/REWARD: 1:3 typical
```
### Setup B: Angle Breakout
```
BEARISH EXAMPLE:
1. Price breaks below 1x1 angle
2. Bearish square forming below break
3. Multiple angles now resistance
4. Volume confirms breakdown
PROBABILITY: 70-75%
RISK/REWARD: 1:2.5 typical
```
### Setup C: Time Cycle Convergence
```
REVERSAL EXAMPLE:
1. Square completion at time cycle high/low
2. Multiple Gann angles converging
3. Momentum divergence
4. Volume climax
PROBABILITY: 80-85%
RISK/REWARD: 1:4 possible
```
---
## ⚠️ Risk Management Rules
### Position Sizing
- **Conservative**: 1-2% risk per trade
- **Aggressive**: 2-3% risk per trade
- **Never exceed**: 5% total portfolio risk
### Stop Loss Guidelines
- **Completed Squares**: Opposite edge + 1 ATR
- **Gann Angles**: Below/above angle + 0.5 ATR
- **Projections**: 50% of square height
### Take Profit Targets
- **Target 1**: Next Gann angle (1:1 R/R)
- **Target 2**: Next completed square (1:2 R/R)
- **Target 3**: Major S/R level (1:3 R/R)
---
## 📊 Reading the Info Table for Trading
### Market Trend Section
```
📈 BULLISH → Look for long setups
📉 BEARISH → Look for short setups
➡️ NEUTRAL → Wait for direction
```
### Volatility Status
```
🔥 HIGH → Larger stops needed
⚡ ELEVATED → Normal stops
😴 LOW → Tighter stops possible
📊 NORMAL → Standard approach
```
### Square Progress Monitoring
```
✅ COMPLETED → Ready to trade
⚡ FORMING → Prepare for setup
🔥 ACTIVE → Monitor closely
⏳ WAITING → No immediate action
```
### P/T Ratio Interpretation
```
🎯 Perfect (0.8-1.2) → High probability setup
⚡ Good (0.6-1.4) → Moderate probability
⚠️ Watch (outside range) → Lower probability
```
---
## 🔄 Common Trading Scenarios
### Scenario 1: Trend Continuation
**Setup**: Price pulls back to completed square in uptrend
**Action**: Buy at square support with 1x1 angle confirmation
**Management**: Trail stop below each new square formation
### Scenario 2: Reversal Trading
**Setup**: Multiple squares complete at major S/R
**Action**: Fade the move when price rejects square edges
**Management**: Quick profits, tight stops
### Scenario 3: Breakout Trading
**Setup**: Price consolidates in square, then breaks out
**Action**: Trade breakout direction with volume confirmation
**Management**: Use opposite square edge as stop
---
## 📱 Alert Setup Recommendations
### Critical Alerts
1. **Square Completion**: "Gann Square Completed - Check for reversal"
2. **1x1 Angle Break**: "Master angle broken - Trend change possible"
3. **Projection Reached**: "Forming square at 90% - Prepare for reversal"
4. **Multi-Angle Touch**: "Price at angle confluence - High probability setup"
---
Remember: **Gann analysis is both art and science**. The indicator provides the mathematical framework, but successful trading requires patience, discipline, and continuous learning. Start with small positions while you master the methodology!
THE HISTORY By [VXN]
THE HISTORY By - Monthly Seasonal Analysis Indicator
Development Status: This indicator is currently in the development phase and is not yet finished. Features and functionality may change as development continues.
Overview:
This indicator provides comprehensive historical analysis of monthly price patterns, designed to help traders identify recurring seasonal behaviors and market tendencies for the current month across multiple years of data.
Key Features:
Historical Data Analysis:
- Analyzes up to 10 years of historical performance for the current month
- Calculates monthly returns, win rates, and statistical metrics
- Tracks maximum drawdowns and runups for risk assessment
- Requires daily timeframe for accurate monthly calculations
Pattern Recognition:
- Implements a three-period classification system that breaks each month into segments
- Uses visual indicators (🟢🔴🟡) to represent bullish, bearish, and neutral periods
- Helps identify recurring intra-month behavior patterns
Statistical Display:
- Presents historical data in an organized table format
- Shows year-by-year performance comparisons
- Calculates average returns, best/worst performance, and confidence levels
- Displays overall market bias (bullish/bearish tendency) for the current month
Dynamic Zone Overlays:
- Projects Fibonacci-based support/resistance levels based on historical volatility
- Adjusts zone positioning based on the month's historical bias
- Provides visual reference points for potential price targets or reversal areas
Practical Applications:
- Seasonal trading strategy development
- Risk management through historical context
- Understanding market cyclicality and recurring patterns
- Educational tool for studying price behavior over time
Note: This indicator is designed for analysis and education purposes, helping traders understand historical market patterns rather than providing direct trading signals. The data should be used in conjunction with other forms of analysis and proper risk management. As this is still under development, please expect updates and refinements to functionality.
Custom Daily Session Zones by Koenigsegg🟣 Overview
The Custom Daily Session Zones indicator brings full control over your trading sessions by letting you define, visualize, and switch between market hours with ease. Whether you want a unified session for all active days or precise, day-by-day configurations, this tool keeps your chart clean and your analysis swift.
🟣 Exact Market Openings at Your Fingertips
Hover over the info icon next to Common Session Time to reveal the exact start times of the three largest trading hubs—New York, London, and Tokyo—in both winter and summer schedules. No more digging through timezone conversions: it’s all right there in a concise tooltip.
🟣 Per-Day Customization
• Day toggles let you enable or disable individual weekdays with a single click.
• Color pickers for each day ensure your session zones stand out on the chart exactly the way you like.
• Switch each day on or off independently—ideal when you’re focusing on specific markets or running scenario analyses.
🟣 Common Session Mode
Engage Common Session Time to apply a single session setting across all toggled days, past and present. Perfect for deep-history analysis: flip on your selected weekdays once, then scroll back years without reconfiguring every date. When you move into a new trading day, simply toggle that day off or on—no manual time edits required.
🟣 Pro Tip: Visualize Your Trading Day
For a full-day review—from open to close—use the tooltip to confirm session boundaries before you dive into your chart analysis. Having precise session markers handy lets you swiftly assess each trading day’s structure, spot patterns, and refine your strategy without losing momentum.
🟣 Disclaimer
This script is provided for educational and illustrative purposes only. It is not financial or trading advice, nor a recommendation to buy or sell any asset. Always conduct your own research and consult a professional before making any trading decisions.
GX Credit Spread SignalThe GX Credit Spread Signal is an advanced indicator designed for traders who trade options strategies on the SPX index, especially using vertical credit spreads. It combines traditional technical analysis with volatility and option pricing concepts to provide relevant signals and projections on the chart.
Main features:
Trend analysis: Uses opening gap, position relative to VWAP and simple moving average (SMA 50) to indicate bullish or bearish bias right after the first 15-minute candle.
Safe range projection: Calculates a range based on the ATR (Average True Range) multiplied by a safety factor, suggesting potential strikes for credit spreads.
Quantitative estimates:
Calculates the estimated delta of options via the Black-Scholes formula approximation.
Estimated probability of expiring out of the money (OTM).
Chart visualizations: Displays projected ATR lines, previous day's levels (high, low, close) and an informative panel with strikes, delta, OTM probability, ATR and VWAP data.
Configurable alerts: Notifications for detected bullish or bearish bias, helping the trader to identify opportunities quickly.
This indicator is ideal for those who day trade with SPX options, facilitating decision-making by combining technical analysis, volatility and option probabilities in one place.
نصي البرمجي//
@version
=5
indicator("Multi Indicator Template - Stoch, MACD, Donchian, SMI, EMA, Volume", overlay=true)
// 1. EMA (متوسط متحرك أسي)
show_ema = input(true, title="Show EMA")
ema_length = input.int(14, title="EMA Length")
ema_val = ta.ema(close, ema_length)
plot(show_ema ? ema_val : na, color=http://color.blue, title="EMA")
// 2. Donchian Trend Ribbon
show_donchian = input(true, title="Show Donchian Trend Ribbon")
donchian_length = input.int(20, title="Donchian Length")
donchian_upper = ta.highest(high, donchian_length)
donchian_lower = ta.lowest(low, donchian_length)
donchian_mid = (donchian_upper + donchian_lower) / 2
donchian_trend = close > donchian_mid ? 1 : close < donchian_mid ? -1 : 0
bgcolor(show_donchian ? (donchian_trend == 1 ? color.new(http://color.green, 85) : donchian_trend == -1 ? color.new(http://color.red, 85) : na) : na, title="Donchian Trend Ribbon")
// 3. Stochastic Oscillator
show_stoch = input(true, title="Show Stochastic")
stoch_k_len = input.int(14, title="Stoch K Length")
stoch_d_len = input.int(3, title="Stoch D Length")
k = ta.stoch(close, high, low, stoch_k_len)
d = ta.sma(k, stoch_d_len)
plot(show_stoch ? k : na, color=color.purple, title="Stoch %K")
plot(show_stoch ? d : na, color=http://color.orange, title="Stoch %D")
hline(20, "Oversold", color=color.gray)
hline(80, "Overbought", color=color.gray)
// 4. MACD
show_macd = input(true, title="Show MACD")
= ta.macd(close, 12, 26, 9)
macd_hist_plot = plot(show_macd ? hist : na, color=http://color.red, style=http://plot.style_columns, title="MACD Histogram")
macd_line_plot = plot(show_macd ? macdLine : na, color=http://color.blue, title="MACD Line")
signal_line_plot = plot(show_macd ? signalLine : na, color=http://color.orange, title="Signal Line")
// 5. SMI (Stochastic Momentum Index)
show_smi = input(true, title="Show SMI")
smi_k_len = input.int(14, title="SMI K Length")
smi_d_len = input.int(3, title="SMI D Length")
smi_smooth = input.int(3, title="SMI Smooth")
smi = ta.sma(ta.stoch(close, high, low, smi_k_len), smi_smooth)
smi_signal = ta.sma(smi, smi_d_len)
plot(show_smi ? smi : na, color=color.fuchsia, title="SMI")
plot(show_smi ? smi_signal : na, color=color.teal, title="SMI Signal")
hline(-40, "SMI Oversold", color=http://color.red)
hline(40, "SMI Overbought", color=http://color.green)
// 6. Volume (أحجام التداول)
show_vol = input(true, title="Show Volume")
plot(show_vol ? volume : na, color=color.gray, style=http://plot.style_columns, title="Volume")
// إشارات الشراء حسب شروطك (تشبع بيعي SMI أقل من -40، الدونشيان أخضر، ستوكاستك أقل من 20، خط MACD ليس أسفل الهيستوجرام)
buy_signal = smi < -40 and donchian_trend == 1 and k < 20 and macdLine >= hist
plotshape(buy_signal, style=shape.triangleup, location=location.belowbar, color=http://color.green, size=size.small, title="Buy Signal")
Automatic Ryze Zones v. 2.6aThis indicator has new QOL updates and also integrates the RMech model. Learn more by looking up "Bonkanomics".
Gabriel's Relative Strength IndexGabriel’s RSI—The Reinvention of Relative Strength
Not your average RSI.
This is a fully reengineered Relative Strength Index that merges the power of advanced signal processing, adaptive smoothing, volume dynamics, and intelligent divergence detection into a single, modular toolkit designed for precision trading across all markets.
Whether you’re scalping crypto, swing trading equities, or dissecting futures contracts—Gabriel’s RSI adapts to your strategy with unrivaled control and clarity.
1. RSI Settings
RSI Length (Jurik): Set to 51 by default to mimic a 21-period standard RSI when Jurik smoothing is applied. Adjust lower (e.g., 22) to mimic a 9-period RSI.
RSI Source: The default is hlc3 for smoother RSI inputs. Can be changed to any price-based series (close, open, etc.) for customization.
2. RSI Smoothing Options
MA Type: Smoothing applies to both RSI and its MA overlay simultaneously. I used to use the 56 EMA RSI, and it works well too.
JMA: Best for adaptive recursive smoothing. A power of 2 and a phase of 50 are used.
T3: Smooth and lag-reduced, suitable for trend detection. The alpha is 0.7.
SMA + Bollinger Bands: Adds deviation-based envelopes for volatility spotting.
MA Length: Affects how smooth or reactive the RSI signal is.
BB StdDev: Only relevant if BBs are used. Controls bandwidth for overbought/oversold zones.
3. MACD Settings
Fast/Slow Length: Defaults (21/81) optimized for smoother MACD with SMA or T3. For Algo trading, EMA/JMA is best.
Signal Length: Shorter (e.g., 2) gives more reactive crossover signals, it can be increased.
Source: Default is close. Close works best for the settings I input.
MA Types: JMA and EMA reduce noise and increase signal generation. Select SMA for simplicity or T3 for trend-following.
Histogram: Bar colors signal strength and trend of MACD directly on your chart.
4. Directional Movement Index (DMI)
ADX Smoothing: High values (e.g., 100) offer strong trend confirmation with Hann Window smoothing.
DI Length: Affects DI+/- sensitivity. 100 ADX - 12 DI or 15 ADX - 35 DI are suggested, the latter for quicker boot time, as 100 bars is quite long.
Smoothing Type: Choose Hann Window for refined smoothing; RMA (SMMA) for simplicity.
Volatility Type: ATR includes gaps; ADR is useful for gapless strategies.
Plotted as area fills, 0 to 100 scaled.
5. Volume Z-Score
%R Length: Normalizes volume to percentile range (73 swing, 112 exhaustion).
Z-Score Lengths: Compares short-term and long-term volume trends with Z-scores of volume.
Fast Z-Score < Slow Z-Score = Gives a Volume Squeeze.
Fast MA > Slow MA = Bullish Volume Divergence; volume has been fired. Not via Z-score, but instead via SMA, ALMA, and RMA of volume.
WPR Volume: Weighted %R used to highlight exhaustion/pivot points.
Plot volume bars after a volume squeeze has been fired; if bars aren't plotted, then it's under squeeze. Backtest on ES1! Prove it's good for catching bottoms below 15 minutes as well.
6. Divergence Engine
Pivot Settings: Pivot Period (12), Divergence minval Lookback (5), and max Lookback Bars (100) control sensitivity. Works well on any asset class; these are the optimal settings for the RSI.
Source Options: RSI, MACD, ADX, DI difference, or Volume %R.
Divergence Type:
Regular: Classic reversal signals.
Hidden: Continuation signals.
Heikin Ashi Mode: Enables use of HA candles on normal charts for smoother pivots. May distort values if your chart is H.A. so leave it unchecked then.
7. Squeeze Momentum (SQZMOM)
Squeeze Types:
Wide (Black): Regular compression
Normal (Red), Regular Squeeze
Narrow (Yellow), Golden Squeeze
Very Narrow (Purple) Extreme compression
Fired (Green): Breakout detected
Plotted as circles on the bottom of my indicator.
Momentum Bar Colors:
Cyan: Rising momentum
Blue: Pullback within uptrend
Red: Falling momentum
Yellow: Correction within downtrend
Reversal Lines: Dashed lines indicate momentum crossing its Jurik MA (DM-Style Pivots).
Plotted as squares on the top of my indicator.
8. Rate of Change (RoC)
RoC of Momentum: EMA-smoothed RoC on momentum for leading signals. Double smoothed, once and then another time for smoother signals.
Signal Line: JMA used to filter noise and generate reversal signals.
Crossovers: Bullish/bearish signals based on RoC vs signal line are plotted as triangles directly on your chart.
Optimized: Backtested for short-term setups like 1H or faster. Works on Daily timeframes as well for Futures.
9. Multi-Timeframe Squeeze Settings
Each timeframe (Hourly, 4H, Daily, Weekly, Monthly) has:
Reversal Toggle: Enables dashed line DM-Style Pivots on crossovers.
MA Length: For Jurik MA smoothing on momentum.
BB/KC Thresholds: Define squeeze sensitivity per timeframe. A shorter BB/KC length, 17-14-12, responds better on lower timeframes.
Momentum Length: Tailors oscillator responsiveness; 20 is ideal.
10. BB Std. Deviation Scaling
Low-Pass Super Smoother : Smooths (True Range) noise for BBs.
High-Pass Butterworth : Extracts cycles for BB Stdv. blend.
Root Mean Squared : Dynamic BB width adjustment based on market activity.
11. Alerts
RSI: Overbought/oversold reversals. Several types.
MACD: Histogram shift through zero line.
DMI/ADX: Crossovers and strength conditions. The 17 key level is used for the ADX.
Volume: Smart Money alerts on low-volume zones. May concentrate on ICT sessions.
Squeeze: Alerts on all 5 squeeze states.
Momentum: Crosses and reversals.
RoC: Bullish and bearish crosses.
Divergences: Regular, hidden, combined.
12. Visual Output Summary
RSI Line + MA/BBs
MACD Histogram Bar Colors
DMI/ADX as area fills
Volume %R columns
Squeeze Momentum Shapes and Dots
RoC Crossover Arrows
DM-style Breakout Pivots
Divergence Lines and Labels
Best Practices
Watch the slope of the RSI for pullbacks on a strong trend. Combine it with squeeze for exit timing.
Combine RSI Divergence with MACD histogram cross and Squeeze firing for precise entry.
Use Volume Z-Score to filter for institutional activity, and enter Long. Watch for reversals as well.
Watch RoC crossovers for fast, leading signals.
Enable Reversal Lines on 1H+ charts for breakout or breakdown pivots.
Use multi-timeframe thresholds for swing confirmation. The TFs I use the most are 2-5-15 minutes for futures and swinging with 1 hour daily and weekly. Those are the TFs I backtested.
Fast Fourier Transform [ScorsoneEnterprises]The SCE Fast Fourier Transform (FFT) is a tool designed to analyze periodicities and cyclical structures embedded in price. This is a Fourier analysis to transform price data from the time domain into the frequency domain, showing the rhythmic behaviors that are otherwise invisible on standard charts.
Instead of merely observing raw prices, this implementation applies the FFT on the logarithmic returns of the asset:
Log Return(𝑚) = log(close / close )
This ensures stationarity and stabilizes variance, making the analysis statistically robust and less influenced by trends or large price swings.
For a user-defined lookback window 𝑁:
Each frequency component 𝑘 is computed by summing real and imaginary projections of log-returns multiplied by complex exponential functions:
𝑒^−𝑖𝜃 = cos(𝜃)−𝑖sin(𝜃)
where:
θ = 2πkm / N
he result is the magnitude spectrum, calculated as:
Magnitude(𝑘) = sqrt(Real_Sum(𝑘)^2 + Imag_Sum(𝑘)^2)
This spectrum represents the strength of oscillations at each frequency over the lookback period, helping traders identify dominant cycles.
Visual Analysis & Interpretation
To give traders context for the FFT spectrum’s values, this script calculates:
25th Percentile (Purple Line)
Represents relatively low cyclical intensity.
Values below this threshold may signal quiet, noisy, or trendless periods.
75th Percentile (Red Line)
Represents heightened cyclical dominance.
Values above this threshold may indicate significant periodic activity and potential trend formation or rhythm in price action.
The FFT magnitude of the lowest frequency component (index 0) is plotted directly on the chart in teal. Observing how this signal fluctuates relative to its percentile bands provides a dynamic measure of cyclical market activity.
Chart examples
In this NYSE:CL chart, we see the regime of the price accurately described in the spectral analysis. We see the price above the 75th percentile continue to trend higher until it breaks back below.
In long trending markets like NYSE:PL has been, it can give a very good explanation of the strength. There was confidence to not switch regimes as we never crossed below the 75th percentile early in the move.
The script is also usable on the lower timeframes. There is no difference in the usability from the different timeframes.
Script Parameters
Lookback Value (N)
Default: 30
Defines how many bars of data to analyze. Larger N captures longer-term cycles but may smooth out shorter-term oscillations.
SnD SCANNER V 1.0This is a test script, will update on going.
This Indicator will help you find the unfilled order in the market.
Such as RBR DBR or DBD RBD.
Still on going test, so I will update this on the run.
Moving Average SixerMoving Average Sixer is an indicator that displays up to Six Moving Averages on your chart. Moving averages of varying lengths can be used to compare long-term and short-term trends and attempt to predict possible chart movements based on its past performance.
LinearRegfressionL'indicatore fornisce una semplice regressione lineare dei valori High, Low, Open, Close
[TH] Advanced SMC/ICT Strategy (Condark2)### **Indicator Settings (English)**
This script is designed to analyze market structure and identify trading opportunities based on Smart Money Concept (SMC) and Inner Circle Trader (ICT) principles. Users can customize the following settings:
#### **Timeframe Settings**
* **Higher Timeframe (HTF) - For Main Structure:** Sets the higher timeframe used to analyze the main market structure (e.g., the primary trend). The default is 5 minutes.
* **Lower Timeframe (LTF):** This is the current chart timeframe you are on, used for more precise entry timing.
---
#### **Market Structure Settings**
* **Swing Lookback (HTF/LTF):** Defines the number of candles used to identify Swing Highs and Swing Lows on both the HTF and LTF.
* **Break of Structure (BOS) Line Color:** Sets the color for lines indicating the price has broken the previous structure in the direction of the trend.
* **Change of Character (CHoCH) Line Color:** Sets the color for lines indicating a potential change in the market trend.
---
#### **Point of Interest (POI) Settings**
* **Order Block Color (Bullish/Bearish):** Sets the color for "Order Block" zones (areas with anticipated significant buy or sell orders) for both uptrends and downtrends.
* **Show Premium/Discount Zones:** Toggles the display of expensive (Premium) and cheap (Discount) price zones, calculated from the last swing, to aid in deciding whether to look for buy or sell setups.
---
#### **Trade & Risk Management Settings**
* **Entry Type:** This is a key setting that defines your entry strategy. There are four options:
1. **Confirmation Candle:** Waits for a confirmation candle to form within the Order Block before entering (most conservative).
2. **Instant OB Edge Entry (Limit Entry):** Sets a limit order to enter as soon as the price touches the edge of the Order Block.
3. **50% of OB Entry (Aggressive Limit):** Sets a limit order at the midpoint of the Order Block for a better price, but with higher risk.
4. **Confirmation + Candle SL (Aggressive):** Waits for a confirmation candle and then places the Stop Loss right at the wick of that candle. This is the most aggressive entry style.
* **Stop Loss Placement:** Determines where the stop loss is placed, based on the LTF Order Block, the last LTF swing, or the last HTF swing. (This is ignored if using the "Aggressive SL" entry type).
* **Take Profit Mode:** Sets the profit target, which can be an HTF Liquidity level or a fixed Risk/Reward Ratio from 1R to 5R.
* **SL Buffer (multiplied by ATR):** Adds a small buffer to the Stop Loss, calculated using the ATR, to help prevent being stopped out by minor volatility.
* **Number of Trade History to Display:** Sets how many past trades are shown on the performance dashboard.
---
#### **Display Settings**
* **Enable Alerts:** Toggles alerts for new trade signals and when a trade is closed (for either a win or a loss).
***
### **คำอธิบายการตั้งค่า (ภาษาไทย)**
สคริปต์นี้ถูกออกแบบมาเพื่อวิเคราะห์โครงสร้างตลาดและหาจังหวะเข้าเทรดตามหลักการ Smart Money Concept (SMC) และ Inner Circle Trader (ICT) โดยผู้ใช้สามารถปรับแต่งค่าต่างๆ ได้ดังนี้
#### **การตั้งค่า Timeframe**
* **Higher Timeframe (HTF) - สำหรับโครงสร้างหลัก:** ใช้สำหรับกำหนดไทม์เฟรมที่ใหญ่กว่าเพื่อวิเคราะห์โครงสร้างตลาดหลัก (เช่น แนวโน้มหลัก) ค่าเริ่มต้นคือ 5 นาที
* **Lower Timeframe (LTF):** คือไทม์เฟรมปัจจุบันของกราฟที่คุณเปิดอยู่ ใช้สำหรับหาจังหวะการเข้าเทรดที่ละเอียดขึ้น
---
#### **การตั้งค่าโครงสร้างตลาด (Market Structure)**
* **ระยะมองหา Swing (HTF/LTF):** กำหนดจำนวนแท่งเทียนที่จะใช้ในการระบุจุดสูงสุด (Swing High) และจุดต่ำสุด (Swing Low) ทั้งในไทม์เฟรมหลักและไทม์เฟรมปัจจุบัน
* **สีเส้น Break of Structure (BOS):** กำหนดสีของเส้นที่บ่งบอกว่าราคาสามารถทะลุโครงสร้างเดิมไปในทิศทางเดียวกับแนวโน้ม
* **สีเส้น Change of Character (CHoCH):** กำหนดสีของเส้นที่บ่งบอกว่าราคาเริ่มมีการเปลี่ยนทิศทางของแนวโน้ม
---
#### **การตั้งค่าจุดสนใจ (Point of Interest)**
* **สี Order Block (Bullish/Bearish):** กำหนดสีของโซน "Order Block" (โซนที่คาดว่ามีคำสั่งซื้อขายรออยู่) สำหรับแนวโน้มขาขึ้นและขาลง
* **แสดงโซน Premium/Discount:** เปิด/ปิดการแสดงโซนราคาแพง (Premium) และราคาถูก (Discount) ซึ่งคำนวณจาก Swingล่าสุด เพื่อช่วยในการตัดสินใจว่าควรหาจังหวะซื้อหรือขาย
---
#### **การตั้งค่าการเข้าเทรดและจัดการความเสี่ยง**
* **รูปแบบการเข้าเทรด (Entry Type):** เป็นหัวใจสำคัญในการกำหนดกลยุทธ์ มี 4 รูปแบบให้เลือก:
1. **ยืนยันด้วยแท่งเทียน (Confirmation):** รอแท่งเทียนยืนยันการกลับตัวในโซน Order Block ก่อนเข้าเทรด (ปลอดภัยที่สุด)
2. **เข้าที่ขอบ OB ทันที (Limit Entry):** ตั้งคำสั่งรอเข้าเทรดที่ขอบของโซน Order Block ทันทีเมื่อราคาวิ่งเข้ามา
3. **เข้าที่ 50% ของ OB (Aggressive Limit):** ตั้งคำสั่งรอเข้าเทรดที่จุดกึ่งกลางของโซน Order Block เพื่อให้ได้ราคาที่ดีขึ้นแต่เสี่ยงกว่า
4. **ยืนยัน + SL ที่แท่งเทียน (Aggressive):** รอแท่งเทียนยืนยัน แล้ววางจุดตัดขาดทุน (Stop Loss) ไว้ที่ปลายไส้ของแท่งเทียนนั้นทันที เป็นรูปแบบที่ดุดันและมีความเสี่ยงสูงสุด
* **รูปแบบการวาง Stop Loss:** กำหนดตำแหน่งของจุดตัดขาดทุน โดยอิงจาก Order Block, Swing ล่าสุดใน LTF, หรือ Swing ล่าสุดใน HTF (ตัวเลือกนี้จะถูกข้ามไปหากเลือกเข้าเทรดแบบ "Aggressive SL")
* **รูปแบบ Take Profit:** กำหนดเป้าหมายการทำกำไร โดยสามารถเลือกเป็นจุดสภาพคล่อง (Liquidity) ใน HTF หรือกำหนดเป็นอัตราส่วนความเสี่ยงต่อผลตอบแทน (Risk/Reward Ratio) ตั้งแต่ 1R ถึง 5R
* **ระยะห่าง SL (คูณด้วย ATR):** เพิ่มระยะห่างของ Stop Loss เล็กน้อยโดยคำนวณจากค่า ATR เพื่อป้องกันการถูกเกี่ยว SL โดยไม่จำเป็น
* **จำนวนประวัติการเทรดที่จะแสดง:** กำหนดจำนวนผลการเทรดย้อนหลังที่จะแสดงบน Dashboard
---
#### **การตั้งค่าการแสดงผล**
* **เปิดใช้งานการแจ้งเตือน:** สามารถเปิด/ปิดการแจ้งเตือนเมื่อมีสัญญาณการเข้าเทรด หรือเมื่อการเทรดปิดลง (ทั้งกำไรและขาดทุน)
AK 5 ema5 MA's provided for better trade happy trading you can change moving average according to your need or hide as per you require
Daily 10-ATR & %ATR (Top Right)Better version to be able to see ATR and the percentage it has moved at a glance, no charting just the numbers
AK - Trend RibbonTrade on Trade ribbon by AK, keep setting on higher timeframe for example 30 minutes and trade on 5 minutes, entry only on pullback or a perfect reversal.. happy trading
EMAs + LSMA Cross Alert (Mejorado)his indicator is designed to identify buy and sell signals based on the behavior of multiple exponential moving averages (EMAs) and a Least Squares Moving Average (LSMA). It includes 5 EMAs and one LSMA, with visual and alert features.
📌 Components:
EMA 4 (purple)
EMA 9 (Fuchsia)
EMA 21 (blue)
EMA 50 (Green)
EMA 200 (maroon)
LSMA 30 (Orange)
🔍 Signal Logic:
✅ Buy Signal:
The LSMA (30) must be below both EMA 4 and EMA 9.
A bullish crossover occurs: EMA 4 crosses above EMA 9.
Only one signal is triggered per crossover, avoiding repeated alerts during trend continuation.
❌ Sell Signal:
The LSMA (30) must be above both EMA 4 and EMA 9.
A bearish crossover occurs: EMA 4 crosses below EMA 9.
Only one signal is triggered per crossover, avoiding repeated alerts during trend continuation.
🖥️ Visual Features:
Option to show/hide each EMA and the LSMA.
Buy/Sell markers appear at cross points.
A white background highlight marks the candle where the signal occurs (optional).
Visuals scale dynamically with the chart zoom and axes.
🔔 Alerts:
Custom alert conditions for Buy and Sell.
Alerts can trigger push notifications to the TradingView mobile app, email, or webhook.
Configured to avoid repeating alerts unless the trend resets and a new valid crossover occurs.