BuySell Volume Bar Chart• Separates estimated Buy and Sell volume per bar using price action logic
• Plots them in a dual-axis format: buy volume goes up, sell volume goes down
• Colors are dynamic — whichever side dominates gets the stronger color, the weaker side is shaded
• Includes a live difference metric (Δ Volume) as a third value in the indicator title
• Automatically filters out flat/no-move bars to avoid misleading spikes
The live difference metric ("Δ Volume") can be controlled.
This metric calculates the difference between the buying and selling volume live, where it takes the Buy Volume - Sell Volume.
This difference is then displayed in either green (BV > SV) or red (SV > BV). You can toggle it on/off by entering the indicator's settings or double tapping the indicator name on the TV chart.
Another pretty cool thing is the modular colors - you can customize your candle colors and shades to your liking within the code!
指標和策略
Scalp Trading Setup (EMA9/21 + VWAP + Stoch RSI)
On 1-minute, wait for candle confirmation and volume spikes to avoid false signals.
On 5-minute, this setup is most reliable for clean trend scalping (ideal entry alignment).
Use 15-minute for direction bias only, not for entry.
Economy RadarEconomy Radar — Key US Macro Indicators Visualized
A handy tool for traders and investors to monitor major US economic data in one chart.
Includes:
Inflation: CPI, PCE, yearly %, expectations
Monetary policy: Fed funds rate, M2 money supply
Labor market: Unemployment, jobless claims, consumer sentiment
Economy & markets: GDP, 10Y yield, US Dollar Index (DXY)
Options:
Toggle indicators on/off
Customizable colors
Tooltips explain each metric (in Russian & English)
Perfect for spotting economic cycles and supporting trading decisions.
Add to your chart and get a clear macro picture instantly!
Multi-Timeframe Fibonacci Retracement [HG]# 🌀 Fibonacci Multi-Timeframe Indicator
## 🌟 Overview
An advanced Fibonacci-based indicator utilizing three distinct timeframes (5, 14, and 34 periods) to provide comprehensive market analysis. This powerful tool combines short-term momentum with medium and long-term trend perspectives, all based on the mathematical precision of Fibonacci sequence numbers.
## 🔧 Core Features
### 📊 Triple Fibonacci System
- **Fast Signal (5 periods)**: Ultra-responsive for scalping and quick entries
- **Medium Signal (14 periods)**: Balanced approach for swing trading
- **Slow Signal (34 periods)**: Long-term trend identification and confirmation
- **Fibonacci Harmony**: All periods based on authentic Fibonacci sequence
### 🎯 Multi-Timeframe Analysis
- **Convergence Signals**: When all three timeframes align
- **Divergence Detection**: Early warning of potential reversals
- **Momentum Layers**: Different speed signals for complete market picture
- **Trend Strength**: Measured through multiple Fibonacci perspectives
## 🎨 Customization Options
### 🎭 Visual Configuration
- **Individual Colors**: Separate color schemes for each timeframe
- **Line Styles**: Solid, Dashed, or Dotted options for clear differentiation
- **Line Thickness**: Adjustable width (1-5 pixels) for optimal visibility
- **Transparency Control**: Fine-tune opacity for overlapping signals
### ⚙️ Technical Parameters
- **Source Selection**: Configurable input (Close, Open, High, Low, HLC3)
- **Smoothing Options**: Additional filtering for cleaner signals
- **Alert System**: Notifications for convergence and crossover events
- **Display Toggle**: Enable/disable individual timeframe components
## 📈 Trading Applications
### 🎯 Signal Generation
- **Triple Confirmation**: Highest probability when all timeframes agree
- **Early Entry**: Fast signal (5) for quick market entries
- **Trend Confirmation**: Slow signal (34) validates overall direction
- **Exit Timing**: Medium signal (14) for optimal trade management
### 🔍 Market Analysis
- **Trend Identification**: Clear visualization of market direction
- **Momentum Shifts**: Early detection through Fibonacci relationships
- **Support/Resistance**: Dynamic levels based on Fibonacci calculations
- **Market Cycles**: Natural rhythm recognition through mathematical harmony
### ⚡ Trading Strategies
- **Scalping**: Ultra-fast 5-period signals for quick profits
- **Swing Trading**: 14-period balance for medium-term positions
- **Position Trading**: 34-period confirmation for long-term holds
- **Confluence Trading**: Maximum edge when all signals align
## 🚀 Key Benefits
✅ **Fibonacci Precision** - Mathematical accuracy of golden ratio sequences
✅ **Multi-Timeframe Edge** - Complete market perspective in one indicator
✅ **Natural Market Rhythm** - Fibonacci numbers reflect market psychology
✅ **Versatile Application** - Works across all markets and timeframes
✅ **High Probability Setups** - Triple confirmation reduces false signals
✅ **Professional Grade** - Institution-quality analysis tools
## 💡 Pro Trading Tips
- Wait for triple alignment for highest probability trades
- Use fast signal for entries, slow signal for trend bias
- Monitor divergences between timeframes for reversal opportunities
- Combine with support/resistance for confluence trading
- Scale position sizes based on timeframe agreement strength
## 🔢 Fibonacci Magic
The periods 5, 14, and 34 are not random - they represent consecutive Fibonacci numbers that naturally resonate with market movements and trader psychology, providing optimal market timing and trend analysis.
---
*Perfect for traders seeking mathematical precision combined with multi-timeframe market analysis.*
NY Open ATR System - Tick Range Filter### **New York Open ATR System - Brief Overview**
#### **🎯 Core Purpose**
Identifies **high-potential breakout setups** at the New York open (13:30 UTC) by combining:
1. **Volatility filters** (dual ATR periods)
2. **Tick-based range analysis**
3. **Time-specific triggers**
---
### **⚙️ Key Components**
| **Feature** | **Function** |
|---------------------------|-----------------------------------------------------------------------------|
| **ATR Filters** | Dual volatility checks (short + long periods) at 13:25 UTC |
| **Tick Range Limit** | Highlights candles with range < user-defined ticks (default: 150) |
| **Time Precision** | Focuses exclusively on 13:30 UTC weekday candles |
| **Visual Markers** | Yellow highlight + tick count label (e.g., "147/150 ticks") |
| **Info Panel** | Real-time display of settings and current tick count |
---
### **📊 How It Works**
1. **Pre-Open Check (13:25 UTC)**
- Verifies market volatility using 2 ATR values
- Requires both to exceed user-defined thresholds
2. **Open Analysis (13:30 UTC)**
- Measures exact tick count: `(high - low) / instrument_mintick`
- Compares against your max tick limit (adjustable 1-5000)
3. **Visual Trigger**
- Highlights candle yellow if:
```tick_count < your_set_limit```
- Labels show exact performance vs limit (e.g., "142/150 ticks")
---
### **⚡ Trading Signals**
| **Condition** | **Visual Feedback** |
|----------------------------|---------------------------------------------|
| High volatility + tight range | Yellow candle + tick count label |
| All other scenarios | No marking |
---
### **🛠️ Customization**
```pine
// Key Adjustable Parameters:
maxTicks = input.int(150) // Set 1-5000 ticks
atrPeriod1 = input.int(14) // Short ATR (2-5000)
atrPeriod2 = input.int(161) // Long ATR (2-5000)
candleColor = input.color(color.yellow) // Highlight color
```
---
### **💡 Practical Use Cases**
1. **Breakout Anticipation**
- Tight ranges after volatility spikes often precede strong moves
2. **Session Scalping**
- Identify low-range opens for mean-reversion plays
3. **Volatility Filtering**
- Avoid trading when ATR thresholds aren't met
---
### **📈 Suggested Settings**
| **Market** | **Max Ticks** | **ATR Periods** |
|------------------|--------------|----------------|
| Forex (EUR/USD) | 100-200 | 14/161 |
| Stocks (SPY) | 50-120 | 10/200 |
| Crypto (BTC) | 300-500 | 20/100 |
---
### **✅ Benefits**
- **Precision Timing**: Focused on NY open liquidity surge
- **Quantitative Filtering**: Exact tick measurement + volatility thresholds
- **Clean Visuals**: No chart clutter - only marks qualifying candles
- **Adaptable**: Works across all markets and timeframes
This system helps traders spot high-probability breakout setups by combining volatility anticipation with precise range measurement at the market's most liquid opening window.
Checklist Dashboard Table# Checklist Dashboard Table – ICT/SMC Trading Helper
Overview
The “Checklist Dashboard Table” is a TradingView indicator designed to help traders structure, organize, and validate their market analyses following the ICT/SMC (Inner Circle Trader / Smart Money Concepts) methodology. It provides a visual and interactive checklist directly on your chart, ensuring you never miss a crucial step in your decision-making process.
Key Features
- Visual Checklist : All your trading criteria are displayed as color-coded checkboxes (green for validated, red for not validated), making your analysis process both clear and efficient.
- Clear Separation Between Analysis and Confirmations :
- Analysis : Reminders for your routine, such as timeframe selection (M3 to H4), trend analysis via RSI, and identification of key zones (Midnight Open, SSL/BSL, Asian High/Low).
- Confirmations : Six customizable criteria to check off as you validate your setup (clear trend, OB + FVG, OTE zone, Premium/Discount, R/R > 1:2, CBDR/Midnight).
- Personal Notes Section : Keep your trade entries, observations, or comments in a dedicated field in the indicator’s settings. Your notes are displayed right in the checklist for quick reference and journaling.
- Elegant and Compact Display : The table is styled for readability and can be positioned anywhere on your chart.
- Quick Customization : Instantly update any criterion or your personal notes via the script settings.
How to Use
1. Add the indicator to your chart.
2. Review the “Analysis” section as your pre-trade routine reminder.
3. Check off the “Confirmations” criteria as you validate your entry strategy.
4. Write your trade notes or comments in the provided notes section.
5. Use the checklist to reinforce discipline and repeatability in your trading.
Why Use This Checklist?
- Prevents you from skipping important steps in your analysis.
- Reinforces trading discipline and consistency.
- Allows you to document and review your trade decisions for ongoing improvement.
Who Is It For?
Perfect for ICT/SMC traders, but also valuable for anyone looking to organize and systematize their trading process.
Happy trading!
Crypto Sentiment + Correlation📊 Crypto Sentiment + Correlation Indicator
Key Features:
- 🔄 Sentiment Aggregation: Measures price momentum vs moving averages across BTC, LTC, ETH, XRP, and SOL.
- ⚖️ Flexible Weighting Options: Choose between equal weight, market cap weighting, or volume-driven sentiment for tailored insights.
- 📈 Visual Candles & Background Signals: Uses sentiment-based candle overlays and color-coded signals to indicate potential shifts or divergence.
- 📊 BTC Correlation Map: Tracks correlation strength and direction between combined sentiment and Bitcoin’s price movement.
- 🧠 Technical Overlays: EMA and Bollinger Bands help contextualize sentiment trends with traditional indicators.
- 🎨 Stylized SMA Layers: Adds intuitive multi-format SMA visualization with area fill and stepped markers for easy spotting of trend shifts.
Why Use It:
Whether you're swing trading or refining entries on crypto positions, this tool gives you a snapshot of what the “mood” across major coins looks like—are the markets in harmony or diverging from BTC’s path? Use it to stay ahead of trend reversals, spot overextended rallies, or confirm bullish sentiment before you jump in.
High Win Rate XAUUSD Strategy (EMA21 + RSI + Volume MA20)Buy Conditions:
Price above EMA 21
EMA 21 is rising
RSI > 55 and RSI increasing
Close is above EMA 21
Current candle is green (close > open)
Volume > MA20 of volume
Price below EMA 21
EMA 21 is falling
RSI < 45 and RSI decreasing
Close is below EMA 21
Current candle is red (close < open)
Volume > MA20 of volume
Average Daily % Change by Weekday📊 Average Daily % Change by Weekday
This script calculates and displays the average daily percentage change for each weekday (Monday through Sunday) based on historical price data. It helps traders analyze which days tend to be bullish or bearish over a selected backtest date range.
✅ Features:
Customizable date range (From Year/Month/Day to To Year/Month/Day)
Calculates average % change for each weekday (Mon–Sun)
Supports assets that trade 7 days (e.g., crypto)
Color-coded outputs (green = positive, red = negative)
Final results shown as a table in the bottom-right corner
Works only on the 1D timeframe (daily)
🧠 How it works:
For each day within the selected date range:
The script calculates the % change as: (Close - Open) / Open * 100
Then, it groups the data by weekday and averages the values
This gives you insight into how each day of the week behaves historically for the current asset.
⚠️ Notes:
This script only works on daily (1D) timeframes.
For most accurate results, use it on assets with long trading history (e.g., BTCUSD).
Designed for educational and statistical analysis purposes.
PietasterThis Pine Script (v6) indicator plots a 111-day Simple Moving Average (SMA) and a 2 * 350-day SMA (equivalent to a 700-day SMA) for Bitcoin's price, displayed on any timeframe. It highlights crossover points with vertical lines: green for bullish crossovers (111-day MA crosses above 700-day MA) and purple for bearish crossovers (111-day MA crosses below 700-day MA). Vertical lines extend 50% above the highest price and 50% below the lowest price at the crossover, ensuring visibility through price action. Labels identify the moving averages for clarity.
Daily SMA Levels on Intraday📌 Indicator Overview: Daily SMA Levels on Intraday
🔧 What It Does
- Plots horizontal lines for up to eight daily SMAs: 5, 10, 20, 50, 100, 150, 200
- Displays dynamic labels at the end of each line showing both the SMA name and current value
- Works on intraday timeframes, pulling daily calculations for reference
- Lets you toggle each SMA line individually from the settings
- Offers three line styles—Solid, Dashed, and Dotted
- Includes a line thickness slider, giving you visual control
- Positions labels with left-pointing arrows for visual alignment without clutter
💡 Benefits of This Indicator,
🎯 Precision Entry & Exit Zones
Daily SMAs often act as support or resistance levels on lower timeframes. This indicator shows where these zones are in real time—even on a 1-minute chart.
🔍 Visual Trend Context
You see instantly if price is above or below critical SMAs like the 50 or 200, helping gauge bullish vs bearish bias.
⏱️ Intraday Awareness Without Clutter
Instead of switching to a daily chart, you can stay zoomed in and still track major daily trend lines.
Think of it like your intraday roadmap showing where institutional players might have interest—and where price could react.
RSI + ADX with Custom PeriodsThis script merger RSI and ADX into one indicator.
RSI and ADX has option to customize their individual periods.
EMA Slope First Flip Signal1. EMA Calculation:
It calculates 4 Exponential Moving Averages:
EMA 5 – very fast (captures short-term moves)
EMA 9 – fast
EMA 21 – medium
EMA 50 – long-term trend
2. Slope Calculation:
It finds the slope of each EMA using:
pinescript
Copy
Edit
slopeX = emaX - emaX
This checks if the EMA is rising (slope > 0) or falling (slope < 0).
3. Trend Condition:
Buy condition: All 4 EMA slopes must be positive
Sell condition: All 4 EMA slopes must be negative
4. First Signal Logic:
It only flashes a signal when the direction changes.
For example:
If EMAs were not all rising before, but now all are → BUY
If EMAs were not all falling before, but now all are → SELL
Prevents repeated signals during the same trend.
5. Safe Boolean Handling:
Uses bool(condition ) to access previous state without error
Avoids using nz() or na() on booleans (which causes errors)
📈 What You See on Chart:
✅ Green "BUY" label below candle when all EMA slopes turn positive for the first time
❌ Red "SELL" label above candle when all EMA slopes turn negative for the first time
🔄 No duplicate signals in the same direction — only on reversal
Lokie's RSI + VWAP + EMA Scalper [Fresh Edition]Lokie’s RSI + VWAP + EMA Scalper
Built for fast, smart scalping on 1–5 min charts. Combines RSI momentum, EMA crossovers, and VWAP zone bias to highlight clean buy/sell entries.
No FOMO signals. No fluff. Just tactical precision.
Perfect for momentum traders who want clarity, not clutter.
By DerekFWIN
NVDA Put Exit Alerts - Enhanced How to Use on These Timeframes:
5-15 min chart:
Look for price rejections or bounces at the weekly/monthly VWAP.
Confirm with CMF above 0.1 (buy pressure) or below -0.1 (sell pressure).
30-min to 1-hour chart:
Use to identify broader intraday swing moves that align with macro VWAP levels.
CMF will act as a filter for volume divergence setups.
Dashboard EMA Unifié [touli]DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute investment advice, a recommendation to buy or sell, or a solicitation for any transaction. Past performance is not indicative of future results. Trading involves significant risk, including the potential loss of capital. The user assumes full responsibility for their own trading decisions and risk management. The author of this script cannot be held liable for any losses or damages resulting from its use.
Indicator Title: Unified EMA Dashboard
Overview
This indicator is a comprehensive technical analysis tool that combines the display of Exponential Moving Averages (EMAs) on the chart with a multi-timeframe dashboard. It is designed to provide traders with a quick and clear overview of the trend across multiple timeframes, while also providing visual cues directly on the current chart.
Key Features
Multi-Timeframe Dashboard: Displays a clean and concise table showing the price's position relative to four different EMAs (9, 21, 50, 200) across 6 timeframes (from 1 minute to 1 day).
A blue arrow ▲ indicates that the closing price is above the EMA (potential bullish trend).
A red arrow ▼ indicates that the closing price is below the EMA (potential bearish trend).
Display of 4 EMAs on the Chart:
EMA 9 & 21: Plotted on the current timeframe, they help identify the very short-term trend.
EMA 50 (from the 5m TF) & EMA 200 (from the 15m TF): Plotted on the current chart but calculated on higher timeframes. They offer a perspective on the stronger, underlying trends.
Full Customization: The indicator's settings allow the user to:
Modify the periods of the four EMAs.
Choose the dashboard's position on the screen.
Change the dashboard's theme (Dark or Light).
Enable or disable the display of the EMAs on the chart.
Optimized Code: The script is designed for performance, drawing and calculating the dashboard only on the last available price bar, thus avoiding chart lag.
How to Use
1. Installation
On TradingView, open the chart of your chosen asset.
At the bottom of the screen, click on the "Pine Editor" tab.
Copy the entire corrected script and paste it into the editor, replacing any existing content.
Click the "Add to Chart" button. The indicator will then appear on your chart.
2. Configuration
Click the gear icon (⚙️) next to the indicator's name to access its settings.
General Settings:
Dashboard Theme: Choose "Dark" or "Light" for better readability depending on your chart's color scheme.
Dashboard Position: Select where you want the dashboard to appear (e.g., "Bottom Right," "Top Left," etc.).
EMA Settings:
Modify the periods (9, 21, 50, 200) if you prefer to use other values for your analysis.
Chart Display Settings:
Check or uncheck the boxes to show or hide the EMA lines on your main chart. For instance, you can disable the lines and only use the dashboard.
3. Interpretation (For Informational Purposes)
The Dashboard:
Confluence Analysis: The dashboard's main strength is identifying trend "confluence." A column that is entirely blue (▲) or red (▼) suggests a strong, aligned trend across multiple time scales.
Identifying Reversal Points: If the shorter timeframes (1m, 5m) start to change color while the longer ones (4h, 1D) remain stable, this may indicate a pullback or the beginning of a trend change.
The EMAs on the Chart:
Dynamic Support and Resistance: The EMA lines can act as areas of support in an uptrend and resistance in a downtrend.
Underlying Trend: The price's position relative to the longer-period EMAs (50 and 200) gives an indication of the general underlying trend.
Best Practices and Limitations
Do Not Use in Isolation: This indicator is a trend confirmation tool. It is recommended to use it in conjunction with other analysis tools (volume, market structure, other indicators).
Lagging Indicator: Moving averages are trend-following indicators, which means they react to past price movements. They do not predict future movements.
Risk Management: Always set a stop-loss and take-profit for every trade. Never risk more than a small percentage of your capital on a single position.
Recent Swing High/Low Linesit gives the recent swing highs and lows.
for options buyers, they can simply enter on a trade when an opposite option (at the money) goes below the recent swing low.
VMA (Variable Moving Average)AI-generated Native NinjaTrader 8 VMA (Variable Moving Average) Indicator for TradingView's PINE language.
Linear Regression Channels📈 Linear Regression Channels
🌟 Overview
A professional dual linear regression channel indicator designed for comprehensive trend analysis. This powerful tool provides simultaneous short-term and long-term trend perspectives through two independent regression channels with customizable standard deviation bands.
🔧 Core Features
📊 Dual Channel System
Channel 1: 43-period regression analysis for long-term trend identification
Channel 2: 20-period regression analysis for short-term momentum tracking
Independent Configuration: Each channel fully customizable with separate parameters
Real-Time Updates: Dynamic calculations with every new candle
📐 Standard Deviation Bands
Multiple Levels: Configurable deviation bands (1σ, 2σ, 3σ)
Dynamic Support/Resistance: Automatically calculated price levels
Trend Boundaries: Clear visualization of trend strength and direction
Statistical Precision: Mathematically accurate regression calculations
🎨 Customization Options
🎭 Visual Styling
Individual Colors: Separate color schemes for each channel
Line Styles: Choose between Solid, Dashed, or Dotted lines
Line Width: Adjustable thickness (1-5 pixels) for optimal visibility
Extension Options: Project lines into the future for analysis
⚙️ Technical Parameters
Period Length: Fully adjustable lookback periods
Source Selection: Choose from Close, Open, High, Low, or custom sources
Deviation Levels: Customizable standard deviation multipliers
Display Control: Toggle individual channels on/off
📈 Trading Applications
🎯 Trend Analysis
Dual Timeframe Perspective: Simultaneous short and long-term view
Trend Confirmation: When both channels align in direction
Trend Strength: Measured by price position within channels
🔍 Support & Resistance
Dynamic Levels: Standard deviation bands as S/R zones
Channel Boundaries: Natural support and resistance areas
Confluence Trading: Multiple level confirmations
⚡ Entry & Exit Signals
Channel Breakouts: Trend continuation opportunities
Mean Reversion: Trades back to center line
Channel Crossovers: When price moves between timeframes
🚀 Key Benefits
✅ Multi-Timeframe Analysis - Complete market perspective
✅ Mathematical Precision - Least squares regression accuracy
✅ High Customization - Adaptable to any trading style
✅ Clean Interface - Professional chart appearance
✅ Performance Optimized - Smooth real-time operation
✅ Versatile Application - Works on all markets and timeframes
💡 Professional Usage
Combine both channels for confluence signals
Use longer channel for overall trend bias
Trade shorter channel signals within longer trend
Monitor channel width for volatility analysis
Essential tool for traders seeking precise trend analysis and dynamic support/resistance levels.
RSI(2) - Estratégia com 3 filtros e 3 saídas
Entry: RSI(2) < 20 + EMA80 + above-average volume + reversal candle
Exit: Profit at close OR RSI > 70 OR 7th candle
IU Grid Trading StrategyDESCRIPTION
The IU Grid Trading Strategy is designed to take advantage of ranging or sideways market conditions using a price-based grid system. This strategy automatically places long orders at predefined intervals below a starting grid level, creating a structured buy-the-dip approach. As price moves down, new long positions are opened at each level, and each position exits with a fixed profit target.
This is an ideal tool for traders who believe price will fluctuate between levels and eventually return to mean or higher ground. The script also includes a clean visual representation of grid levels and supports deep customization.
USER INPUTS
• Start Time – Strategy activation time to avoid historical noise
• Grid Start Level – The price level where the grid starts
• Grid Width – Distance between each grid level (in points)
• Number of Grids – Total number of grid levels below the start level
• Show Grid Levels – Option to display grid lines on the chart
LONG CONDITION
• The first long entry is triggered at the Grid Start Level
• Additional long entries are placed below the previous one, at each grid level
• Only one new long is added at a time, depending on the number of open trades
• All orders are placed as limit orders and managed dynamically
• Order comments and IDs help track positions clearly in the strategy tester
LONG EXIT
• Each long position has a fixed profit target
• The profit level is determined using:
Grid Width / Tick Size
• Once a position hits the defined profit, it is closed individually
• All open trades are actively monitored for exit triggers
WHY IT IS UNIQUE
• Supports up to 100 pyramiding trades to fully exploit grid setups
• Automatically cancels previous orders and manages each leg cleanly
• Smart time filter avoids backtesting from irrelevant historical data
• Cleanly plotted grid lines for better visual control
• High degree of customization to adapt to any instrument or timeframe
• Designed with realistic slippage, commission, and margin settings
HOW USER CAN BENEFIT FROM IT
• Ideal for range-bound markets or assets with mean-reverting behavior
• Helps accumulate positions at better prices without emotional bias
• Provides structured entries and exits with automated management
• Suitable for traders who prefer non-directional strategies
• Highly visual and educational for those learning about grid trading mechanisms
• Can be modified to support short trades or hybrid strategies
DISCLAIMER
This strategy is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
EMA Flip + RSI Rejection with Easier Fractal Filter (Boosted)SQUEEZE & FLIP for spotting LPSs and LPSYz. This Indicator identifies LPS and LPSYS
SIC_TICKER_DATAThe SIC Ticker Data is an advanced and efficient library for ticker-to-industry classification and sector analysis. Built with enterprise-grade performance optimizations, this library provides instant access to SIC codes, industry classifications, and peer company data for comprehensive market analysis.
Perfect for: Sector rotation strategies, peer analysis, portfolio diversification, market screening, and financial research tools.
The simple idea behind this library is to pull any data related to SIC number of any US stock market ticker provided by SEC in order to see the industry and also see the exact competitors of the ticker.
The library stores 3 types of data: SIC number, Ticker, and Industry name. What makes it very useful is that you can pull any one of this data using the other. For example, if you would like to know which tickers are inside a certain SIC, or what's the SIC number of a specific ticker, or even which tickers are inside a certain industry, you can use this library to pull this data. The idea for data inside this library is to be accessible in any direction possible as long as they're related to each other.
We've also published a simple indicator that uses this library in order to demonstrate the inner workings of this library.
The library stores thousands of tickers and their relevant SIC code and industry for your use and is constantly updated with new data when available. This is a large library but it is optimized to run as fast as possible. The previous unpublished versions would take over 40 seconds to load any data but the final public version here loads the data in less than 5 seconds.
🔍 Primary Lookup Functions
createDataStore()
Initialize the library with all pre-loaded data.
store = data.createDataStore()
getSicByTicker(store, ticker)
Get SIC code for any ticker symbol.
sic = data.getSicByTicker(store, "AAPL") // Returns: "3571"
getIndustryByTicker(store, ticker)
Get industry classification for any ticker.
industry = data.getIndustryByTicker(store, "AAPL") // Returns: "Computer Hardware"
getTickersBySic(store, sic)
Get all companies in a specific SIC code.
software = data.getTickersBySic(store, "7372") // Returns: "MSFT,GOOGL,META,V,MA,CRM,ADBE,ORCL,NOW,INTU"
getTickersByIndustry(store, industry)
Get all companies in an industry.
retail = data.getTickersByIndustry(store, "Retail") // Returns: "AMZN,HD,WMT,TGT,COST,LOW"
📊 Array & Analysis Functions
getTickerArrayBySic(store, sic)
Get tickers as array for processing.
techArray = data.getTickerArrayBySic(store, "7372")
for i = 0 to array.size(techArray) - 1
ticker = array.get(techArray, i)
// Process each tech company
getTickerCountBySic(store, sic)
Count companies in a sector (ultra-fast).
pinescripttechCount = data.getTickerCountBySic(store, "7372") // Returns: 10
🎯 Utility Functions
tickerExists(store, ticker)
Check if ticker exists in database.
exists = data.tickerExists(store, "AAPL") // Returns: true
tickerInSic(store, ticker, sic)
Check if ticker belongs to specific sector.
isInTech = data.tickerInSic(store, "AAPL", "3571") // Returns: true
💡 Usage Examples
Example 1: Basic Ticker Lookup
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Ticker Analysis", overlay=true)
store = data.createDataStore()
currentSic = data.getSicByTicker(store, syminfo.ticker)
currentIndustry = data.getIndustryByTicker(store, syminfo.ticker)
if barstate.islast and currentSic != "NOT_FOUND"
label.new(bar_index, high, syminfo.ticker + " SIC: " + currentSic + " Industry: " + currentIndustry)
Example 2: Sector Analysis
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Sector Comparison", overlay=false)
store = data.createDataStore()
// Compare sector sizes
techCount = data.getTickerCountBySic(store, "7372") // Software
financeCount = data.getTickerCountBySic(store, "6199") // Finance
healthCount = data.getTickerCountBySic(store, "2834") // Pharmaceutical
plot(techCount, title="Tech Companies", color=color.blue)
plot(financeCount, title="Finance Companies", color=color.green)
plot(healthCount, title="Health Companies", color=color.red)
Example 3: Peer Analysis
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Find Competitors", overlay=true)
store = data.createDataStore()
currentSic = data.getSicByTicker(store, syminfo.ticker)
if currentSic != "NOT_FOUND"
competitors = data.getTickersBySic(store, currentSic)
peerCount = data.getTickerCountBySic(store, currentSic)
if barstate.islast
label.new(bar_index, high, "Competitors (" + str.tostring(peerCount) + "): " + competitors)
Example 4: Portfolio Sector Allocation
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Portfolio Analysis", overlay=false)
store = data.createDataStore()
// Analyze your portfolio's sector distribution
portfolioTickers = array.from("AAPL", "MSFT", "GOOGL", "JPM", "JNJ")
sectorCount = map.new()
for i = 0 to array.size(portfolioTickers) - 1
ticker = array.get(portfolioTickers, i)
industry = data.getIndustryByTicker(store, ticker)
if industry != "NOT_FOUND"
currentCount = map.get(sectorCount, industry)
newCount = na(currentCount) ? 1 : currentCount + 1
map.put(sectorCount, industry, newCount)
🔧 Advanced Feature
You can also bulk load data for large data sets like this:
// Pre-format your data as pipe-separated string
bulkData = "AAPL:3571:Computer Hardware|MSFT:7372:Software|GOOGL:7372:Software"
store = data.createDataStoreFromBulk(bulkData)