Candle Close CountdownA simple indicator that counts down major candle closes.
This is especially useful if you're trading on low time frames but want to know when higher time frame candles close for volatility / reversal points.
It can also be useful to use it as a visual reminder to actually go check how a candle has closed.
- There are alerts for when a candle is going to close you can enable
- The text turns red 15% of the time BEFORE the candle closes
Candlestick analysis
Simple Market Metrics v5Version 5 SMM- Indicator- This will help you make trading a whole lot easier.
Multi-Timeframe RSI Strategyđiều kiện 1 - tại khung thời gian đang chạy (TF0) RSI14 < (vtRSImua)
ema9 (của rsi14 tại TF0) CẮT LÊN wma45 (của rsi14 tại TF0) VÀ rsi14 < Buy limit level0
điều kiện 2: đồng thời tại khung timeframe1 (TF1) : Nếu rsi14 > ema9 (của rsi14) của khung timeframe1 TF1
điều kiện 3: đồng thời kiểm tra khung Custom timeframe 2 (TF2) rsi14 > EMA9 (của rsi14 của TF2)
Hoặc:
điều kiện 1 - tại khung thời gian đang chạy (TF0) RSI14 > (vtRSImua) và
ema9 (của rsi14 tại TF0) CẮT LÊN wma45 (của rsi14 tại TF0) VÀ rsi14 < rsi Buy limit level0
điều kiện 2: đồng thời tại khung timeframe1 (TF1) : Nếu rsi14 > WMA45 (của rsi14) của khung timeframe1 TF1
điều kiện 3: đồng thời kiểm tra khung Custom timeframe 2 (TF2) rsi14 > WMA45 (của rsi14 của TF2)
Candle Color Confirmation Strategy// TradingView (Pine Script v5) Strategy
//@version=5
strategy("Candle Color Confirmation Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Input: Time confirmation in seconds
confirmTime = input(5, title="Seconds to Confirm")
// Track the candle open and its color consistency
var float openPrice = na
var bool isConfirmed = false
var bool isBullish = false
var int startTime = na
if bar_index != bar_index // New candle
openPrice := open
isConfirmed := false
startTime := timenow
if not isConfirmed and (timenow - startTime) >= confirmTime * 1000
if close > openPrice and high == close // Green candle stays green
isBullish := true
strategy.entry("Buy", strategy.long)
isConfirmed := true
else if close < openPrice and low == close // Red candle stays red
isBullish := false
strategy.entry("Sell", strategy.short)
isConfirmed := true
Key Levels SpacemanBTC Jiri PribylThis is the Spaceman BTC indicator at key levels with customized colors specifically for Jiří Přibyl.
Short Only Timex Momentum Indicatormeu indicador trabalha com medias moveis para capturar fortes movimentos direcionais no mercado de cripto
54N Krypto TradingDieser Indikator beinhaltet:
6x EMAs für den aktuellen Timeframe
6x Daily EMAs
6x Weekly EMAs
Vector Candles
Long Only Timex Momentum Indicatormeu indicador trabalha com medias moveis para capturar fortes movimentos direcionais no mercado de cripto
15-Min Candle Breakout Strategy//@version=5
indicator("15-Min Candle Breakout Strategy", overlay=true)
// Define the session start time
startHour = 9
startMinute = 15
// Track the first 15-minute candle
isSessionStart = (hour == startHour and minute == startMinute)
var float firstHigh = na
var float firstLow = na
if (isSessionStart)
firstHigh := high
firstLow := low
// Draw the high and low lines
line.new(x1=bar_index , y1=firstHigh, x2=bar_index, y2=firstHigh, color=color.green, width=1)
line.new(x1=bar_index , y1=firstLow, x2=bar_index, y2=firstLow, color=color.red, width=1)
// Breakout signals
longSignal = (close > firstHigh)
shortSignal = (close < firstLow)
plotshape(longSignal, style=shape.labelup, color=color.green, size=size.small, location=location.belowbar, text="BUY")
plotshape(shortSignal, style=shape.labeldown, color=color.red, size=size.small, location=location.abovebar, text="SELL")
// Visualize breakout range
bgcolor(longSignal ? color.new(color.green, 90) : shortSignal ? color.new(color.red, 90) : na)
alertcondition(longSignal, title="Long Signal", message="Price broke above the first 15-min candle high")
alertcondition(shortSignal, title="Short Signal", message="Price broke below the first 15-min candle low")
// Optional: Reset the high and low at the start of the next day
if (hour == 0 and minute == 0)
firstHigh := na
firstLow := na
Pelata CandleSImple script that paints engulfing candles only if the close beyond previous close/ open
Market Trend Levels Detector With Signals [BigBeluga]Added signals version
Market Trend Levels Detector With Signals
Heikin Ashi Actual Close Price [BarScripts]This indicator plots a dot on your Heikin Ashi chart at the actual raw candle close - revealing the true market close that can differ from the averaged price displayed by Heikin Ashi candles.
Options to show close price on all candles or last X candles.
Please follow BarScripts if you like the indicator.
Candle Size Alert (Open-Close)This Pine Script is a TradingView indicator that checks the size of the previous candle's body (difference between the open and close prices) and triggers an alert if it exceeds a certain threshold.
Breakdown of the Script
1. Indicator Declaration
//@version=5
indicator("Candle Size Alert (Open-Close)", overlay=true)
//@version=5: Specifies that the script is using Pine Script v5.
indicator("Candle Size Alert (Open-Close)", overlay=true):
Creates an indicator named "Candle Size Alert (Open-Close)".
overlay=true: Ensures the script runs directly on the price chart (not in a separate panel).
2. User-Defined Threshold
candleThreshold = input.int(500, title="Candle Size Threshold")
input.int(500, title="Candle Size Threshold"):
Allows the user to set the threshold for candle body size.
Default value is 500 points.
3. Calculate Candle Size
candleSize = math.abs(close - open )
close and open :
close : Closing price of the previous candle.
open : Opening price of the previous candle.
math.abs(...):
Takes the absolute difference between the open and close price.
This gives the candle body size (ignoring whether it's bullish or bearish).
4. Check If the Candle Size Meets the Threshold
sizeCondition = candleSize >= candleThreshold
If the previous candle’s body size is greater than or equal to the threshold, sizeCondition becomes true.
5. Determine Candle Color
isRedCandle = close < open
isGreenCandle = close > open
Red Candle (Bearish):
If the closing price is less than the opening price (close < open ).
Green Candle (Bullish):
If the closing price is greater than the opening price (close > open ).
6. Generate Alerts
if sizeCondition
direction = isRedCandle ? "SHORT SIGNAL (RED)" : "LONG SIGNAL (GREEN)"
alertMessage = direction + ": Previous candle body size = " + str.tostring(candleSize) +
" points (Threshold: " + str.tostring(candleThreshold) + ")"
alert(alertMessage, alert.freq_once_per_bar)
If the candle body size exceeds the threshold, an alert is triggered.
direction = isRedCandle ? "SHORT SIGNAL (RED)" : "LONG SIGNAL (GREEN)":
If the candle is red, it signals a short (sell).
If the candle is green, it signals a long (buy).
The alert message includes:
Signal type (LONG/SHORT).
Candle body size.
The user-defined threshold.
How It Works in TradingView:
The script does not plot anything on the chart.
It monitors the previous candle’s body size.
If the size exceeds the threshold, an alert is generated.
Alerts can be used to notify the trader when big candles appear.
Spot - Fut spread v2The "Spot - Fut Spread v2"
indicator is designed to track the difference between spot and futures prices on various exchanges. It automatically identifies the corresponding instrument (spot or futures) based on the current symbol and calculates the spread between the prices. This tool is useful for analyzing the delta between spot and futures markets, helping traders assess arbitrage opportunities and market sentiment.
Key Features:
- Automatic detection of spot and futures assets based on the current chart symbol.
- Supports multiple exchanges, including Binance, Bybit, OKX, MEXC, BingX, Bitget, BitMEX, Deribit, Whitebit, Gate.io, and HTX.
- Flexible asset selection: the ability to manually choose the second asset if automatic selection is disabled.
- Spread calculation between futures and spot prices.
- Moving average of the spread for smoothing data and trend analysis.
Flexible visualization:
- Color indication of positive and negative spread.
- Adjustable background transparency.
- Text label displaying the current spread and moving average values.
- Error alerts in case of invalid data.
How the Indicator Works:
- Determines whether the current symbol is a futures contract.
- Based on this, selects the corresponding spot or futures symbol.
- Retrieves price data and calculates the spread between them.
- Displays the spread value and its moving average.
- The chart background color changes based on the spread value (positive or negative).
- In case of an error, the indicator provides an alert with an explanation.
Customization Parameters:
-Exchange selection: the ability to specify a particular exchange from the list.
- Automatic pair selection: enable or disable automatic selection of the second asset.
- Moving average period: user-defined.
- Colors for positive and negative spread values.
- Moving average color.
- Background transparency.
- Background coloring source (based on spread or its moving average).
Application:
The indicator is suitable for traders who analyze the difference between spot and futures prices, look for arbitrage opportunities, and assess the premium or discount of futures relative to the spot market.
Contact - t.me
3 Candle Reversal3 Candle Reversal Pattern as described by Stoic Trader (StoicTA)
Simple and to the point.
x.com
AL60 CandlesThis script marks out all candle flips (a bullish candle followed by a bearish candle or a bearish candle followed by a bullish candle).
This is very useful on M15 and above to help you frame reversals on lower timeframes.
I use this tool to backtest reversal times during the day.
Best timeframes: H1, H3, H4
Rubotics Impulse Reloaded IndicatorThis Pine Script™ indicator, named "Rubotics Impulse Reloaded Indicator", is designed to detect strong price moves (impulses) and their subsequent corrections. It leverages the Average True Range (ATR) to measure the magnitude of moves relative to recent volatility and uses a moving average—selectable by type—to assess the underlying trend. Once an impulse is detected, the script monitors for a corrective retracement that falls within user-defined percentage bounds, and then signals potential entry points (bullish or bearish) directly on the chart.
-----
Input Parameters
The indicator comes with several customizable inputs that allow users to fine-tune its behavior:
Impulse Detection Length:
Parameter: impulseLength
Description: Determines the number of bars used to calculate the ATR and detect impulse moves. Lower values make the indicator more sensitive, while higher values smooth out the detection.
Max. Impulse Correction Length:
Parameter: barsSinceImpuls
Description: Sets the maximum number of bars to look back for a valid correction following an impulse.
Impulse Strength Threshold:
Parameter: impulseThreshold
Description: A ratio that determines whether a price move qualifies as a strong impulse. Lower thresholds trigger more impulses, while higher thresholds require more significant moves.
Min/Max Correction Percent:
Parameters: correctionMin and correctionMax
Description: Define the acceptable range (in percentage) of retracement from the impulse high/low that qualifies as a valid correction.
Moving Average Settings:
Parameters: emaLength and maType
Description: The emaLength determines the number of bars used in the moving average calculation, while maType allows the user to choose between different built-in moving averages (EMA, SMA, WMA, VWMA, RMA, HMA) for trend determination.
Debug Mode:
Parameter: debugMode
Description: When enabled, additional information such as impulse strength, correction percentage, and impulse direction is displayed on the chart for troubleshooting and deeper insight.
-----
Trend Calculation
The indicator calculates a trend component using a moving average of the selected type. This moving average is plotted in yellow on the chart, providing visual context for the prevailing trend. Users can select from multiple moving average options (EMA, SMA, etc.) to best fit their analysis style.
-----
Impulse Detection
Impulse moves are detected by comparing the absolute price change over the specified number of bars (impulseLength) to the average range (ATR) multiplied by the same period. The calculated impulse strength is then compared to the user-defined threshold (impulseThreshold):
Impulse Detected:
When the impulse strength exceeds the threshold, the indicator determines whether the move is bullish or bearish based on whether the price increased or decreased relative to the start of the impulse period. It then records key details such as the impulse’s high/low and the bar index at which the move occurred.
-----
Correction Handling
After an impulse is detected, the indicator enters a correction phase:
Correction Calculation:
The script continuously calculates the current retracement percentage relative to the impulse high/low.
Expiration:
If the correction phase lasts longer than the allowed number of bars (barsSinceImpuls), the correction tracking is reset.
-----
Entry Signal Conditions
Two primary functions define the entry conditions:
Bullish Entry:
Triggers if:
The market is in a correction following a bullish impulse.
The correction retracement is within the specified percentage range (correctionMin to correctionMax).
The price is rising (current close is greater than the previous close).
Bearish Entry:
Triggers under similar conditions for a bearish impulse, with the price showing a downward movement.
When either condition is met, the corresponding signal (buy or sell) is plotted on the chart, and the correction phase is reset to await the next impulse.
-----
Visualizations & Debugging
Impulse Strength Plot:
A blue line displays the calculated impulse strength, and a red dashed horizontal line indicates the threshold level for visual reference.
Signal Labels:
Buy and sell signals are visually marked on the chart with labels ("BUY" in green for bullish signals and "SELL" in red for bearish signals).
Debug Information:
If debug mode is enabled, a label on the latest bar shows detailed information including the impulse strength, correction percentage, and impulse direction. This helps users verify and fine-tune the settings.
-----
Usage
Traders can use this indicator to identify high-probability entry points by detecting significant price moves followed by controlled corrections. By adjusting the various input parameters, users can optimize the sensitivity and filtering of the indicator to suit different markets or timeframes.
This robust setup not only provides visual cues for potential trades but also helps in understanding the underlying price dynamics, making it a versatile tool for both trend analysis and entry timing on TradingView.
Triangle Reversal IndicatorTriangle Reversal Indicator – A Visual Tool for Identifying Reversal Patterns
This indicator is designed to highlight potential trend reversal moments by comparing the current candle with the previous one. It offers a unique approach by focusing on distinct candle patterns rather than generic trend indicators, making it a valuable addition to your trading toolkit.
How It Works:
For a bullish signal, the indicator checks if:
The current candle is bullish (closing higher than it opens) while the previous candle was bearish.
The current candle’s low breaches the previous bearish candle’s low.
The current candle’s close is above the previous bearish candle’s close.
When these conditions are met, a tiny green triangle is plotted below the candle to signal a potential bullish reversal.
Conversely, for a bearish signal, it verifies if:
The current candle is bearish (closing lower than it opens) following a bullish candle.
The current candle’s high exceeds the previous bullish candle’s high.
The current candle’s close falls below the previous bullish candle’s close.
If all conditions are satisfied, a small red triangle appears above the candle to indicate a potential bearish reversal.
How to Use:
Simply apply the indicator on your chart and look for the tiny triangles that appear above or below the candles. These markers can serve as an additional visual cue when confirming entry or exit points, but it’s best used alongside your other analysis techniques.
Customization Options:
Users can further enhance the script by adding inputs for lookback periods, adjusting the triangle size, or modifying colors to match their chart themes.
Super Trend with EMA, RSI & Signals//@version=6
strategy("Super Trend with EMA, RSI & Signals", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Super Trend Indicator
atrLength = input.int(10, title="ATR Length")
factor = input.float(3.0, title="Super Trend Multiplier")
= ta.supertrend(factor, atrLength)
// 200 EMA for Trend Confirmation
emaLength = input.int(200, title="EMA Length")
ema200 = ta.ema(close, emaLength)
// RSI for Momentum Confirmation
rsiLength = input.int(14, title="RSI Length")
rsi = ta.rsi(close, rsiLength)
useRSIFilter = input.bool(true, title="Use RSI Filter?")
rsiThreshold = 50
// Buy & Sell Conditions
buyCondition = ta.crossover(close, st) and close > ema200 and (not useRSIFilter or rsi > rsiThreshold)
sellCondition = ta.crossunder(close, st) and close < ema200 and (not useRSIFilter or rsi < rsiThreshold)
// Stop Loss & Take Profit (Based on ATR)
atrMultiplier = input.float(1.5, title="ATR Stop Loss Multiplier")
atrValue = ta.atr(atrLength)
stopLossBuy = close - (atrMultiplier * atrValue)
stopLossSell = close + (atrMultiplier * atrValue)
takeProfitMultiplier = input.float(2.0, title="Take Profit Multiplier")
takeProfitBuy = close + (takeProfitMultiplier * (close - stopLossBuy))
takeProfitSell = close - (takeProfitMultiplier * (stopLossSell - close))
// Execute Trades
if buyCondition
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit Buy", from_entry="Buy", limit=takeProfitBuy, stop=stopLossBuy)
if sellCondition
strategy.entry("Sell", strategy.short)
strategy.exit("Take Profit Sell", from_entry="Sell", limit=takeProfitSell, stop=stopLossSell)
// Plot Indicators
plot(ema200, title="200 EMA", color=color.blue, linewidth=2)
plot(st, title="Super Trend", color=(direction == 1 ? color.green : color.red), style=plot.style_stepline)
// Plot Buy & Sell Signals as Arrows
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
15-5 Pin BarThis indicator will show us what our entry candle is.
It is measured to perfection so there will be no need to measure the entry candle.