Calculator - AOC📊 Calculator - AOC Indicator 🚀
The Calculator - AOC indicator is a powerful and user-friendly tool designed for TradingView to help traders plan and visualize trades with precision. It calculates key trade metrics, displays entry, take-profit (TP), stop-loss (SL), and liquidation levels, and provides a clear overview of risk management and potential profits. Perfect for both novice and experienced traders! 💡
✨ Features
📈 Trade Planning: Input your Entry Price, Take Profit (TP), Stop Loss (SL), and Trade Direction (Long/Short) to visualize your trade setup on the chart.
💰 Risk Management: Set your Initial Capital and Risk per Trade (%) to calculate the optimal Position Size and Risk Amount for each trade.
⚖️ Leverage Support: Define your Leverage to compute the Required Margin and Liquidation Price, ensuring you stay aware of potential risks.
📊 Risk/Reward Ratio: Automatically calculates the Risk-to-Reward Ratio to evaluate trade profitability.
🎨 Visuals: Displays Entry, TP, SL, and Liquidation levels as lines and boxes on the chart, with customizable Line Width, Line Style, and Label Size.
✅ Trade Validation: Checks if your trade setup is valid (e.g., correct TP/SL placement) and highlights issues like potential liquidation risks with color-coded statuses (Correct ✅, Incorrect ❌, or Liquidation ⚠️).
📋 Summary Table: A clean, top-right table summarizes key metrics: Capital, Risk %, Risk Amount, Position Size, Potential Profit, Risk/Reward, Margin, Liquidation Price, Trade Status, and % to TP/SL.
🖌️ Customization: Adjust Line Extension (Bars) for how far lines extend, and choose from Solid, Dashed, or Dotted line styles for a personalized chart experience.
🛠️ How to Use
Add to Chart: Apply the indicator to your TradingView chart.
Configure Inputs:
Accountability: Set your Initial Capital and Risk per Trade (%).
Target: Enter Entry Price, TP, and SL prices.
Leverage: Specify your leverage (e.g., 10x).
Direction: Choose Long or Short.
Display Settings: Customize Line Width, Line Style, Label Size, and Line Extension.
Analyze: The indicator plots Entry, TP, SL, and Liquidation levels on the chart and displays a table with all trade metrics.
Validate: Check the Trade Status in the table to ensure your setup is valid or if adjustments are needed.
🎯 Why Use It?
Plan Smarter: Visualize your trade setup and understand your risk/reward profile instantly.
Stay Disciplined: Precise position sizing and risk calculations help you stick to your trading plan.
Avoid Mistakes: Clear validation warnings prevent costly errors like incorrect TP/SL placement or liquidation risks.
User-Friendly: Intuitive visuals and a summary table make trade analysis quick and easy.
📝 Notes
Ensure Entry, TP, and SL prices align with your trade direction to avoid "Incorrect" or "Liquidation" statuses.
The indicator updates dynamically on the latest bar, ensuring real-time visuals.
Best used with proper risk management to maximize trading success! 💪
Happy trading! 🚀📈
Educational
LIVE BUY AND SELL SIGNAL Its gives a consistent buy or sell signal depending on the volume of buyers and sellers.
Golden Duck Runner With TargetsGolden Duck Runner With Targets
Overview
The Golden Duck Runner is a comprehensive trend-following indicator designed for intraday and swing trading. It combines dual EMA analysis with pullback detection to identify high-probability entry points in trending markets.
Key Features
Core Signal Logic
Dual EMA System: Uses a fast EMA (default 18) and trend filter EMA (default 111)
Pullback Detection: Identifies when price pulls back to the fast EMA while staying above/below the trend filter
Trend Confirmation: Only generates signals in the direction of the overall trend
Visual Elements
Dynamic EMA Colors: Golden fast EMA, with trend filter changing from teal (uptrend) to orange (downtrend)
Entry Signals: Clear golden arrows marking buy/sell opportunities
Target Levels: Displays three take profit levels and stop loss with visual confirmation
Professional Dashboard: Real-time position and trend information
Risk Management
Fixed Tick-Based Targets: Consistent risk/reward ratios across all instruments
Multiple Take Profits: Three progressive profit-taking levels (30, 50, 75 ticks)
Stop Loss Protection: 36-tick stop loss with visual tracking
Position Duration Limit: Automatic closure after 20 bars if targets not reached
Alert System
Comprehensive alert notifications for:
Long and short entry signals
Individual take profit level hits (TP1, TP2, TP3)
Stop loss activation
Combined alerts for any entry or profit-taking event
How It Works
Entry Conditions
Long Signal:
Market in uptrend (Fast EMA > Trend Filter EMA)
Price pulls back below fast EMA but stays above trend filter EMA
Price closes back above fast EMA with momentum
Short Signal:
Market in downtrend (Fast EMA < Trend Filter EMA)
Price pulls back above fast EMA but stays below trend filter EMA
Price closes back below fast EMA with momentum
Exit Strategy
TP1: 30 ticks from entry (partial profit)
TP2: 50 ticks from entry (partial profit)
TP3: 75 ticks from entry (final target)
Stop Loss: 36 ticks against entry
Time Exit: 20 bars maximum hold time
Customization Options
Adjustable EMA periods for different timeframes
Configurable stop loss and take profit levels
Toggle visibility of EMAs, signals, and visual elements
Professional color scheme optimized for all chart backgrounds
Best Use Cases
Futures Trading: ES, NQ, YM, RTY with tick-based precision
Forex Pairs: Major and minor currency pairs
Crypto Markets: Bitcoin, Ethereum, and altcoins
Stock Indices: SPY, QQQ, and sector ETFs
Recommended Timeframes
Scalping: 1m, 3m, 5m charts
Intraday: 15m, 30m, 1H charts
Swing Trading: 4H, 1D charts
Educational Value
This indicator teaches traders:
Trend identification and confirmation
Pullback trading strategies
Proper risk management techniques
Multi-target profit-taking approaches
Important Notes
Not Financial Advice: This indicator is for educational and analysis purposes only
Backtesting Recommended: Test on historical data before live trading
Risk Management: Always use proper position sizing and risk controls
Market Conditions: Performance may vary in different market environments
Technical Specifications
Version: Pine Script v5
Overlay: True (plots on price chart)
Alerts: Full alert integration for automated trading systems
Performance: Optimized for real-time data processing
Compatibility: Works on all TradingView subscription levels
Disclaimer: Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always trade with proper risk management and never risk more than you can afford to lose.
Market Opening Time### TradingView Pine Script "Market Opening Time" Explanation
This Pine Script (`@version=5`) is an indicator that visually highlights market trading sessions (Sydney, London, New York, etc.) by changing the chart's background color. It adjusts for U.S. and Australian Daylight Saving Time (DST).
---
#### **1. Overview**
- **Purpose**: Changes the chart's background color based on UTC time zones to highlight market sessions.
- **Features**:
- Automatically adjusts for U.S. DST (2nd Sunday of March to 1st Sunday of November) and Australian DST (1st Sunday of October to 1st Sunday of April).
- Assigns colors to four time zones (00:00, 06:30, 14:00, 21:00).
- **Use Case**: Helps forex/stock traders identify active market sessions.
---
#### **2. Key Logic**
- **DST Detection**:
- `f_isUSDst`: Checks U.S. DST status.
- `f_isAustraliaDst`: Checks Australian DST status.
- **Time Adjustment** (`f_getAdjustedTime`):
- U.S. DST off: Shifts `time3` (14:00) forward by 1 hour.
- Australian DST off: Shifts `time4` (21:00) forward by 1 hour.
- **Time Conversion** (`f_timeToMinutes`): Converts time (e.g., "14:00") to minutes (e.g., 840).
- **Current Time** (`f_currentTimeInMinutes`): Gets UTC time in minutes.
- **Background Color** (`f_getBackgroundColor`):
- Applies colors based on time ranges:
- 00:00–06:30: Orange (Asia)
- 06:30–14:00: Purple (London)
- 14:00–21:00: Blue (New York, DST-adjusted)
- 21:00–00:00: Red (Sydney, DST-adjusted)
- Outside ranges: Gray
---
#### **3. Settings**
- **Time Zones**:
- `time1` = 00:00 (Orange)
- `time2` = 06:30 (Purple)
- `time3` = 14:00 (Blue, DST-adjusted)
- `time4` = 21:00 (Red, DST-adjusted)
- **Colors**: Transparency set to 90 for visibility.
---
#### **4. Example**
- **September 5, 2025, 10:25 PM JST (13:25 UTC)**:
- U.S. DST active, Australian DST inactive.
- 13:25 UTC falls between `time2` (06:30) and `time3` (14:00) → Background is **Purple** (London session).
- **Effect**: Background color changes dynamically to reflect active sessions.
---
#### **5. Customization**
- Modify `time1`–`time4` or colors for different sessions.
- Add time zones for other markets (e.g., Tokyo).
---
#### **6. Notes**
- Uses UTC; ensure chart is set to UTC.
- DST rules are U.S./Australia-specific; verify for other regions.
A simple, visual tool for tracking market sessions.
----
### TradingView Pine Script「Market Opening Time」解説
このPine Script(`@version=5`)は、市場の取引時間帯(シドニー、ロンドン、ニューヨークなど)を背景色で視覚化するインジケーターです。米国とオーストラリアの夏時間(DST)を考慮し、時間帯を調整します。
---
#### **1. 概要**
- **目的**: UTC基準の時間帯に基づき、チャートの背景色を変更して市場セッションを強調。
- **機能**:
- 米国DST(3月第2日曜~11月第1日曜)とオーストラリアDST(10月第1日曜~4月第1日曜)を自動調整。
- 4つの時間帯(00:00、06:30、14:00、21:00)に色を割り当て。
- **用途**: FXや株式トレーダーが市場のアクティブ時間を把握。
---
#### **2. 主要ロジック**
- **DST判定**:
- `f_isUSDst`: 米国DSTを判定。
- `f_isAustraliaDst`: オーストラリアDSTを判定。
- **時間調整** (`f_getAdjustedTime`):
- 米国DST非適用時: `time3`(14:00)を1時間遅延。
- オーストラリアDST非適用時: `time4`(21:00)を1時間遅延。
- **時間変換** (`f_timeToMinutes`): 時間(例: "14:00")を分単位(840)に変換。
- **現在時刻** (`f_currentTimeInMinutes`): UTCの現在時刻を分単位で取得。
- **背景色** (`f_getBackgroundColor`):
- 時間帯に応じた色を適用:
- 00:00~06:30: オレンジ(アジア)
- 06:30~14:00: 紫(ロンドン)
- 14:00~21:00: 青(ニューヨーク、DST調整)
- 21:00~00:00: 赤(シドニー、DST調整)
- 時間外: グレー
---
#### **3. 設定**
- **時間帯**:
- `time1` = 00:00(オレンジ)
- `time2` = 06:30(紫)
- `time3` = 14:00(青、DST調整)
- `time4` = 21:00(赤、DST調整)
- **色**: 透明度90で視認性確保。
---
#### **4. 使用例**
- **2025年9月5日22:25 JST(13:25 UTC)**:
- 米国DST適用、豪DST非適用。
- 13:25は`time2`(06:30)~`time3`(14:00)の間 → 背景色は**紫**(ロンドン)。
- **効果**: 時間帯に応じて背景色が変化し、市場セッションを直感的に把握。
---
#### **5. カスタマイズ**
- 時間帯(`time1`~`time4`)や色を変更可能。
- 他の市場(例: 東京)に対応する時間帯を追加可能。
---
#### **6. 注意点**
- UTC基準のため、チャート設定をUTCに。
- DSTルールは米国・オーストラリア準拠。他地域では要確認。
シンプルで視覚的な市場時間インジケーターです。
US Elections Democrate-Republicain (1920-2025)This script shows the different U.S. presidents and indicates whether each was Democratic or Republican. It allows users to analyze the market based on the president in office.
Major Wars with a signifiant economic impactThis indicator highlights major wars that have had a significant economic impact worldwide. It allows users to easily see their effects on the charts.
PPP – Info Table (Anchor + Corr/Alpha/Beta) v3PPP – Info Table (Anchor + Corr/Alpha/Beta)
- By P3 Analytics, run by Puranam Pradeep Picasso Sharma
🔎 Overview
This indicator creates a clean, dynamic information table on your chart that lets you quickly analyze how your chosen asset is performing relative to BTC, ETH, or any other benchmarks.
With a single glance, you can see:
% change from today’s open (for the anchor asset, BTC, and ETH)
Previous day % change (self + benchmarks)
Correlation, Beta, and Alpha statistics for the selected window (1W, 1M, 1Y)
Anchor values at any bar you choose (via Bars Back or Anchor Time)
Perfect for traders who want to measure coin strength vs benchmarks and make better rotation, risk, or hedging decisions.
📊 Key Metrics
Correlation (Corr): How closely the asset moves with the benchmark.
+1 = moves together, 0 = no relation, -1 = moves opposite.
Beta (β): Sensitivity of returns vs the benchmark.
β = 1 → moves 1:1 with BTC.
β > 1 → more volatile (amplifies BTC moves).
β < 1 → less volatile (defensive).
Alpha (α): Excess return beyond what Beta predicts.
Positive α = outperforming benchmark-adjusted expectation.
Negative α = underperforming.
⚙️ Features
Flexible Anchor Mode:
Bars Back → quickly step through bars.
Time → pin analysis to a specific historical candle.
Customizable Benchmarks: Default BTC & ETH (futures), but replaceable with any ticker.
Adjustable Stats Window:
1 Week, 1 Month, 1 Year (auto-scales if using chart timeframe).
Compact Mode for a smaller table layout.
Dark/Light Theme, font size, corner placement, transparency, and decimal control.
Runs efficiently with minimal chart clutter.
🧑💻 About P3 Analytics
This indicator is developed under P3 Analytics, a research & trading technology initiative led by Puranam Pradeep Picasso Sharma.
P3 Analytics builds tools that merge machine learning, statistics, and trading strategy into accessible products for traders across crypto, equities, forex, and commodities.
✅ How to Use
Add indicator to your chart.
In settings:
Pick your benchmarks (default = BTCUSDT.P, ETHUSDT.P).
Choose your anchor (Bars Back or Time).
Set window length for correlation/alpha/beta.
Read the table:
Left side = your asset.
Right side = benchmarks.
Colors: Green = positive % change, Red = negative.
🚀 Why Use This?
Quickly compare your asset vs BTC/ETH without juggling multiple charts.
Spot whether a coin is truly leading or just following BTC.
Identify outperformance (alpha) coins for rotation or trend plays.
Manage risk by knowing which assets are high beta (high leverage-like moves).
✦ Indicator by P3 Analytics
✦ Created & published by Puranam Pradeep Picasso Sharma
FVG valid MTF (Fair Value Gaps across Multiple Timeframes)This indicator automatically detects and displays Fair Value Gaps (FVGs) across multiple timeframes (1D, 4H, 1H, 30M, 15M, 5M).
✨ Features:
Detects valid FVGs only when they appear after three consecutive candles in the same direction (bullish or bearish).
Each gap is color-coded by direction (bullish / bearish) and changes color once mitigated.
Automatic timeframe label inside each FVG box.
Fully customizable:
Minimum & maximum FVG size (in ticks),
Extension length of boxes into the future (bars),
Maximum number of FVGs displayed per timeframe.
After mitigation, FVGs are visually updated, making it easy to see whether the market has respected the imbalance zone.
📊 Practical Use:
Identify areas of imbalance where strong price reactions often occur.
Monitor FVGs across multiple timeframes – from daily charts down to intraday.
Useful for defining support/resistance zones, entry levels, or trade exits.
⚙️ Settings:
Adjustable FVG colors for bullish, bearish, and mitigated states.
Independent limit on how many FVGs are displayed for each timeframe.
Optimized for clarity and chart performance.
GOLD – Dan Toma Patterns + Market Structure/OB [by Dragos] v3.2GOLD – Dan Toma Patterns + Market Structure/OB v3.2
(Panel x3 • Last R:R • Logical SL • HTF Filter)
All-in-one XAUUSD tool blending Dan Toma patterns (P1–P4) with Internal/External Market Structure, Order Blocks, fixed liquidity (PDH/PDL & sessions), breakout short, dip-buy on trend, a live signals panel, and auto-draw Entry/SL/TP for the last signal. Includes an HTF EMA filter (with slope) and logical Stop Loss to keep signals disciplined.
What it does
P1 – Trend Reverse SELL: structure shift (BOS down) + Supply rejection (wick/engulf) and/or RSI overbought.
P2 – Liquidity: hunts fixed liquidity: PDH/PDL and Asia/London/NY session highs/lows + wick rejection confirmation. BUY at PDL/session Lows, SELL at PDH/session Highs.
P3 – Breakout Short: tight range (ATR/ATRma below threshold) + break under range LL with volume spike.
P4 – Dip Buy: uptrend (EMA) + Demand + pullback to 61.8% (configurable) + RSI oversold.
Market Structure + OB: marks CHoCH/BOS on Internal/External and draws Order Blocks from the last opposite candle at the break (box cap & custom colors).
Auto R:R (last signal only): draws Entry/SL/TP1/TP2 (1.5R / 3R) for the most recent signal to keep the chart clean.
Logical SL: choose Pivot, SD Box, or %ATR and force correct placement (BUY: SL below entry / SELL: SL above entry).
HTF Filter: confirm direction with HTF EMA (custom TF/length), optional slope requirement (rising for BUY / falling for SELL).
Panel x3: compact panel with the last N signals (time, pattern, side, entry, SL, TP1, TP2); place it in any corner.
Quick workflow
HTF context: enable HTF filter (e.g., EMA 200 on H4) to lock a clean bias.
Structure & zones: let MS/OB mark CHoCH/BOS and Supply/Demand; look for confluence with PDH/PDL & session HLs.
Triggers:
SELL: P1/P2/P3 confluencing with Supply, BOS down, wick up, breakout volume.
BUY: P2/P4 in Demand, uptrend, pullback near 0.618, RSI OS.
Execution & management: confirm on bar close (optional repaintSafe), use logical SL, follow auto Entry/SL/TP lines of the last signal.
Panel: monitor fresh events (timestamp + details) for quick validation/journaling.
Key settings
General: XAU/GOLD filter, close-bar confirmation, optional candle labels, show Entry/SL/TP for the last signal only.
HTF: timeframe, EMA length, Need Slope toggle.
Structure/OB: Internal/External/Both/Off, swing lengths, OB lookback, max OB boxes.
Supply/Demand: pivot length (HH/LL) + wick fraction for imbalance detection.
Liquidity: PDH/PDL on/off, sessions (Asia/London/NY) and session HLs.
Breakout Short: range lookback, ATR/ATRma threshold, volume spike multiplier.
Dip Buy: EMA trend length, target Fibo retracement.
RSI/Volume: RSI length + OB/OS thresholds.
SL/TP: Pivot / SD Box / %ATR, ATR length & multiplier, forceLogicalSL.
Alerts (ready to use)
P1 – Trend Reverse SELL
P2 – Liquidity Short
P2 – Liquidity Buy
P3 – Breakout Short
P4 – Dip Buy
(Messages include current price; for auto-execution use your own bridge/automation.)
Recommendations
Timeframes: M5/M15 for entries, H1/H4 for context.
Look for 2–3 confluences (MS, OB, PDH/PDL/sessions, RSI/volume) before validating a signal.
Avoid flat, low-volume ranges or thin-liquidity periods.
Disclaimer
This is an analysis tool, not financial advice. Trading involves risk. Use strict risk management (risk < 1%/trade, R:R ≥ 1:2, mandatory SL) and test on demo/backtest before going live.
GOLD – OB Clean + Internal/External Market Structure [Dragos]GOLD – OB Clean + Internal/External Market Structure
All-in-one tool for XAUUSD that combines:
Clean Order Blocks (Supply/Demand) derived from the last opposite candle after a BOS (break of structure)
Internal & External Market Structure (CHoCH/BOS) with lines and labels
Visual zone management: right extension, mitigation (first touch), invalidation (close beyond), and 50% midline
How it works
Structure & BOS
Finds pivots (HH/LL) via Pivot len.
Triggers BOS when price crosses the last confirmed swing.
Order Blocks
On BOS, scans the last N bars for the opposite candle (bear for BOS up / bull for BOS down) and draws the OB:
Green = Demand, Red = Supply
Optional: use wicks (high/low) or just the body (open/close).
Mitigation: on first touch the zone fades or hides (per settings).
Invalidation: if price closes beyond the zone, it turns gray or gets removed (per settings).
Midline: 50% line for refined management (partial entries, R/R, etc.).
Internal / External Structure
Two structure layers: Internal (micro, shorter swing) and External (macro, longer swing).
Displays CHoCH/BOS with labels; External lines can be dashed for clarity.
Choose to show Internal, External, or Both.
Key Settings
Structure
Pivot len (swing HH/LL) — pivot sensitivity.
Order Blocks
Lookback N bars for the opposite candle
Use wicks — if on, zone uses high/low; otherwise just the body.
Zone Management
Extend zones to the right
Hide zone after mitigation (touch)
Fade zone after mitigation
Remove zone when invalidated
Show 50% line
Max zones stored
Colors: fill/border for Demand/Supply, 50% line color, Mitigated/Invalidated colors.
General
Only on XAU/GOLD (optional) — restricts execution to symbols containing “XAU”/“GOLD”.
Market Structure (tab)
Internal Swing Length / External Swing Length
Show Internal/External Market Structure (Both / Internal / External)
Colors for bullish/bearish MS
Usage Guide
Recommended timeframes: M5/M15 for entries, H1 for context.
Workflow:
Determine External (macro) direction.
Look for BOS and OB in the same direction on Internal.
Wait for mitigation (touch) inside the OB; the 50% line can be used for conservative entries.
Good confluences: sessions (killzones), volume spikes, extreme RSI, MAs (add as separate indicators if needed).
Visual Conventions
Demand: green; Supply: red.
Mitigated: faded yellow (or hidden if chosen).
Invalidated: gray (or removed).
50% line: gray.
Notes & Limits
Pine v6. Object caps follow TradingView limits (max_* = 500). On long histories, increase “Max zones stored” carefully.
BOS is computed when price crosses the last confirmed swing; some traders prefer “close-only” confirmation (can be customized if desired).
This tool does not auto-generate BUY/SELL signals; it’s a context & zones assistant.
Risk disclaimer: Trading involves risk. This tool is for educational analysis and does not guarantee profit. Use strict risk management (fixed SL, R:R ≥ 1:2, risk < 1% per trade).
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.
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.
// ───────────────────────────────────────────────────────────────────────────────
Top Catcher | QRTop Catcher | QuantumResearch
The Top Catcher indicator is designed to help traders spot areas where markets may be forming local tops. Instead of relying on simple overbought measures like RSI or Bollinger Bands, it combines percentile-based price extremes with a volatility-adjusted filter. This approach helps highlight situations where price has stretched unusually far and then shows signs of weakness.
🔍 How It Works (Principle)
Percentile Analysis: The script measures whether price has reached an extreme compared to its recent distribution (very high percentile).
Volatility Confirmation: It checks if price fails to sustain above a volatility-adjusted upper boundary.
Signal Generation: Only when both conditions align does the script mark a potential Top with a visual triangle above the bar.
This dual-layer approach aims to reduce false signals often triggered in strong trends by single-metric tools.
🎯 Key Features
Top Signals: Plots a clear triangle above candles when potential exhaustion is detected.
Dynamic Adaptation: Works across different assets and timeframes by adjusting to each market’s own volatility.
Visual Overlay: Signals are plotted directly on the chart for intuitive reading.
Alert Ready: Built-in alerts let traders get notified as soon as a new Top signal is generated.
📈 How To Use
Trend Traders: Use signals to tighten stops or take partial profits in extended runs.
Swing Traders: Watch for reversal setups at local highs.
Multi-Timeframe Approach: Combine higher timeframe signals with intraday charts for confirmation.
The script is not meant to predict exact tops, but rather to provide an early warning of distribution zones where risk increases.
⚠️ Disclaimer
This tool is provided for educational and research purposes only. It is not financial advice. Past performance does not predict or guarantee future results. Always combine this tool with your own analysis and risk management.
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
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.
Stock Fundamentals Health Map
I came up with this script because, like a lot of us, I was always bugging AI about every ticker under the sun—asking for breakdowns, forecasts, you name it. But then it hit me: wouldn't it be way faster if I could just glance at the stock chart and get a quick snapshot of the company's financial guts right there?. Also, i didnt bother looking up another indicator script because i want it that way.
This "Stock Fundamentals Health Map" is basically your jumping-off point before you go full detective mode on the fundamentals. It's not meant to be the end-all-be-all, just a smart way to spot red flags or green lights without wasting hours.
Here's the deal: TradingView has this treasure of financial stats for stocks—stuff like margins, ratios, growth numbers, and more—pulled from their database after earnings drops. The script grabs 40 of those for your chosen period (Fiscal Year, Quarter, Half, or Trailing Twelve Months—you pick in the settings, and 40 because your broke boy doesnt have a premium TV sub).
But raw numbers? Meh, they're just digits. So, we grade 'em. Think of it like a report card for the company: Excellent (or "Great" in some spots), Good, Fair, Poor, or Weak (I called it "Pathetic" in my head at first, but toned it down).
How do we grade? Based on thresholds for each metric. For instance, a Gross Margin over 60%? Excellent, baby—that's premium efficiency. 40-60%? Solid Good. Down to under 10%? Weak, might wanna think twice. Same logic for everything else: Altman Z-Score (bankruptcy risk—higher is safer), Beneish M-Score (earnings manipulation detector—lower is cleaner), ROE, EV/EBITDA, you get the idea. But hey, maybe you disagree with my defaults. No sweat—the settings let you tweak every single threshold. Want to be stricter on Debt-to-Equity? Crank it up. Think Dividend Yield needs a higher bar for "Excellent"? Go for it. It's your world; I'm just scripting in it.
Dont know what all those metrics mean? Use the tool tip. Still dont understand? Keep the defaults.
Once graded, we don't stop there. Each metric gets a weight (default is 1, for equal love), but if you're obsessed with Free Cash Flow Margin over, say, Asset Turnover, bump its weight to 2, 5, or even 100. FFT FAFO. The script multiplies grades by weights, adds 'em up, and spits out an overall score and grade for the stock. Excellent if it's crushing it (90%+), down to Weak if it's wheezing. Plus, it categorizes the stock type—Growth, Value, Quality, Dividend, Momentum—based on how it scores in those buckets. Handy for knowing if it's a high-flyer or a dead divi.
And because not all stocks are created equal, it throws in sector-specific smarts. REITs get FFO and AFFO grades (funds from operations—key for real estate trusts). Tech and Healthcare? R&D Intensity to check if they're innovating or slacking. Energy folks get Capex-to-Sales (lower is better for efficiency in that capital-hungry world). Utilities? Debt Service Coverage to see if they can handle the bills. If your ticker doesn't fit those, it skips 'em—no junk data. You dont see all that because TV might have that data with N/A entered in it.
The output? A clean table slapped on your chart (top-right by default and cant move it around, because being at the top and being right is all you need). Columns for metrics, values + grades, all color-coded: green for Excellent, lime for Good, yellow Fair, orange Poor, red Weak. Headers in blue, text customizable—pick your colors, transparency, sizes. It's overlay=true, so it vibes with your price action without cluttering.
Sure, these numbers are just what TradingView's crack team inputs post-earnings—could be off, or laggy, or whatever. They don't predict the future; markets are wild. But it's a lot better than panic-buying on a hunch. Gives you that quick financial health map to ponder before you leap into a trade that could change your life... or your portfolio's. ;)
If you need the source code, ask Grok AI. I got it from there. Too lazy to do that? Follow me on X and i'll dm you after you prove that you are not a bot.
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
Supertrend Long/Short with Adjustable R:R by JJThis script is a Supertrend-based trading tool with:
Long/Short trade signals
Risk/reward calculation
Position sizing based on risk, capital, and max shares
Visual labels for entries, targets, and stops
Checkmarks (✔) for successful trades and crosses (❌) for stopped trades
Alerts for trade entries
It’s designed for visual analysis on charts, helping you see trades, their targets, and whether they hit profit or stop-loss.
High For Loop | MisinkoMasterThe High For Loop is a new Trend Following tool designed to give traders smooth and fast signals without being too complex, overfit or repainting.
It works by finding how many bars have a higher high than the current high, how many have a lower high, and scores it based on that. This provides users with easy and accurate signals, allowing for gaining a large edge in the market.
It is pretty simple but you can still play around with it pretty well and improve uppon your strategies.
For any backtests using strategies, I left many comments and tried to make it as easy as possible to backtest.
Enjoy G´s
Machine Learning : Neural Network Prediction -EasyNeuro-Machine Learning: Neural Network Prediction
— An indicator that learns and predicts price movements using a neural network —
Overview
The indicator “Machine Learning: Neural Network Prediction” uses price data from the chart and applies a three-layer Feedforward Neural Network (FNN) to estimate future price movements.
Key Features
Normally, training and inference with neural networks require advanced programming languages that support machine learning frameworks (such as TensorFlow or PyTorch) as well as high-performance hardware with GPUs. However, this indicator independently implements the neural network mechanism within TradingView’s Pine Script environment, enabling real-time training and prediction directly on the chart.
Since Pine Script does not support matrix operations, the backpropagation algorithm—necessary for neural network training—has been implemented entirely through scalar operations. This unique approach makes the creation of such a groundbreaking indicator possible.
Significance of Neural Networks
Neural networks are a core machine learning method, forming the foundation of today’s widely used generative AI systems, such as OpenAI’s GPT and Google’s Gemini. The feedforward neural network adopted in this indicator is the most classical architecture among neural networks. One key advantage of neural networks is their ability to perform nonlinear predictions.
All conventional indicators—such as moving averages and oscillators like RSI—are essentially linear predictors. Linear prediction inherently lags behind past price fluctuations. In contrast, nonlinear prediction makes it theoretically possible to dynamically anticipate future price movements based on past patterns. This offers a significant benefit for using neural networks as prediction tools among the multitude of available indicators.
Moreover, neural networks excel at pattern recognition. Since technical analysis is largely based on recognizing market patterns, this makes neural networks a highly compatible approach.
Structure of the Indicator
This indicator is based on a three-layer feedforward neural network (FNN). Every time a new candlestick forms, the model samples random past data and performs online learning using stochastic gradient descent (SGD).
SGD is known as a more versatile learning method compared to standard gradient descent, particularly effective for uncertain datasets like financial market price data. Considering Pine Script’s computational constraints, SGD is a practical choice since it can learn effectively from small amounts of data. Because online learning is performed with each new candlestick, the indicator becomes a little “smarter” over time.
Adjustable Parameters
Learning Rate
Specifies how much the network’s parameters are updated per training step. Values between 0.0001 and 0.001 are recommended. Too high causes divergence and unstable predictions, while too low prevents sufficient learning.
Iterations per Online Learning Step
Specifies how many training iterations occur with each new candlestick. More iterations improve accuracy but may cause timeouts if excessive.
Seed
Random seed for initializing parameters. Changing the seed may alter performance.
Architecture Settings
Number of nodes in input and hidden layers:
Increasing input layer nodes allows predictions based on longer historical periods. Increasing hidden layer nodes increases the network’s interpretive capacity, enabling more flexible nonlinear predictions. However, more nodes increase computational cost exponentially, risking timeouts and overfitting.
Hidden layer activation function (ReLU / Sigmoid / Tanh):
Sigmoid:
Classical function, outputs between 0–1, approximates a normal distribution.
Tanh:
Similar to Sigmoid but outputs between -1 and 1, centered around 0, often more accurate.
ReLU:
Simple function (outputs input if ≥ 0, else 0), efficient and widely effective.
Input Features (selectable and combinable)
RoC (Rate of Change):
Measures relative price change over a period. Useful for predicting movement direction.
RSI (Relative Strength Index):
Oscillator showing how much price has risen/fallen within a period. Widely used to anticipate direction and momentum.
Stdev (Standard Deviation, volatility):
Measures price variability. Useful for volatility prediction, though not directional.
Optionally, input data can be smoothed to stabilize predictions.
Other Parameters
Data Sampling Window:
Period from which random samples are drawn for SGD.
Prediction Smoothing Period:
Smooths predictions to reduce spikes, especially when RoC is used.
Prediction MA Period:
Moving average applied to smoothed predictions.
Visualization Features
The internal state of the neural network is displayed in a table at the upper-right of the chart:
Network architecture:
Displays the structure of input, hidden, and output layers.
Node activations:
Shows how input, hidden, and output node values dynamically change with market conditions.
This design allows traders to intuitively understand the inner workings of the neural network, which is often treated as a black box.
Glossary of Terms
Feature:
Input variables fed to the model (RoC/RSI/Stdev).
Node/Unit:
Smallest computational element in a layer.
Activation Function:
Nonlinear function applied to node outputs (ReLU/Sigmoid/Tanh).
MSE (Mean Squared Error):
Loss function using average squared errors.
Gradient Descent (GD/SGD):
Optimization method that gradually adjusts weights in the direction that reduces loss.
Online Learning:
Training method where the model updates sequentially with each new data point.