OC Mean +/- Std Dev (last N bars) - v6tells you the value of the current close-open value to the past n bars. helpful to determine if current bar is more than 1 std dev off the average close-open
المؤشرات والاستراتيجيات
Dow Theory Indicator## 🎯 Key Features of the Indicator
### 📈 Complete Implementation of Dow Theory
- Three-tier trend structure: primary trend (50 periods), secondary trend (20 periods), and minor trend (10 periods).
- Swing point analysis: automatically detects critical swing highs and lows.
- Trend confirmation mechanism: strict confirmation logic based on consecutive higher highs/higher lows or lower highs/lower lows.
- Volume confirmation: ensures price moves are supported by trading volume.
### 🕐 Flexible Timeframe Parameters
All key parameters are adjustable, making it especially suitable for U.S. equities:
Trend analysis parameters:
- Primary trend period: 20–200 (default 50; recommended 50–100 for U.S. stocks).
- Secondary trend period: 10–100 (default 20; recommended 15–30 for U.S. stocks).
- Minor trend period: 5–50 (default 10; recommended 5–15 for U.S. stocks).
Dow Theory parameters:
- Swing high/low lookback: 5–50 (default 10).
- Trend confirmation bar count: 1–10 (default 3).
- Volume confirmation period: 10–100 (default 20).
### 🇺🇸 U.S. Market Optimizations
- Session awareness: distinguishes Regular Trading Hours (9:30–16:00 EST) from pre-market and after-hours.
- Pre/post-market weighting: adjustable weighting factor for signals during extended hours.
- Earnings season filter: automatically adjusts sensitivity during earnings periods.
- U.S.-optimized default parameters.
## 🎨 Visualization
1. Trend lines: three differently colored trend lines.
2. Background fill: green (uptrend) / red (downtrend) / gray (neutral).
3. Signal markers: arrows, labels, and warning icons.
4. Swing point markers: small triangles at key turning points.
5. Info panel: real-time display of eight key metrics.
## 🚨 Alert System
- Trend turning to up/down.
- Strong bullish/bearish signals (dual confirmation).
- Volume divergence warning.
- New swing high/low formed.
## 📋 How to Use
1. Open the Pine Editor in TradingView.
2. Copy the contents of dow_theory_indicator.pine.
3. Paste and click “Add to chart.”
4. Adjust parameters based on trading style:
- Long-term investing: increase all period parameters.
- Swing trading: use the default parameters.
- Short-term trading: decrease all period parameters.
## 💡 Parameter Tips for U.S. Stocks
- Large-cap blue chips (AAPL, MSFT): primary 60–80, secondary 25–30.
- Mid-cap growth stocks: primary 40–60, secondary 18–25.
- Small-cap high-volatility stocks: primary 30–50, secondary 15–20.
Mikey’s Strategy (AutoEMA+)
⚙️ Core Idea:
A long-only EMA crossover strategy that automatically selects the optimal EMA length (5–25) based on historical performance using a custom scoring system.
🎯 Entry Conditions:
Price crosses above the selected EMA.
(Optional) Price is above HTF EMA200 (higher timeframe trend).
(Optional) ADX is above a minimum threshold.
(Optional) Volume is above average × multiplier.
A cooldown period has passed since the last exit.
❌ Exit Condition:
Price closes fully below the EMA (current candle: high, low, and close all below),
and the previous candle was above or touched the EMA.
🧠 Auto EMA Selection Logic:
Scans EMAs in the range (e.g., 8–21) every N bars.
Scores each EMA based on:
Time price spent above the EMA
Respect for EMA (touches)
Trend consistency
Distance from EMA (when above)
Picks the EMA with the highest valid score, and updates only if it’s significantly better.
🛡️ Risk Management:
No pyramiding (1 position max).
Cooldown period after exit.
No hard stop loss or take profit.
📊 Visuals & Alerts:
Plots the selected EMA and optional HTF EMA200.
Entry markers and info label on the chart.
Alerts for valid entries and filtered signals.
Keks Key Level Fx SessionsThis script is designed to automatically plot and manage key levels for the major FX trading sessions (London, New York, and Asia). It helps traders identify the most relevant price areas that often act as support, resistance, or breakout zones during active market hours.
Key features:
Marks session highs, lows, and midpoints
Visualizes key intraday levels for better market structure analysis
Highlights potential breakout and retest areas
Works across multiple timeframes for flexibility
Clean and minimal chart design to avoid clutter
This tool is especially useful for traders who rely on session-based strategies, such as breakout trading, retests, or range trading, by providing a clear visual guide to the most important price zones.
VSA Volume OverlaySimple. When the VSA volume is above the average volume the line will draw orange. When below average volume plot , it will draw white.
15m — numerotare candele într-o perioadă delimitată15m — numerotare candele într-o perioadă delimitată
CAP - KC/AC 2.20462 Converter// ───────────────────────────────────────────────────────────────────────────────
// Purpose: Conversion Indicator for ICE “C” (KC) and “C Metric” (AC) Contracts
//
// Background:
// - The Intercontinental Exchange (ICE) is phasing out the legacy Coffee “C” contract (symbol: KC),
// which has been quoted in U.S. cents per pound, and replacing it with the new Coffee “C Metric” contract (symbol: AC),
// quoted in U.S. dollars per metric ton :contentReference {index=0}.
// - The final KC futures expire in March 2028; AC contracts begin trading in September 2025 and use modern specifications
// including pricing per metric ton and flexible bulk delivery formats :contentReference {index=1}.
//
// Why this script matters:
// - Traders are accustomed to the KC pricing format (¢/lb); the AC contract’s USD/MT may create confusion.
// - This indicator visually converts the current chart price—whether from KC or AC contracts—directly into its equivalent unit,
// helping traders quickly assess parity and compare trends across both contract types.
// - It simplifies head-to-head comparison during this transition period, improving clarity on chart price behavior.
//
// Usage instructions:
// - If the symbol starts with "KC", the script divides the price by 2.20462 to convert from ¢/lb to approximate ¢/kg.
// - If the symbol starts with "AC", the script multiplies the price by 2.20462 to reverse the conversion.
// - The results (converted values) are displayed in a table for immediate visual clarity.
// ───────────────────────────────────────────────────────────────────────────────
Artharjan ADXArtharjan ADX (AADX) by Rrahul Desai @Artharjan
📌 Overview
The Artharjan ADX (AADX) is an advanced implementation of the Average Directional Index (ADX) with customizable moving averages, momentum thresholds, and visually intuitive grading of bullish and bearish strength.
Unlike the standard ADX indicator that only shows trend strength, AADX adds graded bullish/bearish conditions, alerts, smoothed DI signals, histogram visualizations, and background color fills to help traders quickly interpret market conditions.
It is designed for traders who want early detection of trend strength, clean visual cues, and automated alert triggers for both bullish and bearish momentum setups.
⚙️ Key Features
🔹 Customizable Calculations
DI Length (default 13) – controls sensitivity of directional indicators.
+/- DI Smoothing – smooths DI signals with user-selected MA.
Multiple Moving Average Types – SMA, EMA, WMA, RMA, VWMA, ALMA, Hull, SWMA, SMMA, TMA.
ADX Smoothing – define how smooth/fast the ADX reacts.
🔹 Flexible Display
Toggle between line plots or histogram view.
Adjustable plot thickness.
Option to plot averages of ADX, +DI, -DI for confirmation.
Configurable background fills:
ADX above/below momentum threshold.
ADX rising/falling color shading.
Trend-grade based color intensity.
🔹 Momentum & Thresholds
Momentum Level (default 25) → defines “strong trend” zone.
Crossover Threshold (default 15) → helps detect early DI crossovers.
Color-coded histogram bars for +DI vs -DI difference:
Above/below zero.
Rising/falling momentum.
🔹 Bullish & Bearish Grading System
The indicator assigns grades from 1 to 5 for both bullish and bearish setups, based on DI and ADX conditions:
Bullish Grades
Grade 1 → Very Weak Bullish
Grade 2 → Weak Bullish
Grade 3 → Moderate Bullish
Grade 4 → Strong Bullish
Grade 5 → Very Strong Bullish
Bearish Grades
Grade 1 → Very Weak Bearish
Grade 2 → Weak Bearish
Grade 3 → Moderate Bearish
Grade 4 → Strong Bearish
Grade 5 → Very Strong Bearish
Labels are automatically plotted above bars to indicate the active grade.
🔹 Alerts
Bullish Alert → when +DI crosses above its average below the threshold OR bullish conditions are met.
Bearish Alert → when -DI crosses above its average below the threshold OR bearish conditions are met.
These alerts make it possible to automate trading signals for scalping, intraday, and swing trading.
📊 Use Cases
Trend Strength Measurement
Spot when markets shift from range-bound to trending.
Confirm the reliability of breakouts with strong ADX readings.
Bullish vs Bearish Control
Compare +DI vs -DI strength to gauge trend direction.
Identify trend reversals early with DI slope changes.
Momentum Confirmation
Use ADX rising + DI grades to validate trade entries.
Filter false breakouts with weak ADX.
Trade Grading System
Enter aggressively on Grade 4–5 signals.
Stay cautious on Grade 1–2 signals.
Automated Alerts & Screening
Combine AADX alerts with strategy rules.
Build scanners to highlight strong ADX setups across multiple stocks.
🎯 Trader’s Advantage
More powerful than standard ADX → Adds slope, grading, alerts, and visualization.
Adaptable to any style → Works for intraday scalping, swing trading, and positional analysis.
Visual clarity → Color fills, histograms, and labels simplify decision-making.
Customizable smoothing → Adjusts to fast or slow markets.
✅ Closing Note
The Artharjan ADX (AADX) transforms the traditional ADX into a complete trend and momentum analyzer. It helps traders detect, confirm, and act on directional strength with clarity and confidence.
With Thanks,
Rrahul Desai
@Artharjan
Buy vs Sell Volume EMA + Signals (fix: bgcolor scope)How to read it
Green EMA above Red EMA = sustained buying volume dominance.
Red EMA above Green EMA = sustained selling volume dominance.
Arrows mark shifts (crossovers).
Optional faint columns show the raw split of buy/sell volume if you enable “Show Raw Buy/Sell Volume Bars.”
S&P 500 Weighted Advance Decline LineS&P 500 Weighted Advance Decline Line Indicator
Overview
This indicator creates a market cap weighted advance/decline line for the S&P 500 that tracks breadth based on actual index weights rather than treating all stocks equally. By weighting each stock's contribution according to its true S&P 500 impact, it provides more accurate market breadth analysis and better insights into underlying market strength and potential turning points.
Key Features
Market Cap Weighted: Each stock contributes based on its actual S&P 500 weight
Top 40 Stocks: Covers ~51% of the index with the largest companies
(limited by TradingView's 40 security call maximum for Premium accounts)
Real-Time Updates: Cumulative line shows long-term breadth trends
Visual Indicators: Background coloring, moving average option, and data table
Stock Coverage
Sector Breakdown:
Technology (29.8%) - Dominates the coverage as expected
Financials (5.8%) - Major banking and payment companies
Consumer/Retail (3.7%) - Consumer staples and retail giants
Healthcare (3.2%) - Pharma and healthcare services
Communication (1.97%) - Telecom and tech services
Energy (1.35%) - Oil and gas majors
Industrial (0.9%) - Aerospace and industrial equipment
Other Sectors (4.6%) - Miscellaneous including software and payments
Includes the 40 largest S&P 500 companies by weight, featuring:
Tech Leaders (29.8%): AAPL (7.0%), MSFT (6.5%), NVDA (4.5%), AMZN (3.5%), META (2.5%), GOOGL/GOOG (3.8%), AVGO (1.5%), ORCL (1.22%), AMD (0.51%), plus others
Financials (5.8%): BRK.B (1.8%), JPM (1.2%), V (1.0%), MA (0.8%), BAC (0.63%), WFC (0.46%)
Healthcare (3.2%): LLY (1.2%), UNH (1.2%), JNJ (1.1%), ABBV (0.8%), PG (0.9%)
Consumer/Retail (3.7%): WMT (0.8%), HD (0.8%), COST (0.7%), KO (0.6%), PEP (0.6%), NKE (0.4%)
Communication (1.97%): TMUS (0.47%), CSCO (0.47%), DIS (0.5%), CRM (0.5%)
Energy** (1.35%): XOM (0.8%), CVX (0.55%)
Industrial** (0.9%): GE (0.5%), BA (0.4%)
Other Sectors (4.6%): PLTR (0.65%), ADBE (0.6%), PYPL (0.3%), plus others
How to Interpret
Trend Signals
Rising A/D Line: Broad market strength, more weighted buying than selling
Falling A/D Line: Market weakness, more weighted selling pressure
Flat A/D Line: Balanced market conditions
Divergence Analysis
Bullish Divergence: S&P 500 makes new lows but A/D Line holds higher
Bearish Divergence: S&P 500 makes new highs but A/D Line fails to confirm
Confirmation
Strong trends occur when both price and A/D Line move in the same direction
Weak trends show when price moves but breadth doesn't follow
Settings
Lookback Period: Days for advance/decline comparison (default: 1)
Show Moving Average: Optional trend smoothing
MA Length: Moving average period (default: 20)
Limitations
Covers ~51% of S&P 500 (not complete market breadth)
Optimized for TradingView Premium accounts (40 security limit)
Heavy weighting toward mega-cap technology stocks
Dependent on real-time data quality
Rolling Performance Toolkit (Returns, Correlation and Sharpe)This script provides a flexible toolkit for evaluating rolling performance metrics between any asset and a benchmark.
Features:
Library-based: Built on a custom utilities library for consistent return and statistics calculations.
Rolling Window Control: Choose the lookback period (in days) to calculate metrics.
Multiple Modes: Toggle between Rolling Returns, Rolling Correlation, and Rolling Sharpe Ratio.
Benchmark Comparison: Compare your selected ticker against a benchmark (default: S&P 500 / SPX), but you can easily switch to any symbol.
Risk-Free Rate Options: Choose from zero, a constant annual % rate, or a proxy symbol (default: US03M – 3-Month Treasury Yield).
Annualized Sharpe: Sharpe ratios are annualized by default (×√252) for intuitive interpretation.
This tool is useful for traders and investors who want to monitor relative performance, diversification benefits, or risk-adjusted returns over time.
utilitiesLibrary for commonly used utilities, for visualizing rolling returns, correlations and sharpe
MTF Options Signals (message-free)script made to help with options profitability. made using ai to increase portfolio profitability
Daily Volume Ratio Bands (20MA)
Daily Volume Ratio Bands (20MA) — by CryptoDaily
This indicator normalizes daily trading volume against the recent 20-day moving average (20MA) and plots it as a volume ratio.
It allows traders to quickly identify whether current volume is strong, weak, or within a normal range compared to historical averages.
Key Features
Normalized volume ratio with 20-day average = baseline (1.0)
Clear bands for easy interpretation (1.0 ~ 1.3 = normal, above = overheated, below = weak)
Intuitive color coding:
🟨 Yellow: Normal range (1.0 ~ 1.3)
🔵 Blue: Above 1.3× average (high/strong volume, breakout confirmation)
⚪️ Gray: Below average (low volume)
🔴 Red: At or below 0.7× (extremely low volume / lack of interest)
How to Use
Breakouts with strong volume (Blue) → higher confidence in trend continuation
Gray/Red during consolidation → signal of weak momentum or sideways phase
Quickly assess whether the market is in overheated or low-activity conditions
Notes
Designed for Daily timeframe (1D) only. It will not function properly on intraday charts.
For educational purposes only. This is not financial advice.
Author
CryptoDaily (YouTube & TradingView)
YouTube channel: cryptodaily_tv
1H Candlestick vs EMA Crossover# Description — 1H Candlestick vs EMA Crossover (Pine Script)
This indicator is built in **TradingView Pine Script v5** and is designed to track the relationship between the **1‑hour candlestick close** and the **1‑hour Exponential Moving Average (EMA)**. It works on any chart timeframe but always pulls in **1H data** using `request. security`.
### Core Features
* **Customizable EMA length** (default = 200)
* **Plots the 1H EMA** as an orange line on your chart
* Optionally shows the **1H close** as a faint gray line for reference
* Detects and highlights when the **1H candle close crosses above or below the 1H EMA**
* **Arrows**: Green triangles appear below the bar when a bullish crossover happens (1H close > EMA); red triangles appear above the bar when a bearish crossover happens (1H close < EMA)
* **Alerts**: Built‑in `alert condition` statements let you create TradingView alerts whenever a crossover occurs
### How to Use
1. Adjust the EMA length if you want a faster or slower moving average.
2. Enable alerts: Right‑click the chart → Add Alert → choose this indicator and select either “crossed ABOVE EMA” or “crossed BELOW EMA.”
### Trading Applications
* **Trend Confirmation**: Use the 1H EMA as a higher‑timeframe filter while trading on lower timeframes.
* **Entry/Exit Signals**: Crossovers can mark potential entry points for trend continuation or reversals.
* **Scalping/Intraday**: Even on a 5m or 15m chart, you can overlay the 1H EMA to align your trades with the bigger trend.
This makes the indicator a simple yet powerful tool for aligning trades with higher‑timeframe momentum and avoiding false signals from lower‑timeframe noise.
Turtle 20-Day Breakout + ATR (v6 Clean)20-bar breakout entries
ATR protective stops
Classic 10-bar opposite breakout exits
Proper plotting of breakout levels and stops
Signals on chart
Alert conditions in global scop
Custom Time LevelsBased on @TTrades_edu Important Time Levels For Trading video
www.youtube.com
Added candle coloring option as well.
RSI+MA by RAThis Indicator generates buy and sell signal on the crossover of RSI and MA, HTF RSI is also plotted for HTF trend.
Gann Squares + Midpoints It gives Gann Square and a midpoint closest to the price which act as support and resistance
15-Min EMA CrossoverVery useful swing setup indicator that can be used in different styles of trading
Works on any timeframe but calculates EMA and cross signals based on 15-minute candles.
Plots the EMA line.
Shows green triangle for bullish crossover and red triangle for bearish crossunder.
Session Levels [odnac]This indicator plots the high and low levels of the three main trading sessions—Asia, Europe, and New York—along with the previous day’s high, low, and open. Each session’s time range can be customized using a UTC offset, and the indicator automatically tracks session highs and lows as price develops.
Functions:
Plots session highs and lows for Asia, Europe, and New York.
Shows previous day’s high, low, and open as reference levels.
Session times are fully configurable with hour and minute precision, including UTC offset adjustment.
Each session level is marked with both a line and a label for clarity.
Color customization for each session and previous day levels.
Designed for intraday timeframes (1–60 minutes).
Filter Condition:
When the filter option is enabled, the indicator adjusts how levels are drawn:
A session high above the current close is displayed as a solid line with a visible label.
Once price closes above that high, the line becomes dotted and dimmed, and the label also becomes less emphasized.
Similarly, a session low below the current close is displayed as a solid line and label.
If price closes below that low, the line switches to dotted and dimmed, with the label adjusted accordingly.
This behavior highlights only the most relevant levels for the current market position while still keeping breached levels visible in a subdued style, making it easier to spot active breakout or liquidity zones.