指標和策略
Line Strategy v6Line Indicator for TradingView
This Pine Script indicator identifies the largest candles on both 5-minute and 1-hour timeframes within the last 240 five-minute bars. It provides visual markers and detailed information to help traders spot significant price movements.
Key Features
Dual Timeframe Analysis:
Identifies largest candle on 5-minute timeframe
Identifies largest candle on 1-hour timeframe (aggregated from 12 five-minute candles)
Visual Markers:
Blue label marks the highest-range 5-minute candle
Purple background highlights the highest-range hourly candle period
Information Table:
Shows price ranges for both timeframes
Displays precise timestamps for identified candles
Color-coded for quick reference
Progress Indicator:
Shows how many bars have been collected (out of 240 required)
How It Works
Data Collection:
Stores high, low, timestamp, and bar index of the last 240 five-minute candles
Automatically updates with each new bar
5-Minute Analysis:
Scans all 5-minute candles to find the one with the largest price range (high - low)
Marks this candle with a blue label showing its range
Hourly Analysis:
Groups 12 five-minute candles to form each hourly candle
Finds the hourly candle with the largest price range
Highlights the entire hour period with a purple background
Information Display:
Creates a table in the top-right corner showing:
Range values for both timeframes
Timestamps of identified candles
Time period of the largest hourly candle
Usage Instructions
Apply the indicator to any 5-minute chart
Wait for the indicator to collect 240 bars (about 20 trading hours)
Results will appear automatically:
Blue label on the largest 5-minute candle
Purple background on the largest hourly candle period
Information table with detailed metrics
Customization Options
You can easily adjust these aspects by modifying the code:
Colors of markers and table cells
Transparency levels of background highlights
Precision of range values displayed
Position of the information table
The indicator is optimized for performance and works in both historical and real-time modes.
Multi time frame combination signal1. Concept and originality
This indicator was developed with the aim of displaying signals of multiple time frames and moving averages of the fixed time frame different from the current chart. When buying and selling, if you use basic signals such as MACD, RSI, TSI, etc. on a certain time frame, you may miss shorter or longer-term trends. In addition, if a long-term upswing sign occurs and you want to search for a short-term pullback, you may want to use multiple signals of different time frames in combination. Therefore, I aimed to display signals of shorter and longer time frames simultaneously on one chart in addition to the current time frame. Furthermore, I considered a comosite signal that combines each basic signal and moving average line, and combines arbitrary signals of multiple arbitrary time frames in a single indicator.
2. Function
This indicator provides a composite signal that combines multiple basic indicators (MACD, RSI, TSI) and moving average lines on three arbitrary time frames. Other auxiliary functions include Bollinger bands, Ichimoku cloud, Fair Value Gap (FVG), and Order Block (OB). The three time frames can be set independently for each signal.
2.1 Combination signal
When you check "Show combination signal", the signals that combine each checked basic indicator with "and" will be displayed. If you want to combine each basic indicator with "or", uncheck "Combination signal" and check all the indicators you want to use. Each indicator can also be combined with a moving average. The indicators that can be combined with "Combination signal" are MACD, RSI, TSI and moving average. Bollinger bands, Ichimoku Kinko Hyo, Fair Value Gap (FVG) and Order Block (OB) are displayed alone and cannot be incorporated into "Combination signal".
When you check "Show short/middle/long term signal", the checked signals will be displayed on the chart with ▲ or ▼. ▲ indicates crossover and ▼ indicates crossunder. Short is displayed small and long is displayed large. The short/middle/long time frames can be set separately. It is not necessary that the short is shorter than the middle or long.
2.2 MACD signal
Check "Show MACD signal" to display the MACD (Moving Average Convergence Divergence) signal. Check "Show short/middle/long term signal" to display the signal of the checked time frame with ▲ or ▼ on the chart. Short is displayed small, and long is displayed large. The short/middle/long time frames can be set separately. Short does not necessarily have to be shorter than middle or long. EMA is usually used for the moving average of MACD, but this indicator allows you to select the type of moving average from SMA, EMA, SMMA (RMA), WMA, and VWMA. You can enter the base period for Long, Short, and Signal. This period is the period for the selected time frame. Check "Use impulse MACD" to suppress signals in range markets. In this case, "Long length", "Short length", and "Signal length" are ignored and the value of "Impulse MACD length" is applied. Please note that some functions do not work properly on charts that do not provide volume.
2.3 RSI signal
Check "Show RSI signal" to display the RSI (Relative Strength Index) signal. Check "Show short/middle/long term signal" to display the signal of the checked time frame on the chart with ▲ or ▼. Short is displayed small, and long is displayed large. Short/middle/long time frames can be set separately. Short does not necessarily have to be shorter than middle and long. You can enter the overbought and oversold thresholds in the range of 0 to 100. You can enter the base period of the signal. Check "Use VRSI" to add volume to the RSI. Check "Use Stochastic RSI" to display the Stochastic RSI signal. In this case, the base period of the RSI signal is ignored. For Stochastic RSI, you can enter the type of moving average, the period for smoothing, and the base period. These values are ignored by the normal RSI and VRSI. Please note that some functions do not work properly on charts for which volume is not provided.
2.4 TSI signal
Checking "Show TSI signal" displays the TSI (True Strength Index) signal. Checking "Show short/middle/long term signal" displays the signals of the checked time frame as ▲ or ▼ on the chart. Short is displayed small, and long is displayed large. The short/middle/long time frames can be set separately. Short does not necessarily have to be shorter than the middle and long. You can enter the overbought and oversold thresholds in the range of -100 to 100. You can enter the base period for Long, Short, and Signal. You can select the type of moving average from SMA, EMA, SMMA (RMA), WMA, and VWMA. Please note that some functions do not work properly on charts for which volume is not provided.
2.5 Moving average
Check "Show moving average" to display the moving average for the specified time frame. The time frame can be set to match the chart time frame or fixed. The type of moving average can be selected from SMA, EMA, SMMA (RMA), WMA, and VWMA. Check each "Show MA" to display the moving average on the chart. Up to five moving averages can be displayed. Check each "Above MA" or "Below MA" to add the "and" condition in "Combination signal" whether the price is above or below the moving average.
2.6 Bollinger band
Check "Show bollinger band" to display the Bollinger band. You can enter the time frame, type of moving average, base period, and standard deviation. The type of moving average can be selected from SMA, EMA, SMMA (RMA), WMA, and VWMA. This auxiliary function is independent and is not taken into account in "Combination signal".
2.7 Ichimoku cloud
Check "Show Ichimoku cloud" to display the Ichimoku cloud. You can enter the time frame, base period, leading line and lagging line periods. This auxiliary function is independent and is not taken into account in "Combination signal".
2.8 Fair Value Gap
Check "Show fair value gap" to display the Fair Value Gap. Check "Show short/middle/long term signal" to display the Fair Value Gap zone of the checked time frame as a gray square on the chart. You can set the threshold value to suppress the display and whether or not to display the label. This auxiliary function is independent and is not taken into account in "Combination signal".
2.9 Order Block
Check "Show order block" to display the Order Block. Check "Show short/middle/long term signal" to display the Order Block zone of the checked time frame as a green or red square on the chart. You can set the threshold value to suppress the display and whether or not to display the label. This auxiliary function is independent and does not contribute to the "Combination signal".
Close Difference Histogram with EMA SD Bands and LinesIndicator for the NSI system.
Possible use on the 3D timeframe for BTC.
Benchmark Above MA SignalBenchmark Above MA Signal (Configurable Visual)
This tool provides a simple ON/OFF signal showing whether a selected benchmark asset (e.g., SPY, BTC, QQQ, etc.) is currently trading above a specified moving average.
🔧 Customizable Settings:
Choose the benchmark symbol
Set the timeframe (e.g., daily, 4H, weekly)
Select SMA or EMA type
Define the MA length (e.g., 21, 50, 200)
Pick between two display modes:
Stepline (default): plots a clean binary signal in the lower pane
Background Only: visually highlights confluence periods without a line plot
✅ Ideal for macro filters, trend confirmation, or dashboard-style layouts
📊 Common use case: staying aware of the daily trend of SPY while trading lower intraday timeframes
Up/Down Days Ratio - 6 Month RollingUp/Down Ratio for last 6 months
It helps to analyze the trend of the stock
HMA Crossover with Reversed EMA(200) & 0.2% SLSimple HMA cross over strategy with EMA200 and SL0.2% it works only with BTCUSD at 3min time frame
Previous Day High/Low (8AM–4PM)A simple indicator for NQ and ES futures that marks the previous day high and low on the current trading day excluding premarket.
Relative Strength MA ConfluenceThis indicator highlights price candles when two custom moving averages of relative strength vs a benchmark (e.g., SPY or BTC) are both trending positively.
Full confluence: Occurs when the asset's relative strength is above both a short- and long-term MA (default: 21 & 50).
Green candles and a triangle-up icon mark when full confluence begins.
Red triangle-down marks when confluence is lost.
🔧 All settings — including MA type (SMA or EMA), lengths, benchmark symbol, and visual toggles — are fully customizable.
Ideal for swing traders seeking strong trend confirmation based on outperformance relative to a benchmark.
Bayram Günleri 2020-2025// This script highlights the days of Ramadan Eid and Eid al-Adha (including the day before) on the chart.
// This indicator is designed to visually mark Ramadan Eid, Eid al-Adha, and their preceding days (Arefe) between 2020 and 2025.
// It colors the background in orange on those specific dates, making it easy to identify and analyze holiday periods.
// Works across all timeframes (1m, 1h, 1d, etc.).
// Dates are checked using year, month, and dayofmonth values manually.
// All times are based on Turkish local time (UTC+3).
// Ramazan Bayramı ve Kurban Bayramı günlerini gösterir
MA CrossThis is a 20 and 50 Exponential Moving Average Cross indicator.
This signals when the EMA crossover and Price touches the 20 EMA.
Sticky Notes📌 Sticky Notes - On-Chart Memo Tool
A convenient indicator that lets you display trading ideas and important notes directly on your charts!
✨ Key Features:
📝 Create memos with custom text input
📍 Place anywhere on chart (top/middle/bottom)
🖥️ Screen-fixed display mode (corner positions)
🎨 Fully customizable text and background colors
📏 5 text size options (tiny to huge)
⏰ Time-based display functionality
📐 Text alignment options (left/center/right)
💡 Use Cases:
Trading strategy reminders
Important price level notes
Economic event schedules
Entry/exit point memos
Simple and user-friendly design to enhance your trading analysis!
Momentum Breakout Option Buyer🎯 What it does:
# Detects momentum breakout zones
# Confirms breakout with volume and volatility
# Gives Buy signal only when the move is strong and fast — perfect for option buyers
🔧 Core Components:
# Supertrend – to define the trend
# RSI + EMA crossover – confirms strength
# Breakout candle + Volume spike
# ATR filter – confirms volatility is high enough to justify option buying
✅ Entry Criteria (Call Option):
# Price above Super trend
# RSI > 60 and RSI > RSI EMA
# Volume > 1.5 × average volume
# ATR (last 5 candles) > minimum threshold (e.g., 1%)
❌ Exit / Stop Loss:
# RSI drops below 50 or
# Supertrend flips or
# Target hit (e.g., 1.5x risk)
EMA 200 Monitor - Bybit CoinsEMA 200 Monitor - Bybit Coins
📊 OVERVIEW
The EMA 200 Monitor - Bybit Coins is an advanced indicator that automatically monitors 30 of the top cryptocurrencies traded on Bybit, alerting you when they are close to the 200-period Exponential Moving Average on the 4-hour timeframe.
This indicator was developed especially for traders who use the EMA 200 as a key support/resistance level in their swing trading and position trading strategies.
🎯 WHAT IT'S FOR
Multi-Asset Monitoring: Simultaneous monitoring of 30 cryptocurrencies without having to switch between charts
Opportunity Identification: Detects when coins are approaching the 200 EMA, a crucial technical level
Automated Alerts: Real-time notifications when a coin reaches the configured proximity
Time Efficiency: Eliminates the need to manually check chart collections
⚙️ HOW IT WORKS
Main Functionality
The indicator uses the request.security() function to fetch price data and calculate the 200 EMA of each monitored asset. With each new bar, the script:
Calculates the distance between the current price and the 200 EMA for each coin
Identifies proximity based on the configured percentage (default: 2%)
Displays results in a table organized on the chart
Generates automatic alerts when proximity is detected
Monitored Coins
Major : BTC, ETH, BNB, ADA, XRP, SOL, DOT, DOGE, AVAX
DeFi : UNI, LINK, ATOM, ICP, NEAR, OP, ARB, INJ
Memecoins : SHIB, PEPE, WIF, BONK, FLOKI
Emerging : SUI, TON, APT, POL (ex-MATIC)
📋 AVAILABLE SETTINGS
Adjustable Parameters
EMA Length (Default: 200): Exponential Moving Average Period
Proximity Percentage (Default: 2%): Distance in percentage to consider "close"
Show Table (Default: Active): Show/hide results table
Table Position: Position of the table on the chart (9 options available)
Color System
🔴 Red: Distance ≤ 1% (very close)
🟠 Orange: Distance ≤ 1.5% (close)
🟡 Yellow: Distance ≤ 2% (approaching)
🚀 HOW TO USE
Initial Configuration
Add the indicator to the 4-hour timeframe chart
Set the parameters according to your strategy
Position the table where there is no graphic preference
Setting Alerts
Click "Create Alert" in TradingView
Select the "EMA 200 Monitor" indicator
Set the notification frequency and method
Activate the alert to receive automatic notifications
Results Interpretation
The table shows:
Coin: Asset name (e.g. BTC, ETH)
Price: Current currency quote
EMA 200: Current value of the moving average
Distance: Percentage of proximity to the core code
💡 STRATEGIES TO USE
Reversal Trading
Entry: When price touches or approaches the EMA 200
Stop: Below/above the EMA with a safety margin
Target: Previous resistance/support levels
Breakout Trading
Monitoring: Watch for currencies consolidating near the EMA 200
Entry: When the media is finally broken
Confirmation: Volume and close above/below the EMA
Swing Trading
Identification: Use the monitor to detect setups in formation
Timing: Wait for the EMA 200 to approach for detailed analysis
Management: Use the EMA as a reference for stops dynamics
⚠️ IMPORTANT CONSIDERATIONS
Technical Limitations
Request Bybit data: Access to exchange symbols required
Specific timeframe: Optimized for 4-hour analysis
Minimum delay: Data updated with each new bar
Usage Recommendations
Combine with technical analysis: Use together with other indicators
Confirm the configuration: Check the graphic patterns before trading
Manage risk: Always use stop loss and adequate position sizing
Backtesting: Test your strategy before applying with real capital
Disclaimer
This indicator is a technical analysis tool and does not constitute investment advice. Always do your own analysis and manage detailed information about the risks of your operations.
🔧 TECHNICAL INFORMATION
Pine Script version: v6
Type: Indicator (overlay=true)
Compatibility: All TradingView plans
Resources used: request.security(), arrays, tables
Performance: Optimized for multiple simultaneous queries
📈 COMPETITIVE ADVANTAGES
✅ Simultaneous monitoring of 30 major assets ✅ Clear visual interface with intuitive core system ✅ Customizable alerts for different details ✅ Optimized code for maximum performance ✅ Flexible configuration adaptable to different strategies ✅ Real-time update without the need for manual refresh
Developed for traders who value efficiency and accuracy in identifying market opportunities based on the EMA 20
Intraday Market State Table IndicatorThis indicator simply show RSI /ADX /HV /Market state for nifty and Banknifty on 5 min chart , with colour changing options , All the tool tips added for users .
Price Label Right of Candle by bigbluecheesesimple code that places the last price to the immediate right of the candle/bar
useful if you have labels for other studies making the RHS bid/offer obscured or difficult to monitor
Nifty Futures vs ATM Options Signal//@version=5
indicator("Nifty Futures vs ATM Options Signal", overlay=true)
// === Input Symbols ===
// Use appropriate symbols available in your TradingView account
niftyFutSymbol = input.symbol("NSE:NIFTY1!", "Nifty Futures")
atmCallSymbol = input.symbol("NSE:NIFTY24JUN22400CE", "ATM Call Option")
atmPutSymbol = input.symbol("NSE:NIFTY24JUN22400PE", "ATM Put Option")
// === Fetch OHLC from 5-min candles for all symbols ===
niftyOpen = request.security(niftyFutSymbol, "5", open)
niftyClose = request.security(niftyFutSymbol, "5", close)
callOpen = request.security(atmCallSymbol, "5", open)
callClose = request.security(atmCallSymbol, "5", close)
putOpen = request.security(atmPutSymbol, "5", open)
putClose = request.security(atmPutSymbol, "5", close)
// === Condition 1: Buy Signal ===
// Nifty Futures RED candle and ATM Call Option GREEN candle
buySignal = (niftyClose < niftyOpen) and (callClose > callOpen)
// === Condition 2: Sell Signal ===
// Nifty Futures GREEN candle and ATM Put Option GREEN candle
sellSignal = (niftyClose > niftyOpen) and (putClose > putOpen)
// === Plot Buy/Sell Signals ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
bgcolor(buySignal ? color.new(color.green, 85) : na, title="Buy Background")
bgcolor(sellSignal ? color.new(color.red, 85) : na, title="Sell Background")
Multi MA 10 Lines PRO (Custom Label + Crossover Icon)Multi MA 10 Lines PRO – 10 Custom MAs, Dynamic Labels & Persistent Crossover Symbols
The ultimate professional Moving Average indicator — plot up to 10 fully customizable MAs (type, timeframe, color, width, style), display live price labels (value, % distance, or custom text), plus advanced ATR cross markers on every crossover (MA1/MA2).
NEW: All MA crossovers are marked with persistent symbols (choose icon, color, size) — instantly spot every golden/death cross in your backtest! Complete flexibility for scalpers, swing traders, and serious strategists.
Nifty Futures vs ATM Option Candle Mismatch//@version=5
indicator("Nifty Futures vs ATM Option Candle Mismatch", overlay=true)
// === Input symbols (modify these as needed) ===
niftySymbol = input.symbol("NSE:NIFTY1!", "Nifty Futures Symbol")
atmOptionSymbol = input.symbol("NSE:NIFTY24JUN22400CE", "ATM Option Symbol") // Replace with real ATM symbol dynamically
// === Get 5-min candles from both instruments ===
niftyClose = request.security(niftySymbol, "5", close)
niftyOpen = request.security(niftySymbol, "5", open)
optionClose = request.security(atmOptionSymbol, "5", close)
optionOpen = request.security(atmOptionSymbol, "5", open)
// === Determine candle color (green or red) ===
niftyGreen = niftyClose > niftyOpen
optionGreen = optionClose > optionOpen
// === Condition: Mismatch in candle direction ===
mismatch = (niftyGreen != optionGreen)
// === Plot an icon or background when mismatch occurs ===
plotshape(mismatch, title="Mismatch Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
bgcolor(mismatch ? color.new(color.red, 85) : na, title="Mismatch Background")