3 Red Heikin Ashi with Higher Lows3 Red Heikin Ashi with Higher Lows. Will Give a Buy Signal when 3 Red Heikin Ashi with Higher Lows is formed
Candlestick analysis
10MA Crosses Above 20MA//@version=5
indicator("10MA Crosses Above 20MA", overlay=true)
ma10 = ta.sma(close, 10)
ma20 = ta.sma(close, 20)
plot(ma10, color=color.orange, title="10MA")
plot(ma20, color=color.blue, title="20MA")
crossUp = ta.crossover(ma10, ma20)
alertcondition(crossUp, title="10MA Crosses Above 20MA", message="10MA升穿20MA,可能是買入訊號!")
Trend Candle CounterComplete Tutorial: Trend Candle Counter Pine ScriptTable of Contents
Installation Guide
Understanding the Indicator
How It Works
Customization Options
Trading Strategies
Setting Up Alerts
Troubleshooting
1. Installation Guide {#installation}Step-by-Step Installation:Step 1: Open TradingView
Go to www.tradingview.com
Log in to your account
Step 2: Access Pine Editor
Click on "Pine Editor" tab at the bottom of the chart
Or press Alt + E (Windows) or Option + E (Mac)
Step 3: Create New Indicator
Click "Open" → "New blank indicator"
Delete any default code
Step 4: Paste the Script
Copy the entire Trend Candle Counter script
Paste it into the editor
Step 5: Save and Apply
Click "Save" (or Ctrl + S)
Give it a name: "Trend Candle Counter"
Click "Add to Chart"
✅ Done! The indicator should now appear on your chart.2. Understanding the Indicator {#understanding}What Does It Do?This indicator numbers each candle based on the current trend: {scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;} ::-webkit-scrollbar{display:none}Trend TypeNumberingVisualUptrend+1, +2, +3, +4...🟢 Green labelsDowntrend-1, -2, -3, -4...🔴 Red labelsTrend ChangeResets to ±1Label color switchesVisual Components:
Candle Labels - Numbers above each candle
Trend Line (EMA) - Green (up) / Red (down)
Background Shading - Light green/red tint
Info Table - Top-right corner showing:
Current trend direction
Current candle number
Current price
3. How It Works {#how-it-works}Trend Detection Logic:IF Close > EMA → UPTREND (positive counting)
IF Close < EMA → DOWNTREND (negative counting)
Counting Mechanism:Example Uptrend:Candle 1: Close > EMA → Label: +1
Candle 2: Close > EMA → Label: +2
Candle 3: Close > EMA → Label: +3
Candle 4: Close < EMA → Label: -1 (trend changed!)
Example Downtrend:Candle 1: Close < EMA → Label: -1
Candle 2: Close < EMA → Label: -2
Candle 3: Close < EMA → Label: -3
Candle 4: Close > EMA → Label: +1 (trend changed!)
Key Insight:The higher the absolute number, the longer the trend has been running!4. Customization Options {#customization}Accessing Settings:
Click the gear icon ⚙️ next to the indicator name
Go to "Inputs" tab
Available Parameters: {scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;} ::-webkit-scrollbar{display:none}ParameterDefaultDescriptionRecommendationTrend Detection Length14EMA period for trend5-10: Scalping14-20: Day trading50-200: Swing tradingShow Candle Numbers✅ YesDisplay labelsDisable for cleaner chartLabel SizeSmallSize of numbersTiny: Multi-timeframeLarge: Focus on one chartUptrend ColorGreenPositive number colorCustomize to preferenceDowntrend ColorRedNegative number colorCustomize to preferenceOptimization by Trading Style:For Scalpers (1m - 5m charts):Trend Detection Length: 5-10
Label Size: Tiny
Show Labels: Optional (can be cluttered)
For Day Traders (15m - 1h charts):Trend Detection Length: 14-20
Label Size: Small
Show Labels: Yes
For Swing Traders (4h - Daily charts):Trend Detection Length: 50-100
Label Size: Normal
Show Labels: Yes
5. Trading Strategies {#strategies}Strategy 1: Trend Reversal TradingEntry Signals:
Buy: When counter changes from negative to +1
Sell: When counter changes from positive to -1
Confirmation:
Wait for +2 or -2 to confirm trend strength
Use additional indicators (RSI, MACD) for validation
Example:Candle: -5, -6, -7, -8, +1, +2 ← BUY HERE
Stop Loss: Below the -8 candle low
Target: When counter reaches +8 to +10
Strategy 2: Trend Continuation TradingEntry Signals:
Buy: Enter on pullbacks during uptrend (e.g., at +3, +5, +7)
Sell: Enter on bounces during downtrend (e.g., at -3, -5, -7)
Risk Management:
Avoid entering at high numbers (+15, -15) - trend may be exhausted
Example:Candle: +1, +2, +3 ← Small pullback, BUY
Continue: +4, +5, +6, +7
Exit: When counter resets to -1
Strategy 3: Trend Exhaustion DetectionWarning Signs:
Counter reaches +10 or higher → Uptrend may be overextended
Counter reaches -10 or lower → Downtrend may be overextended
Action:
Tighten stop losses
Take partial profits
Watch for reversal patterns (doji, engulfing)
Strategy 4: Multi-Timeframe AnalysisSetup:
Add indicator to 3 timeframes (e.g., 15m, 1h, 4h)
Look for alignment
Best Trades:15m: +1 (new uptrend)
1h: +5 (established uptrend)
4h: +3 (strong uptrend)
→ HIGH PROBABILITY BUY
6. Setting Up Alerts {#alerts}Built-in Alert Conditions:The script includes 2 automatic alerts:
"Uptrend Started" - Triggers when counter = +1
"Downtrend Started" - Triggers when counter = -1
How to Set Up Alerts:Step 1: Right-click on chart
Select "Add Alert"
Step 2: Configure Alert
Condition: Select "Trend Candle Counter"
Choose: "Uptrend Started" or "Downtrend Started"
Options:
Once per bar close (recommended)
Webhook URL (for automation)
Step 3: Notification Settings
✅ Popup
✅ Send email
✅ Push notification (mobile app)
✅ Play sound
Step 4: Create Alert
Click "Create"
Custom Alert Ideas:Alert for Specific Candle Numbers:
Notify when counter reaches +5 or -5
Notify when counter exceeds +10 or -10 (exhaustion)
7. Troubleshooting {#troubleshooting}Common Issues & Solutions:Issue 1: Labels are too cluttered
Solution:
Disable "Show Candle Numbers" in settings
Use larger timeframe
Reduce label size to "tiny"
Issue 2: Too many false signals
Solution:
Increase "Trend Detection Length" (e.g., 20, 50)
Wait for +2 or -2 confirmation
Combine with other indicators
Issue 3: Trend line doesn't match price action
Solution:
Adjust EMA length to match your trading style
Consider using different trend detection (SMA, HMA)
Issue 4: Indicator not showing on chart
Solution:
Check if it's in a separate pane - move to main chart
Refresh the page
Re-add the indicator
Issue 5: Counter seems delayed
Solution:
This is normal - indicator confirms on candle close
For faster signals, use lower timeframe
Reduce EMA length (but expect more noise)
8. Advanced Tips 💡Combining with Other Indicators:Best Combinations:
RSI + Trend Candle Counter
Buy at +1 when RSI > 50
Sell at -1 when RSI < 50
MACD + Trend Candle Counter
Confirm +1 with MACD bullish crossover
Confirm -1 with MACD bearish crossover
Volume + Trend Candle Counter
Strong trends (+1) should have increasing volume
Low volume at high numbers (+10) = exhaustion
Reading Market Psychology: {scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;} ::-webkit-scrollbar{display:none}Counter ValueMarket Psychology+1 to +3Early adopters entering+4 to +7Momentum building+8 to +12FOMO phase+13+Extreme greed - caution!-1 to -3Early sellers-4 to -7Panic building-8 to -12Capitulation-13+Extreme fear - reversal likely9. Real Trading Example 📊Scenario: BTC/USD 1H ChartTime | Counter | Action
--------|---------|----------------------------------
10:00 | -8 | Downtrend established
11:00 | -9 | Still falling
12:00 | -10 | Exhaustion zone - watch closely
13:00 | +1 | ✅ BUY SIGNAL - Trend reversal!
14:00 | +2 | Confirmation - trend valid
15:00 | +3 | Hold position
16:00 | +4 | Add to position (optional)
17:00 | +5 | Move stop loss to breakeven
...
22:00 | +11 | Take partial profits
23:00 | +12 | Tighten stop loss
00:00 | -1 | ❌ EXIT - Trend reversed
MTF EMA200 Dashboard (No Trend Column)Show ema200 position on multiple timeframe, so that in run time we can see price strength and weekness
% Change & Range (With SMA)- Calculates the % range and change for each candle
- uses SMA over "n" bars to show the average % range and the average % change for green days and red days
- optional standard deviation line (k bands)
DAMMU Buy vs Sell Liquidity + DifferenceIndicator Name:
Buy vs Sell Liquidity + Difference
Purpose:
This indicator helps traders analyze market liquidity by comparing the cumulative buy and sell volumes within a specified timeframe. It shows which side (buyers or sellers) is dominating and the magnitude of the imbalance.
Key Features:
Aggregation Timeframe:
Users can select the timeframe (1, 2, 3, 5, 15, 30 minutes) for which volume is analyzed.
Buy & Sell Volume Calculation:
Buy Volume: Total volume of candles where close > open.
Sell Volume: Total volume of candles where close < open.
Daily Reset:
Totals reset at the start of each new day, ensuring intra-day liquidity analysis.
Difference Calculation:
Shows the absolute difference between buy and sell volumes.
Also calculates the difference as a percentage of total volume.
Percentages:
Displays buy %, sell %, and diff % to 4 decimal places, giving precise insights.
Table Display:
A two-row table in the top-right corner of the chart:
Row 1: Absolute totals for BUY, SELL, and DIFF (full numbers with commas).
Row 2: Percentages for BUY, SELL, and DIFF (4 decimals).
Uses color coding: Green for BUY, Red for SELL, Dynamic for DIFF (based on dominance).
How to Use:
High Buy Volume: Indicates strong buying pressure; bullish sentiment.
High Sell Volume: Indicates strong selling pressure; bearish sentiment.
Large DIFF %: Signals dominant market side; useful for short-term scalping or spotting liquidity imbalance.
Comparing BUY vs SELL %: Helps identify when the market may reverse or continue the trend.
If you want, I can also make a 1-paragraph “trader-friendly” explanation that you could directly include in your Pine Script as a comment or in a strategy guide.
Dynamic Sessions - Asia, London, New YorkThis indicator lets you set trading sessions (custom sessions) and print them out as dynamic polyboxes instead of traditional rectangles which lets you identify strong moves and trends easier.
NIFTY Consolidation → Breakout FinderThis indicator defines 5 day consolidation period and breakout label. This works best on a daily chart. Please back test before use.
指定周期 EMA (20, 40, 60, 80)This indicator allows you to display EMA (20, 40, 60, 80) from a higher timeframe directly on your current chart.
It helps you identify trend direction, confluence zones, and dynamic support/resistance based on multi-timeframe EMAs.
Features:
Choose any higher timeframe (e.g. 60 = 1H, 240 = 4H, D = 1D)
Plots 4 EMAs: 20, 40, 60, and 80
Works seamlessly across all timeframes
Ideal for trend confirmation and multi-timeframe analysis
💡 Tip:
Try viewing the 1H EMAs on a 15min chart or 4H EMAs on a 1H chart — this helps identify where price interacts with higher timeframe structure.
Doji Buy Signal (3-min, Body ≤ 6%)Doji Buy Signal (3-min, Body ≤ 6%) will give a Buy Signal when Doji Candle is formed
Doji Buy Signal (3-min, Body ≤ 6%)Doji Buy Signal (3-min, Body ≤ 6%) will give a buy signal when dojo candle is formed
Daily Midnight Lines# Daily Midnight Lines
A simple and efficient TradingView indicator that automatically draws vertical lines at the start of each new day.
* *
## Features
✅ **Precise Timing**: Draws lines at exactly 00:00 or on the first bar of the new day
✅ **Calendar Days**: Uses calendar days, not trading sessions
✅ **Customizable Design**: Green color with transparency for comfortable viewing
✅ **High Performance**: Optimized code without unnecessary calculations
✅ **Universal**: Works on all timeframes and instruments
## Settings
- **Line Color**: Green with 30% transparency (customizable)
- **Line Width**: 1 pixel (1 to 3)
- **Mode**: Exactly at 00:00 or first bar of new day
## Applications
- Separating trading days on the chart
- Analyzing price behavior at the start of the day
- Planning trading strategies
- Statistical analysis by days
## Compatibility
- Pine Script v6
- All timeframes (1m - 1M)
- All instruments (stocks, forex, crypto, futures)
- All markets (24/7, daily, night sessions)
Perfect for day traders, scalpers, and analysts who want better chart orientation and intraday pattern analysis.
---
## Ежедневные Полночные Линии
Простой и эффективный индикатор TradingView, который автоматически рисует вертикальные линии в начале каждого нового дня.
## Особенности
✅ **Точное время**: Рисует линии в 00:00 или на первом баре нового дня
✅ **Календарные дни**: Использует календарные дни, а не торговые сессии
✅ **Настраиваемый дизайн**: Зеленый цвет с прозрачностью для комфортного просмотра
✅ **Высокая производительность**: Оптимизированный код без лишних вычислений
✅ **Универсальность**: Работает на всех таймфреймах и инструментах
## Настройки
- **Цвет линий**: Зеленый с прозрачностью 30% (настраивается)
- **Толщина линий**: 1 пиксель (от 1 до 3)
- **Режим**: Точно в 00:00 или первый бар нового дня
## Применение
- Разделение торговых дней на графике
- Анализ поведения цены в начале дня
- Планирование торговых стратегий
- Статистический анализ по дням
## Совместимость
- Pine Script v6
- Все таймфреймы (1м - 1М)
- Все инструменты (акции, форекс, крипто, фьючерсы)
- Все рынки (24/7, дневные, ночные сессии)
Идеально подходит для дневных трейдеров, скальперов и аналитиков, которые хотят лучше ориентироваться на графике и анализировать внутридневные паттерны.
**Pine Script v6** | **Updated: October 2024** | **Обновлено: Октябрь 2024**
EQ + Bandas Pro 📊 EQ + Bands Pro is an advanced indicator built on OHLC analysis. It calculates a synthetic equilibrium price and plots dynamic, robust bands that adapt to volatility while filtering outliers. The tool highlights zones of overvaluation and undervaluation, helping traders identify key imbalances, potential reversals, and trend confirmations.
Level Founder indicatorQuesto strumento, ideato per l'individuazione dei livelli orizzontali sensibili si prepone l'obiettivo di semplificare la lettura tecnica dei grafici. Alla base di questo indicatore c'è il concetto di volatilità, inteso come scontro tra domanda ed offerta, come escursione delle forze nel campo di battaglia fino alla determinazione del prezzo finale di ogni candela. Di fatto, andando a cogliere quella che è la volatilità candela per candela, l'indicatore la calcola in termini assoluti rendendola un numericamente comparabile, in un range tra 0 e 100. Quando questo valore tocca i 100 si genera un picco di volatilità, il quale va ad identificare un punto di attenzione sul grafico di uno strumento. In corrispondenza di questi picchi si osserva dove la battaglia tra compratori e venditori si è conclusa, ovvero dove domanda ed offerta si sono incontrati per definire un prezzo: la chiusura di candela. In corrispondenza di tale prezzo si ha, quindi, un accordo certo tra domanda ed offerta dopo un periodo di contrattazione volatile, andando a certificare quello che è un livello di prezzo "sudato" per un determinato sottostante. Tale soglia si traduce in un livello orizzontale sensibile, che in futuro (avendo il mercato memoria degli scontri passati) potrà comportarsi da supporto o da resistenza, a seconda della situazione. In breve quindi, si traccia una linea orizzontale in corrispondenza delle chiusure di candela che condividono un picco sull'indicatore "Level Founder Indicator". Funziona su ogni time-frame e sottostante.
N.B. A ridosso di questi livelli si possono cercare pattern per l'operatività oppure cercare delle rotture di questi livelli per delle conferme/inversioni, spaziando dal trading intraday all'investimento di lungo periodo.
ENGLISH VERSION:
This tool, designed to identify sensitive horizontal levels, aims to simplify the technical reading of charts. This indicator is based on the concept of volatility, understood as the clash between supply and demand, the oscillation of forces on the battlefield until the final price of each candlestick is determined. By capturing the volatility candlestick by candlestick, the indicator calculates it in absolute terms, making it numerically comparable, within a range between 0 and 100. When this value reaches 100, a volatility spike is generated, which identifies a point of focus on an instrument's chart. At these peaks, we observe where the battle between buyers and sellers has concluded, that is, where supply and demand have met to define a price: the candlestick's close. At this price, therefore, a definite agreement between supply and demand occurs after a period of volatile trading, certifying what is a "hard-earned" price level for a given underlying asset. This threshold translates into a sensitive horizontal level, which in the future (given the market's memory of past clashes) could act as support or resistance, depending on the situation. In short, a horizontal line is drawn at the candlestick closes that share a peak on the "Level Founder Indicator." It works on any timeframe and underlying asset.
N.B.: Near these levels, you can look for trading patterns or look for breakouts of these levels for confirmations/reversals, ranging from intraday trading to long-term investing.
fartbombLinReg fit (history): solid line showing the best-fit linear trend over the last len bars.
Projected offset (visual): same line shifted h bars right so you can see direction.
Future projection (segments): the actual next-h forecast, drawn from the last bar.
Forecast made h bars ago: circle at each bar’s target showing what was predicted h bars earlier.
H / X markers: a hit if that earlier forecast fell inside the bar’s high–low range.
Session Boxes by NicoG (Real-time - Corrected)Draw the boxes in real time and not at the end of the session.
CRT Candle + EMA Cross StrategyCRT with EMA Crossover:
CRT Candle:
Highlights the qualifying candle with a yellow triangle.
Shows “CRT” text on top.
EMA 9/16 Crosses:
Bullish cross → green triangle below candle.
Bearish cross → red triangle above candle.
EMA 200:
Plotted as trend reference.
Works multi-timeframe for CRT detection.
Clean and visual, no trades, purely signals.