אינדיקטור

אינדיקטור

Pro Volatilite-v61. Hidden Trend Algorithm (Background)
The heart of the code actually beats with a SuperTrend logic. However, it differs from ready-made indicators on the market in two major ways:
Manual Calculation: Instead of the ta.supertrend function, the bands are calculated manually using ATR (Average True Range). This preserves the originality of the code.
ALMA Smoothing: Classic trend lines create sharp, angular "ladder" steps in price changes. Here we used ALMA (Arnaud Legoux Moving Average). ALMA is one of the smoothest averages on the market and makes the trendline silky smooth. This prevents an outsider from realizing it's a SuperTrend.
2. Triple Dynamic Average Set
Three different moving averages run simultaneously on the chart. These are usually set to 20, 50, and 200 periods:
Flexibility: You can change these numbers as you wish from the settings menu (e.g., 9, 21, 100).
Mode Selection: You can change the type of all three lines (SMA, EMA, or VWMA) with a single setting.
Visual Hierarchy: The lines have different thicknesses. The longest-term (200) line is drawn thickest to highlight the main support/resistance level.
3. Fully Customizable Interface
The most user-friendly part of the code is the control panel added to TradingView's "Settings" (gear) menu:
Color Control: You can choose the color tones you want for uptrends and downtrends.
Opacity: You can adjust how prominent the fill between the price and the trend line will be.
On/Off: If you think the screen is too cluttered, you can hide any of the 20-50-200 lines with a single click.
How it Works? (Strategic Use)
Trend Direction: If the main line, which is thick and sloping, is Turquoise (or your chosen color), the market is trending upwards; if it is Pink, it is trending downwards.
Signal Points: Small circles appearing just below or above the candles when the trend reverses indicate the start or end of a trend.
Support and Resistance: The 20, 50, and 200 lines show where the price will rest or rebound within the trend. For example, if the price touches the 50-period moving average (orange line) while above the main trend and receives a reaction, this can be considered a strong buying opportunity. אינדיקטור

אינדיקטור

