Candlestick analysis
Overnight Gap FrequencyThis indicator calculates today's overnight gap (the percentage change from yesterday's close to today's open) and then scans the previous 60 daily candles to count how many times a similar or larger gap occurred. When today's gap is positive, it counts historical gap ups that were equal to or larger; when negative, it counts gap downs that were equal to or more extreme. The result is displayed as a label on the most recent bar, giving you a quick visual reference of how frequently such moves have happened in the past.
Ideal for daily charts, this tool helps you contextualize today's opening gap against historical market behavior, offering insight into the relative rarity of the move.
MA Cross Strategy with Confirmation買入條件:
快線從下往上穿越慢線(黃金交叉)
且連續三根K線的收盤價都在快線上方
賣出條件:
快線從上往下穿越慢線(死亡交叉)
且連續三根K線的收盤價都在快線下方
只有在快慢線間距大於1%時才會考慮交易
需要連續三天符合所有條件(包括間距要求)才會產生交易訊號
這樣可以有效避免在盤整期間產生過多的交易訊號
在發生黃金交叉後的10根K線內
只要出現連續三天符合條件(價格在快線上方且間距足夠)就可以進場
同理,在死亡交叉後的10根K線內
出現連續三天符合條件就可以平倉
Derek's ICT Breaker Block - Highlighted Entries with Pricefirst time creating a pinescript indicator. let me know if you like it.
CRT Strategy with 2:1 Risk/RewardHigher Timeframe Range: The strategy calculates the range from the most recent candle on the 1-hour chart.
Entry Conditions: The entry signals use a simple crossover (or you can replace this with any other condition you'd like). A long entry happens when the current close crosses above the highest close of the past 10 bars, and a short entry happens when the current close crosses below the lowest close.
Stop Loss & Take Profit: The stop loss is set based on the HTF range, and the take profit is 2x the range for a 2:1 risk-to-reward ratio.
Plotting: The stop loss and take profit levels are plotted on the chart for visualization.
Customization:
You can adjust the timeframe (htf) to any higher timeframe you'd like (e.g., 1-hour, 4-hour).
The entry condition (crossover and crossunder) is just an example. You can replace this with any other strategy or indicator.
You can also tweak the risk-to-reward ratio or other aspects of the strategy
3 EMA Crossover Trading Strategy - SivaBuy Signal Only when 5EMA > 21EMA > 50EMA
Sell Signal When 5EMA < 21EMA
24-Hour Volume and Fibonacci Levels StrategyExplanation:
24-Hour High and Low: The script tracks the highest and lowest prices within the past 24 hours.
Fibonacci Levels: It calculates the Fibonacci retracement levels (23.6%, 38.2%, 61.8%, and 78.6%) based on the high and low of the past 24 hours.
Volume: The script plots a 20-period simple moving average (SMA) of the volume to give an indication of the market's activity.
Plotting Fibonacci Levels: The Fibonacci retracement levels are plotted on the chart with distinct colors.
Moving Average Crossover (Basic)great indicator fot beginners, great simple buy and sell patters on chart highlighted very well,
EMA Crossover Trading Strategy - SivaBuy Signal When 5EMA cross above 21EMA
Sell Signal When 5EMA Cross below 21EMA
Combined Structure MarkerA new way to mark SR levels which are only supposedly to be marked on the higher TF's.
SP Buy & Sell MarkersSimple way to mark entries on the chart with the help of liquidity & combining SR levels
AFX EBPTitle: Engulfing Day Trading Strategy – Version 1.0
Description:
The Engulfing Day Trading Strategy is a simple yet effective tool for identifying bullish and bearish engulfing candlestick patterns. This indicator helps traders spot potential trend reversals by marking engulfing patterns on the chart and plotting key percentage retracement levels.
🔹 Features:
✅ Detects Bullish & Bearish Engulfing Patterns
✅ Trend-Based Filtering using SMA (50 & 200)
✅ Automatic Box Drawing around engulfing candles
✅ Key Percentage Levels (20%, 50%, 75%) for trade planning
✅ Customizable Alerts for real-time trade signals
📌 How It Works:
Bullish Engulfing: The current green candle completely engulfs the previous red candle.
Bearish Engulfing: The current red candle completely engulfs the previous green candle.
The indicator plots retracement levels from the high to low of the engulfing structure.
Boxes highlight the engulfing zone for easy visualization.
🎯 Trading Strategy:
For bullish setups: Look for price action above the 50% retracement level for potential buys.
For bearish setups: Watch for price breaking below the 50% retracement level for potential sells.
This is a great tool for intraday traders looking for price action setups with high-probability trade opportunities. 🚀
Combined Stochastic, ADX & BreakoutThe indicator marks two potential buying points in a trend after a correction:
--- Made by @immortaltraderA find him on twitter ---
First Buy Signal Type:
Requirements:
Price must move above EMA9 first
Must have at least one lower high (correction)
Breakout above previous candle's high
Stop loss: Below the last low
Second Buy Signal Type:
Appears after a blue triangle above the candle (based on closing price)
Represents a deep technical correction (measured by Stochastic) in a strong uptrend (measured by ADX)
Additional requirement: Signal candle must be above EMA9 and above previous candle's high
Stop loss: Below the last low
Exit Strategy:
The sell signal has been removed from the indicator to reduce chart clutter
Better selling methods are recommended, such as selling at new highs
Wick Size in USD with 10-Bar AverageWick Size in USD with 10-Bar Average
Version: 1.0
Author: QCodeTrader
🔍 Overview
This indicator converts the price wicks of your candlestick chart into USD values based on ticks, providing both raw and smoothed data via a 10-bar simple moving average. It helps traders visualize the monetary impact of price extremes, making it easier to assess volatility, potential risk, and plan appropriate stop loss levels.
⚙️ Key Features
Tick-Based Calculation:
Converts wick sizes into ticks (using a fixed tick size of 0.01, typical for stocks) and then into USD using a customizable tick value.
10-Bar Moving Average:
Smooths out the wick values over the last 10 bars, giving you a clearer view of average wick behavior.
Bullish/Bearish Visual Cues:
The chart background automatically highlights bullish candles in green and bearish candles in red for quick visual assessment.
Stop Loss Optimization:
The indicator highlights long wick sizes, which can help you set more accurate stop loss levels. Even when the price moves in your favor, long wicks may indicate potential reversals—allowing you to account for this risk when planning your stop losses.
User-Friendly Customization:
Easily adjust the USD value per tick through the settings to tailor the indicator to your specific instrument.
📊 How It Works
Wick Calculation:
The indicator calculates the upper and lower wicks by measuring the distance between the candle’s high/low and its body (open/close).
Conversion to Ticks & USD:
These wick sizes are first converted from price points to ticks (dividing by a fixed tick size of 0.01) and then multiplied by the user-defined tick value to convert the measurement into USD.
Smoothing Data:
A 10-bar simple moving average is computed for both the upper and lower wick values, providing smoothed data that helps identify trends and deviations.
Visual Representation:
Columns display the raw wick sizes in USD.
Lines indicate the 10-bar moving averages.
Background Color shifts between green (bullish) and red (bearish) based on candle type.
⚡ How to Use
Add the Indicator:
Apply it to your chart to begin visualizing wick sizes in monetary terms.
Customize Settings:
Adjust the Tick Value in USD in the settings to match your instrument’s tick value.
(Note: The tick size is fixed at 0.01, which is standard for many stocks.)
Optimize Your Stop Loss:
Analyze the raw and averaged wick values to understand volatility. Long wicks—even when the price moves in your favor—may indicate potential reversals. This insight can help you set more accurate stop loss levels to protect your gains.
Analyze:
Use the indicator’s data to gauge market volatility and assess the significance of price movements, aiding in more informed trading decisions.
This indicator is perfect for traders looking to understand the impact of extreme price movements in monetary terms, optimize stop loss levels, and effectively manage risk across stocks and other instruments with similar tick structures.
Buy & Sell Zone IndicatorFeatures:
✅ Uses RSI, MACD, MA, EMA, BB, Fibonacci, and Support & Resistance
✅ Displays only Buy (Green) and Sell (Red) Zones
✅ No distractions – just clear zones for entry & exit
✅ Works on all time frames
Enhanced SPY Rhythm Formations Detector with Alerts//@version=6
indicator("Enhanced SPY Rhythm Formations Detector with Alerts", overlay=true)
// Inputs
maLength1 = input.int(50, title="EMA Length 1", minval=1)
maLength2 = input.int(200, title="EMA Length 2", minval=1)
shortMaLength1 = input.int(5, title="Short EMA Length 1", minval=1)
shortMaLength2 = input.int(10, title="Short EMA Length 2", minval=1)
shortMaLength3 = input.int(20, title="Short EMA Length 3", minval=1)
rsiLength = input.int(14, title="RSI Length", minval=1)
macdShort = input.int(12, title="MACD Short Length", minval=1)
macdLong = input.int(26, title="MACD Long Length", minval=1)
macdSignal = input.int(9, title="MACD Signal Length", minval=1)
atrLength = input.int(14, title="ATR Length", minval=1)
atrMultiplier = input.float(1.5, title="ATR Multiplier for Target Price", minval=0.1)
// Calculations
ma1 = ta.ema(close, maLength1)
ma2 = ta.ema(close, maLength2)
shortMa1 = ta.ema(close, shortMaLength1)
shortMa2 = ta.ema(close, shortMaLength2)
shortMa3 = ta.ema(close, shortMaLength3)
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, macdShort, macdLong, macdSignal)
macdHist = macdLine - signalLine
atr = ta.atr(atrLength)
// Moving Average Crossovers
goldenCross = ta.crossover(ma1, ma2)
deathCross = ta.crossunder(ma1, ma2)
// Short MAs Crossovers
shortCross1 = ta.crossover(shortMa1, shortMa2)
shortCross2 = ta.crossover(shortMa2, shortMa3)
shortCross3 = ta.crossover(shortMa1, shortMa3)
shortCross1Down = ta.crossunder(shortMa1, shortMa2)
shortCross2Down = ta.crossunder(shortMa2, shortMa3)
shortCross3Down = ta.crossunder(shortMa1, shortMa3)
// RSI Divergence Detection
rsiHigh = ta.highest(rsi, 20)
rsiLow = ta.lowest(rsi, 20)
priceHigh = ta.highest(high, 20)
priceLow = ta.lowest(low, 20)
bearishDivergence = (high == priceHigh and rsi < rsiHigh)
bullishDivergence = (low == priceLow and rsi > rsiLow)
// MACD Histogram Zero Cross
macdZeroCrossUp = ta.crossover(macdHist, 0)
macdZeroCrossDown = ta.crossunder(macdHist, 0)
// Day Trading Signals
dayLongEntry = shortCross1 and rsi < 30
dayShortEntry = shortCross1Down and rsi > 70
// Swing Trading Signals
swingLongEntry = goldenCross and macdHist > 0
swingShortEntry = deathCross and macdHist < 0
// Next Bar Prediction
nextBarUp = close > open and close + (atr * atrMultiplier) > high
nextBarDown = close < open and close - (atr * atrMultiplier) < low
// Shaded Bar Shadow for Next Bar Prediction
bgcolor(nextBarUp ? color.new(color.green, 90) : na, title="Next Bar Up")
bgcolor(nextBarDown ? color.new(color.red, 90) : na, title="Next Bar Down")
// Blinking Alerts
var bool blink = false
blink := not blink
if (dayLongEntry)
label.new(bar_index, low, text="Day Long Entry", color=blink ? color.green : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Day Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (dayShortEntry)
label.new(bar_index, high, text="Day Short Entry", color=blink ? color.red : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Day Short Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingLongEntry)
label.new(bar_index, low, text="Swing Long Entry", color=blink ? color.blue : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Swing Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingShortEntry)
label.new(bar_index, high, text="Swing Short Entry", color=blink ? color.orange : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Swing Short Entry Signal Detected!", alert.freq_once_per_bar_close)
// Plotting
plot(ma1, color=color.blue, title="EMA Length 1 (50)")
plot(ma2, color=color.red, title="EMA Length 2 (200)")
plot(shortMa1, color=color.green, title="Short EMA Length 1 (5)")
plot(shortMa2, color=color.orange, title="Short EMA Length 2 (10)")
plot(shortMa3, color=color.purple, title="Short EMA Length 3 (20)")
Custom Bar Coloring_WKColor your bar display according to the relative positions comparing to SMA.
This is for WK layout.
Custom Bar Coloring_DailyColor your bar according to SMA. This is for daily layout.
Suggest to trade only when bar color=black or red.