Institutional Smart Money Footprint (Volume Anomalies) by:EduardMost retail traders rely on moving averages and lagging oscillators, completely missing the fact that the market is governed by liquidity sweeps and algorithmic volume anomalies, I developed this stripped-down version of our institutional footprint tracker to map where the "Smart Money" is aggressively stepping in.
This engine doesn't just look at price action, it cross-validates extreme spread expansions with 150%+ volume surges to plot high-probability Demand and Supply blocks directly on your chart. When a whale moves, they leave a mathematical footprint. This algorithm highlights it.
If you are a discretionary trader, use these zones as hard exhaustion/reversal levels, if you are running a prop firm or need to translate complex logic like this into a fully automated, low-latency execution bot, my team specializes in custom algorithmic architecture (Pine Script, Python, and C#), feel free to study the open-source code or reach out directly for custom B2B engineering. אינדיקטור

MA + ATRHere’s a clean, professional **TradingView description** you can use when publishing your script:
---
## 📊 Multi MA + ATR Extension Dashboard
This indicator combines key moving averages with volatility analysis to provide a clear, real-time view of trend structure, extension, and momentum.
---
### 🔧 Features
**Moving Averages**
* Plots **5, 21, 50, and 200 MA**
* Supports **SMA or EMA selection per MA**
* Clean color scheme for quick visual recognition
**ATR-Based Extension**
* Measures how far price is from each MA in **ATR units**
* Helps identify:
* Overextended moves
* Mean reversion zones
* Healthy vs stretched trends
**Trend Curl (Angle)**
* Displays **angle of curl (slope)** for 21, 50, and 200 MA
* Quickly shows:
* Trend acceleration
* Flattening structure
* Early reversal signals
**Smart Table Dashboard**
* Compact table showing:
* MA type + direction (arrow)
* Distance from MA (in ATR)
* Price position (above/below)
* Curl (angle) of key MAs
* Customizable position and size
**ATR Volatility Context**
* Shows ATR % (volatility relative to price)
* Helps compare volatility across instruments
---
### 🧠 How to Use
* **Trend Identification**
* Look for alignment (21 > 50 > 200 = bullish)
* Use curl to confirm strengthening or weakening trends
* **Extension Analysis**
* 1 ATR = normal move
* 2 ATR = extended
* 3 ATR = potential exhaustion
* **Mean Reversion**
* High ATR extension + flattening curl = pullback probability
* **Momentum Insight**
* Rising curl = strengthening trend
* Falling curl = weakening trend
---
### ⚙️ Best Use Cases
* Intraday trend trading
* Swing trading pullbacks
* Identifying exhaustion moves
* Volatility-aware risk management
---
### 💡 Notes
* ATR measures **volatility, not direction**
* Works best when combined with price structure and volume
אינדיקטור

Double Moving Average## 📊 Double Moving Average (DMA)
**General Description:**
An indicator composed of two completely independent Moving Averages (MAs), each configured with its own parameters. Unlike a standard MA, each MA #1 and MA #2 can use a different timeframe, even if the chart displays another timeframe.
---
### **MA #1 - Parameters**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Enable MA #1** | ✓ | Yes/No | Activate/deactivate the first MA |
| **Length** | 50 | 1-500 | Calculation period of the MA |
| **Source** | Close | Open/High/Low/Close | Price source |
| **Offset** | 0 | 0-100 | Shift the curve to the right |
| **Type** | EMA | SMA/EMA/WMA | Type of moving average |
### **MA #2 - Parameters**
Identical to MA #1 but with default **Length: 200**
---
### **Smoothing - Per MA**
Each MA can have its own smoothing:
| Parameter | Options |
|-----------|---------|
| **Enable Smoothing** | Yes/No |
| **Type** | None / SMA / EMA / WMA |
| **Length** | 1-100 |
| **BB StdDev** | 0.1-10 (Bollinger Bands) |
---
### **Timeframe (Period) - Per MA**
Each MA calculates on an independent timeframe:
**Options:** 1min, 2min, 5min, 10min, 15min, 30min, 1hr, 2hr, 4hr, 1day
**"Wait for Close":** Waits for the timeframe candle to close before confirmation
---
### **Main Functions**
1. **`f_convert_timeframe()`** - Converts timeframe formats for Pine Script
2. **`f_calculate_ma()`** - Calculates SMA, EMA, or WMA
3. **`f_apply_smoothing()`** - Applies smoothing if enabled
---
### **Use Cases**
- Display short-term MA (5min) for scalping
- Display long-term MA (1day) for overall trend
- All on the same chart, independent of the displayed timeframe
- Compare two different trend periods simultaneously אינדיקטור

אינדיקטור

אינדיקטור

אינדיקטור

אינדיקטור

TTT - Trend Identification Moving AveragesWhat This Indicator Does
This indicator is designed to help traders identify and stay aligned with the dominant market trend by combining multiple moving averages with volume analysis. It provides a structured framework to evaluate trend direction, momentum, and participation—without relying on news, fundamentals, or opinions.
The Philosophy Behind It
Markets move in trends—and those trends tend to persist far longer than most investors expect. The biggest mistake traders make is trying to predict reversals instead of recognizing and following the current trend.
This tool is built on a simple principle: Trade with the trend, not against it.
As outlined in Technical Trading Mastery, price action reflects all known information, often reversing well before economic data or news confirms the move . By focusing on price and trend structure, traders can position themselves on the right side of the market rather than reacting emotionally.
How It Works
1. Multi-Timeframe Trend Structure
This indicator uses a combination of short-, intermediate-, and long-term moving averages:
5 EMA → Short-term momentum
20 EMA → Near-term trend direction
50 EMA → Intermediate trend
150 SMA → Long-term market direction
These averages act as dynamic support and resistance levels while also defining trend alignment .
2. Trend Confirmation Logic
The relationship between moving averages helps define market conditions:
- When shorter-term averages are above longer-term averages → Uptrend
- When shorter-term averages fall below longer-term averages → Downtrend
- When averages compress or move sideways → Consolidation / indecision
A key concept:
- When the 50 EMA is above the 150 SMA, the market is considered in a healthy uptrend
- When the 50 EMA falls below the 150 SMA, it signals a potential shift to a bearish environment
This provides a clear, rules-based way to stay aligned with the dominant trend.
3. Entry & Pullback Context
Trends do not move in straight lines—they move in waves. Price will naturally pull back toward moving averages during trends.
These areas can act as:
- Support in uptrends
- Resistance in downtrends
This allows traders to evaluate whether price is:
- Extending (higher risk)
- Pulling back (potential opportunity)
- Breaking trend (potential warning)
4. Volume as Participation Insight
Volume is displayed to provide context behind price movement.
- Rising price with increasing volume → stronger participation
- Rising price with declining volume → weaker conviction
- Sharp volume spikes → potential emotional or institutional activity
Markets are driven by waves of capital flow and crowd psychology, not just price alone . Volume helps reveal when those waves are gaining or losing strength.
Why This Matters
Most traders struggle not because they lack indicators—but because they lack structure and discipline.
This indicator simplifies decision-making by focusing on three key elements:
- Trend direction (Are you aligned with the market?)
- Price location (Are you chasing or buying weakness?)
- Participation (Is there real conviction behind the move?)
Instead of reacting to headlines or emotions, this framework encourages a rules-based approach to understanding market behavior.
How To Use It
- Focus on trading in the direction of the dominant trend
- Use moving averages as a guide for trend alignment and structure
- Observe how price reacts near key averages for potential continuation or warning signals
- Use volume to confirm whether moves are supported by participation
Final Perspective
This tool is not about predicting tops or bottoms.
It is about recognizing trends, understanding market structure, and staying positioned with the flow of capital.
Because in the end, the market rewards those who follow it—not those who fight it. אינדיקטור

אינדיקטור

אינדיקטור

אסטרטגייה

160-Min Extended Hours MAs160-Min Extended Hours MA Dashboard
Designed for traders who work across the full extended hours session, where 960 minutes of daily market time — from pre-market open at 4:00 AM ET through post-market close at 8:00 PM ET — divides evenly into exactly 6 bars per day at the 160-minute timeframe. This creates a clean, session-aligned bar structure that keeps moving average lookbacks anchored to real extended hours time rather than arbitrary period counts.
This indicator plots five moving averages, each mapped to a meaningful horizon expressed in session time:
1D — 6 bars (1 full extended session)
1W — 30 bars (1 trading week)
1M — 126 bars (~1 trading month)
6M — 756 bars (~6 trading months)
1Y — 1,512 bars (~1 trading year)
Features
Toggle between EMA and SMA globally with a single input. Each MA plots with a right-edge label showing the period name, distance from current price, percentage distance, and ATR multiple — giving you immediate context on how extended or compressed price is relative to each level. A summary table displays the current MA value and slope direction (▲ ▼ →) for each period. A bottom signal row indicates whether price is in a full bull stack, bear stack, or mixed alignment across all visible MAs.
Color palette runs teal → light blue → royal blue → purple → white from shortest to longest timeframe, consistent with the broader dashboard suite.
The indicator includes a timeframe guard — all plots and labels suppress automatically if the chart is not on the 160-minute timeframe, and a warning label fires to prompt you to switch. Note that the 1Y MA requires approximately one full year of chart history to populate.
Timeframe: 160-min only
Asset class: Equities, ETFs, and index products with extended hours trading (4:00 AM – 8:00 PM ET)
Pine Script: v6
Sonnet 4.6 אינדיקטור

5-Min Session MAsHere's the updated description:
---
**5-Min Session MA Dashboard**
Designed for intraday traders working on the 5-minute timeframe, where 390 minutes of regular trading hours divides into exactly 78 bars per day — keeping moving average lookbacks anchored to real session time rather than arbitrary period counts.
This indicator plots three moving averages, each mapped to a meaningful intraday horizon expressed in session time:
- 1D — 78 bars (1 full session)
- 2D — 156 bars (2 sessions)
- 1W — 390 bars (1 trading week)
**Features**
Toggle between EMA and SMA globally with a single input. Each MA plots with a right-edge label showing the period name, distance from current price, percentage distance, and ATR multiple — giving you immediate context on how extended or compressed price is relative to each level. A summary table displays the current MA value and slope direction (▲ ▼ →) for each period. A bottom signal row indicates whether price is in a full bull stack, bear stack, or mixed alignment across all visible MAs.
Color palette runs teal → blue → purple from shortest to longest timeframe, consistent with the broader dashboard suite.
The indicator includes a timeframe guard — all plots and labels suppress automatically if the chart is not on the 5-minute timeframe, and a warning label fires to prompt you to switch.
**Timeframe:** 5-min only
**Asset class:** Equities, ETFs, and index products trading regular hours (9:30–4:00 ET)
**Pine Script:** v6
--- אינדיקטור

138-Min Session MAs138-Min Session MA Dashboard
Designed for futures traders using the 138-minute timeframe, where 1,380 minutes of daily session time divides evenly into exactly 10 bars per day — creating a clean, session-aligned bar structure unique to this timeframe.
This indicator plots six moving averages, each mapped to a meaningful trading horizon expressed in session-time rather than calendar time:
1D — 10 bars (1 session)
2D — 20 bars (2 sessions)
1W — 50 bars (1 trading week)
2W — 100 bars (2 trading weeks)
1M — 210 bars (~1 trading month)
6M — 1,260 bars (~6 trading months)
Features
Toggle between EMA and SMA globally with a single input. Each MA plots with a right-edge label showing the period name, distance from current price, percentage distance, and ATR multiple — giving you immediate context on how extended or compressed price is relative to each level. A summary table displays the current MA value and slope direction (▲ ▼ →) for each period. A bottom signal row indicates whether price is in a full bull stack, bear stack, or mixed alignment across all visible MAs.
Color palette runs teal → blue → purple → white from shortest to longest timeframe, consistent with the broader dashboard suite.
The indicator includes a timeframe guard — all plots and labels suppress automatically if the chart is not on the 138-minute timeframe, and a warning label fires to prompt you to switch.
Timeframe: 138-min only
Asset class: Futures (ES, NQ, CL, GC, or any instrument with a 1,380-min session)
Pine Script: v6 אינדיקטור

MA Distance Alert# MA Distance Alert - 均线偏离警报指标
## 中文说明
### 指标简介
MA Distance Alert 是一款基于均线原理的价格偏离监控指标,支持SMA/EMA双均线类型,可自定义均线周期与价格偏离阈值,实时监控价格与均线的偏离程度,当价格超出设定的偏离区间时自动触发视觉提醒与警报通知,辅助交易者快速捕捉价格极端偏离、趋势反转或加速行情信号。
### 核心功能
1. **灵活均线配置**:支持SMA(简单移动平均)、EMA(指数移动平均)两种常用均线类型,可自由调整均线计算周期
2. **精准偏离监控**:自动计算收盘价与均线的偏离百分比,基于自定义阈值生成上下偏离轨道
3. **多重视觉提醒**:高亮标注超出偏离区间的K线背景,上偏离显示红色背景,下偏离显示绿色背景
4. **智能警报通知**:支持价格向上突破、向下跌破、双向偏离三种警报条件,覆盖全场景监控需求
5. **界面友好**:指标叠加在主图显示,不遮挡价格走势,线条配色清晰易辨
### 使用方法
1. 将指标代码添加至TradingView Pine编辑器,加载至图表
2. 参数自定义:选择均线类型、设置均线周期(默认120)、调整偏离阈值(默认12%)
3. 实时观察:价格在上下轨道内运行为正常区间,超出轨道时触发背景高亮
4. 警报设置:开启指标警报,接收价格极端偏离的实时通知
### 适用场景
适用于股票、加密货币、外汇、期货等全品类交易品种,可用于趋势行情中的回调预警、震荡行情中的高低点捕捉、极端行情中的超买超卖判断,适配日线、小时线等所有时间周期。
---
# MA Distance Alert - Moving Average Distance Alert Indicator
## English Description
### Indicator Introduction
MA Distance Alert is a price deviation monitoring indicator based on the moving average principle. It supports both SMA and EMA types, allowing custom moving average periods and price deviation thresholds. It monitors the deviation between price and moving average in real time, automatically triggers visual reminders and alert notifications when the price exceeds the set deviation range, helping traders quickly capture signals of extreme price deviation, trend reversal or accelerated market trends.
### Core Features
1. **Flexible MA Configuration**: Support two commonly used moving average types: SMA (Simple Moving Average) and EMA (Exponential Moving Average), freely adjust the MA calculation period
2. **Accurate Deviation Monitoring**: Automatically calculate the deviation percentage between the closing price and the moving average, generate upper and lower deviation bands based on custom thresholds
3. **Multiple Visual Alerts**: Highlight the K-line background when exceeding the deviation range, red background for upward deviation and green background for downward deviation
4. **Smart Alert Notifications**: Support three alert conditions: price breakout upward, breakdown downward, and two-way deviation, covering full-scenario monitoring needs
5. **User-friendly Interface**: Overlaid on the main chart without blocking price movements, with clear and distinguishable line colors
### How to Use
1. Add the indicator code to TradingView Pine Editor and load it on the chart
2. Customize Parameters: Select MA type, set MA period (default 120), adjust deviation threshold (default 12%)
3. Real-time Observation: Price moving within upper and lower bands is the normal range, background highlight is triggered when exceeding the bands
4. Alert Setup: Enable indicator alerts to receive real-time notifications of extreme price deviations
### Applicable Scenarios
Suitable for all trading varieties including stocks, cryptocurrencies, forex, futures, etc. It can be used for callback early warning in trending markets, high-low point capture in ranging markets, overbought and oversold judgment in extreme markets, compatible with all time frames such as daily and hourly charts.
אינדיקטור

S&P 500 Breadth BullstackCore Idea of the Indicator:
The indicator is not a classic buy/sell trigger, but rather a breadth regime scanner for the S&P 500. In other words, it measures how many stocks in each sector are trading above their 20-day, 50-day, and 200-day moving averages (Simple Moving Average - SMA), compresses that information into a color-coded view, and visualizes whether there is a true “bullstack” in the market.
In practical terms, this means it is especially useful for filtering long positions during strong market phases, scaling into them, and turning defensive earlier when market breadth starts to weaken.
Structure:
The code loads three breadth series for each of the 11 S&P 500 sectors, plus the Nasdaq-100: 20D, 50D, and 200D.
The data is retrieved using request.security() from other symbols or contexts; in Pine, this function is used to access values from other symbols or timeframes within the script.
The script also calculates three averages from the 11 sectors (tot20, tot50, tot200) to create an overall view of S&P 500 market breadth.
Color Logic:
The core idea is: 20D represents short-term momentum, 50D represents medium-term confirmation, and 200D represents the long-term trend.
The bullstackColor() function does not create a simple traffic-light system, but rather a graduated state model: green/turquoise means broad strength, white marks the transition zone, yellow/orange signals early weakness, red to near-black indicates clear breadth weakness, and pink represents a special case of negative divergence.
This divergence occurs when many stocks are still above their 200D line in the long term (b200 > 65), while short-term momentum is already breaking down significantly (b20 < 45) — a typical late-cycle/distribution signal.
Long Strategy:
For longs, the indicator is most powerful when used as a market filter:
The best entries occur when overall breadth rotates up out of capitulation through neutral (white) and then into light green, with 20D breadth picking up first as short-term momentum, 50D breadth then confirming as the medium-term trend, and 200D remaining stable as the long-term trend.
The highest-quality longs occur when not only “Total SPY” turns green, but especially cyclical sectors such as XLY, XLF, XLI, XLK, and ideally the Nasdaq block as well are participating. That usually means the rally is broad, risk-on, and more durable.
Specifically, I would derive three long setups from this:
Early long (first tranche) on the turn from capitulation into the neutral zone, when 20D breadth is clearly rising and 50D breadth is no longer declining.
Confirmation long (second tranche), when 20D > 50D > 50 and several leading sectors turn green at the same time.
Trend add-on (final tranche), when the overall market and cyclical sectors such as XLY, XLF, XLI, and XLK are already green and rotating into turquoise, while pullbacks on the price chart remain shallow (only down to the SMA20 or slightly below).
Position Management:
For position management, the color is almost more important than the entry itself: as long as the picture remains green and 20D only fluctuates slightly, that argues for holding rather than nervous re-trading.
Partial profit-taking or tighter risk management makes sense once strong green fades into pale green or white, because that often marks the transition from expansion to exhaustion.
A clear warning signal against new longs is pink: in that case, the long-term trend is still intact, but short-term momentum is already rolling over — exactly the kind of environment where late longs are often rewarded the least. Caution is warranted here, and the first partial profits should be secured.
Short Strategy:
I would trade shorts much more selectively than longs with this indicator, because breadth indicators in uptrends can often stay “too strong” longer than short setups can tolerate.
The better short opportunities do not occur on the first yellow bar, but when the overall picture shifts from white/yellow into orange/red, while 20D breadth and 50D breadth are weak at the same time and defensive sectors look better than cyclical ones. That points more to genuine market distribution rather than just a simple pullback in individual sectors.
The cleanest short entries come after a failed rebound out of a pink divergence, or when multiple sectors flip synchronously into red/dark red after a warning phase, especially if Nasdaq, Tech, and other cyclical sectors confirm the weakness.
A simple practical rule would therefore be:
Prefer longs when breadth is expanding, 20D leads first, and 50D/200D then confirm.
No fresh longs during pink divergences.
Only take shorts when the weakness is broad, synchronized, and visible across sectors.
One more important point:
The script measures market breadth, not price structure. Therefore, it is best used as a top-down filter together with price triggers in SPY/ES/QQQ or in individual stocks — for example, breadth turning green plus a breakout or trend pullback on the chart, rather than trading breadth in isolation. אינדיקטור

אינדיקטור

[CLH] Simple Sweep ReversalOVERVIEW
Works on a 1 Hour chart ONLY. Attempts to detect high-probability reversal setups after liquidity sweeps of prior day (PD) highs/lows or overnight (18:00–04:59) highs/lows. Designed to help catch morning session reversals (1:00–10:59 AM chart time) on futures/indices like ES and NQ. It combines swing rejection candles (with customizable wick % filter), moving average trend alignment, and multi-timeframe extreme filters to avoid trading into major weekly/daily highs/lows.
CONCEPT
Many reversals occur when price "sweeps" resting liquidity (stops above PD high or below PD low / overnight extremes), then rejects with a strong wick. This script identifies those failed breakouts and only signals when:
• A swing high/low candle forms with significant wick rejection
• Price is on the "wrong" side of the fast MA (bearish MA for shorts, bullish for longs)
• The move is NOT too close to multi-day or weekly extremes (anti-whipsaw protection)
Signals are restricted to the 01:00–10:59 window to catch post-overnight / early NY reversals.
KEY FEATURES
• Prior Day (PD) High/Low breakout sweeps
• Overnight Range (18:00–04:59) High/Low sweeps
• Wick rejection filter (min % of candle range – default 20%)
• Fast/Slow MA filter (default SMA 20 / 200) + minimum separation (points)
• Daily lookback extreme filter (default 7 days, 100 points buffer)
• Weekly lookback extreme filter (default 2 weeks, 200 points buffer) – blocks shorts near weekly highs, longs near weekly lows
• Optional 4H candle panel (last 3 candles) in lower-right for higher-timeframe context
INPUTS OVERVIEW
• Fast MA Length (default 20) / Slow MA Length (default 200) – SMA/EMA/WMA selectable
• Min separation between MAs (points) – avoids flat-market signals
• Min Wick % of range (default 20%) – 0 = disabled
• Lookback days for daily extremes (default 7) + max distance (default 100 pts)
• Lookback weeks for weekly extremes (default 2) + max distance (default 200 pts)
• Show MAs and Show 4H panel toggles
• Colors for MAs, signals, 4H bodies/wicks
DISCLAIMER
This is NOT financial advice. No guarantee of profitability – past performance ≠ future results. Use at your own risk. Backtest thoroughly and combine with your trading plan. Designed as a confluence tool, not a standalone system.
Feedback welcome! If you find bugs, want tweaks (e.g., session times, volume filter, fib extensions), or have ideas to improve, drop a comment or message. Happy trading! אינדיקטור

US Market TimingDisclaimer: Results are hypothetical and do not take into account taxes and fees. This is for informational purposes only and is not financial advice. People can and do lose money investing and trading. Invest responsibly.
US Market Timing strategy designed for long-only position trading. It focuses on multi-month trends rather than day trading, specifically optimized for major US indices like the Nasdaq-100 (QQQ) and S&P 500 (SPY).
Here is a breakdown of how the strategy operates:
Core Strategy Logic
The system uses a "dual-index confirmation" approach. It looks at the S&P 500 (SPX) for the broad market regime and the Nasdaq-100 (QQQ) for specific execution signals.
Entry Conditions (The "Buy" Signal)
To enter a trade, four specific conditions must be met simultaneously:
Broad Market Strength: The SPX daily low must stay above its 21-day EMA for 4 consecutive days.
Growth Confirmation: The QQQ daily low must be above both its 14-day and 21-day EMAs.
Momentum Check: The current QQQ close must not be weaker than the previous three days (preventing buying into a dip that's turning into a slide).
Trend Intensity: The SPX ADX (Average Directional Index) must be above 16, ensuring the market is actually trending and not just chopping sideways.
Exit Conditions (The "Sell" Signal)
The strategy uses two distinct methods to get out of a trade:
The Trend-Based Exit (Loose Stop): This triggers if the SPX 7-day SMA crosses below the 107-day SMA while the QQQ is showing price weakness (closing below its 21-day EMA). This is designed to capture the bulk of a major bull run.
The Safety Exit (Tight Stop): A hard stop is set at 3.5% below the entry price. However, it only triggers if the QQQ is also trading below its 50-day SMA, acting as a double-confirmation to avoid being "shaken out" by minor volatility.
Key Technical Components
21-day EMA - Used as the primary "floor" for price action.
ADX (13-period) - Filters out "flat" markets; requires a value > 16 to trade.
7/107 SMA Cross - Determines the long-term trend shift for exits.
QQQ/SPX Correlation - Uses SPX for the macro trend and QQQ for the micro timing.
Performance Notes
Best Results: QQQ, MDY, IWM, SPY and their leveraged counterparts (QLD, SSO).
Drawdown : Historically, it has significantly outperformed "Buy and Hold" in terms of risk-adjusted returns, often cutting the Max Drawdown of the Nasdaq in half (e.g., QQQ ~28% drawdown vs. much higher during the dot-com era).
Timeframe : Designed for daily charts with trades lasting several months.
אסטרטגייה
