sideways market for strangleThis Pine Script is designed to identify **sideways or range-bound markets**, which are often ideal conditions for trading **options strangle strategies**. Here's a breakdown of what the script does:
---
### 🛠 **Purpose:**
To **detect low-volatility, sideways market conditions** where price is not trending strongly in either direction — suitable for **neutral options strategies like short strangles**.
---
### 📌 **Key Components:**
#### 1. **Inputs:**
- `RSI Length`: Default 14 — used for calculating the Relative Strength Index (RSI).
- `ADX Length`: Default 14 — used for calculating the Average Directional Index (ADX), DI+ (positive directional movement), and DI- (negative directional movement).
#### 2. **RSI Calculation:**
- `rsiValue` is calculated using the built-in `ta.rsi(close, rsiLength)`.
- A **sideways market** is expected when RSI is in the **40–60 range**, indicating lack of strong momentum.
#### 3. **ADX and Directional Indicators (DI+ and DI-):**
- `diPlus` and `diMinus` are calculated based on recent price movements and the True Range.
- `dx` (Directional Index) measures the strength of trend direction using the difference between DI+ and DI-.
- `adx` is a smoothed version of `dx` and represents **overall trend strength**.
#### 4. **Sideways Market Conditions:**
- **RSI Condition**: RSI is between 40 and 60.
- **ADX Condition**:
- `adx <= 25` → Weak or no trend.
- `adx < diPlus` and `adx < diMinus` → Confirms ADX is lower than directional components, reducing likelihood of a trending market.
#### 5. **Signal Plot:**
- A **green label below the bar** (`shape.labelup`) is plotted when both conditions are met.
- Indicates potential sideways market conditions.
---
### ✅ **Use Case:**
- This signal can help identify **low-volatility zones** suitable for **short strangles** or **iron condors**, where you profit from time decay while expecting the price to stay within a range.
Candlestick analysis
Bar CounterBar Counter Indicator: Track Bar Sequences with Precision
The Bar Counter Indicator is a highly customizable tool designed for traders who want to monitor and label candlestick bars on their TradingView charts based on their sequence within a specified timeframe. By numbering bars as they form, this indicator helps traders identify patterns, track market rhythm, and time entries or exits with greater precision. It is particularly useful for strategies that rely on counting bars, such as time-based setups, scalping, or pattern recognition.
### Key Features:
1. **Bar Numbering**:
- Assigns a sequential number to each candlestick bar within a user-defined timeframe, displayed directly on the chart.
- Option to show only **even-numbered bars**, **odd-numbered bars**, or both, allowing traders to focus on specific bar sequences (e.g., every second bar for a pattern).
2. **Time Range Filtering**:
- Optionally filter bar counting to a specific time window (e.g., a trading session like 9:30 AM to 4:00 PM).
- When the time filter is enabled, the counter resets to 1 at the start of the specified time range and only counts bars within that period, making it ideal for analyzing high-activity sessions like market opens or closes.
3. **Customizable Display**:
- **Text Position**: Choose whether bar numbers appear above or below the candlestick for optimal chart clarity.
- **Text Color and Size**: Customize the color and size (tiny, small, normal, large) of the numbered labels to match your chart preferences.
- **Vertical Offset**: Fine-tune the vertical placement of labels to avoid overlapping with price action or other indicators.
### How to Use:
- **Pattern Recognition**: Use the bar counter to identify recurring patterns that occur after a specific number of bars (e.g., reversals after 5 bars or breakouts after 10 bars).
- **Session-Based Trading**: Enable the time filter to count bars only during key trading sessions, such as the New York or London market hours, to focus on high-volume periods.
- **Scalping and Intraday Strategies**: Track bar sequences to time entries or exits, especially when combined with even/odd filtering for alternating setups.
- **Automation Support**: The numbered bars can assist in backtesting or developing automated strategies by providing a clear reference for bar counts.
### Ideal For:
- **Scalpers**: Monitor rapid bar sequences to time precise entries and exits in fast-moving markets.
- **Day Traders**: Focus on specific trading sessions by using the time filter to count bars during high-liquidity periods.
- **Pattern Traders**: Identify and act on candlestick patterns that depend on bar counts, such as those used in price action or harmonic trading.
- **All Markets**: Effective for forex, stocks, cryptocurrencies, commodities, and indices across any intraday timeframe.
### Why Choose This Indicator?
The Bar Counter Indicator offers unparalleled flexibility for traders who rely on bar sequencing to inform their strategies. Its ability to filter by time, display only even or odd bars, and customize label appearance ensures it adapts to a wide range of trading styles. Whether you're timing trades in a specific session or tracking patterns across a chart, this indicator provides a clear, visual way to stay on top of market rhythm. Simple yet powerful, it’s a must-have tool for traders seeking to enhance their precision and decision-making.
Add the Bar Counter Indicator to your TradingView chart today and take control of your bar-based trading strategies!
MES - 3WS long v2📘 3WS Long v2 (Three White Soldiers)
Description:
Detects the Three White Soldiers long reversal candlestick pattern on the MES futures chart. The script includes confirmation filters using rolling VWAP, trend structure (EMA/SMA), and volume/momentum signals to reduce false positives. Designed to support discretionary scalping strategies in trending market conditions.
MES - 3BC short v2📕 3BC Short v2 (Three Black Crows)
Description:
Identifies the Three Black Crows short reversal candlestick pattern on the MES futures chart. It applies a trend validation system based on VWAP and moving averages, along with order flow and momentum filters for higher-quality entries. Optimized for traders looking to monitor clean short setups during downtrending phases.
MES - 3BC short/VWAPZone/Orderflow Comp.📕 3BC Short (Three Black Crows)
Description:
Identifies the Three Black Crows short reversal candlestick pattern on the MES futures chart. It applies a trend validation system based on VWAP and moving averages, along with order flow and momentum filters for higher-quality entries. Optimized for traders looking to monitor clean short setups during downtrending phases.
MES - 3WS long/VWAPZone/Orderflow Comp.📘 3WS Long (Three White Soldiers)
Description:
Detects the Three White Soldiers long reversal candlestick pattern on the MES futures chart. The script includes confirmation filters using rolling VWAP, trend structure (EMA/SMA), and volume/momentum signals to reduce false positives. Designed to support discretionary scalping strategies in trending market conditions.
ORDERFLOW - CHOCH STATUS WITH MULTI TF PANNELThis code gives you the status of the orderflow direction (defined by the Choch theory, see Somstradamus for more information on how it is defined) in the form of barcolor for the current TF.
We also have a pannel which let you know the orderflow's status of different timeframes on 1 glances.
CCI Cross Signal with RSI FilterThis indicator is made for educational purpose. Use it to predict the change of trend, it helps to saving wrong decisions in trading. Please use own analysis also
Pro Candlestick ScannerPro Candlestick Scanner v3.4
This is a professional-grade candlestick signal scanner that detects high-probability reversal patterns and validates them using advanced filters.
🔍 What It Does
Scans your chart for key bullish and bearish candlestick patterns:
Bullish Patterns:
• Hammer
• Inverted Hammer
• Bullish Engulfing
• Harami Bullish
• Morning Star
Bearish Patterns:
• Shooting Star
• Bearish Engulfing
• Harami Bearish
• Evening Star
Each pattern can be filtered by:
✔️ Trend direction (20/50 EMA)
✔️ Volume strength (above 1.5× SMA)
✔️ RSI position (customizable)
✔️ MACD histogram direction
It also includes:
Risk/Reward targets (ATR-based)
Ready-to-use alert conditions
How to Use
Add the indicator to your chart.
In the settings:
Enable/disable RSI, MACD, Trend, and Volume filters.
Adjust filter thresholds to your strategy.
Enable Risk/Reward target lines if desired.
Look for labeled signals directly on the chart.
Pro Tip:
Use on 1H, 4H, or Daily timeframes for more reliable signals. Combine with S/R zones for best results.
OptimumTrader SignalsOptimumTrader Signals is a user-friendly indicator that generates BUY and SELL signals based on moving average crossovers (default: 9-period and 21-period MAs). It features customizable candle colors, signal labels, and dashed signal lines to help traders identify trends easily.
HTF/LTF Boxes DRBBUpdated original script with gann box of previous hour and added second LTF box.
All credits to an author of an original code @smitty1021
squeeze momentum BAR color - KLTSqueeze Momentum BAR COLOR - KLT
Description:
The Squeeze Momentum BAR COLOR - KLT is a powerful tool designed to detect volatility compression ("squeeze" zones) and visualize momentum shifts using a refined color-based system. This script blends the well-known concepts of Bollinger Bands and Keltner Channels with an optimized momentum engine that uses dynamic color gradients to reflect trend strength, direction, and volatility.
It’s built for traders who want early warning of potential breakouts and clearer insight into underlying market momentum.
🔍 How It Works:
📉 Squeeze Detection:
This indicator identifies "squeeze" conditions by comparing Bollinger Bands and Keltner Channels:
When Bollinger Bands are inside Keltner Channels → Squeeze is ON
When Bollinger Bands expand outside Keltner Channels → Squeeze is OFF
You’ll see squeeze zones classified as:
Wide
Normal
Narrow
Each represents varying levels of compression and breakout potential.
⚡ Momentum Engine:
Momentum is calculated using linear regression of the price's deviation from a dynamic average of highs, lows, and closes. This gives a more accurate representation of directional pressure in the market.
🧠 Smart Candle Coloring (Optimized):
The momentum color logic is inspired by machine learning principles (no hardcoded thresholds):
EMA smoothing and rate of change (ROC) are used to detect momentum acceleration.
ATR-based filters help remove noise and false signals.
Colors are dynamically assigned based on both direction and trend strength.
🔷 Color Guide:
🟢 Bull Strong: color.rgb(1, 255, 31, 52) → Strong bullish momentum, accelerating upward
🔴 Bull Weak: color.rgb(255, 0, 0, 57) → Still positive, but losing strength
🔺 Bear Strong: color.red → Strong bearish momentum
🟩 Bear Weak: color.rgb(30, 255, 0) → Downtrend slowing or about to reverse
⚪ Neutral: color.gray → No clear trend
🧪 How to Use It:
Look for Squeeze Conditions — especially narrow squeezes, which tend to precede high-momentum breakouts.
Confirm with Momentum Color — strong colors often indicate trend continuation; fading colors may signal exhaustion.
Combine with Price Action — use this tool with support/resistance or patterns for higher probability setups.
Recommended For:
Trend Traders
Breakout Traders
Volatility Strategy Users
Anyone who wants visual clarity on trend strength
📌 Tip: This indicator works great when layered with volume and price action patterns. It is fully non-repainting and supports overlay on price charts.
⚠️ Disclaimer: For educational purposes only. This indicator does not constitute financial advice. Always use with proper risk management.
True Range Orginal📌 Description – True Range Original
This indicator calculates the range (price spread) of the last N candles and displays it directly on the chart, along with suggested dynamic stop-loss levels based on recent volatility. Ideal for scalpers and day traders working on short timeframes such as 1-minute charts.
🔍 Features:
Calculates the difference between the highest high and lowest low of the last N bars (default: 15).
Plots a floating label with the current range value, updated every 5 candles.
Displays 4 dynamic stop levels:
For long positions:
Stop at 1x range (green line)
Stop at 1.5x range (light green line)
For short positions:
Stop at 1x range (red line)
Stop at 1.5x range (dark red line)
⚙️ Inputs:
Range period (number of bars)
Stop multiplier 1 (default: 1.0)
Stop multiplier 2 (default: 1.5)
📈 Usage:
This tool helps you size your stop-loss dynamically based on recent price action instead of using fixed values. It can be used alone or in combination with other tools like support/resistance, volume, or aggression indicators.
Chandelier Exit 優化版//@version=5
indicator('Chandelier Exit 優化版', shorttitle='CE優化', overlay=true)
var string calcGroup = 'Calculation'
length = input.int(title='ATR週期', defval=22, group=calcGroup)
mult = input.float(title='ATR倍數', step=0.1, defval=3.0, group=calcGroup)
useClose = input.bool(title='使用收盤價計算高低點', defval=true, group=calcGroup)
var string visualGroup = '視覺設定'
showLabels = input.bool(title='顯示買/賣標籤', defval=true, group=visualGroup)
highlightState = input.bool(title='高亮趨勢區域', defval=true, group=visualGroup)
var string alertGroup = '警報設定'
awaitBarConfirmation = input.bool(title="等待K棒收定再確認訊號", defval=false, group=alertGroup)
atr = mult * ta.atr(length)
longStop = (useClose ? ta.highest(close, length) : ta.highest(length)) - atr
longStopPrev = nz(longStop , longStop)
longStop := close > longStopPrev ? math.max(longStop, longStopPrev) : longStop
shortStop = (useClose ? ta.lowest(close, length) : ta.lowest(length)) + atr
shortStopPrev = nz(shortStop , shortStop)
shortStop := close < shortStopPrev ? math.min(shortStop, shortStopPrev) : shortStop
var int dir = 1
dir := close > shortStopPrev ? 1 : close < longStopPrev ? -1 : dir
var color longColor = color.green
var color shortColor = color.red
var color longFillColor = color.new(color.green, 90)
var color shortFillColor = color.new(color.red, 90)
var color textColor = color.white
longStopPlot = plot(dir == 1 ? longStop : na, title='多方停損', style=plot.style_linebr, linewidth=2, color=longColor)
buySignal = dir == 1 and dir == -1
plotshape(buySignal ? longStop : na, title='買進訊號', location=location.absolute, style=shape.circle, size=size.tiny, color=longColor)
plotshape(buySignal and showLabels ? longStop : na, title='買標籤', text='買', location=location.absolute, style=shape.labelup, size=size.tiny, color=longColor, textcolor=textColor)
shortStopPlot = plot(dir == 1 ? na : shortStop, title='空方停損', style=plot.style_linebr, linewidth=2, color=shortColor)
sellSignal = dir == -1 and dir == 1
plotshape(sellSignal ? shortStop : na, title='賣出訊號', location=location.absolute, style=shape.circle, size=size.tiny, color=shortColor)
plotshape(sellSignal and showLabels ? shortStop : na, title='賣標籤', text='賣', location=location.absolute, style=shape.labeldown, size=size.tiny, color=shortColor, textcolor=textColor)
midPricePlot = plot(ohlc4, title='', style=plot.style_circles, linewidth=0, display=display.none, editable=false)
longStateFillColor = highlightState ? dir == 1 ? longFillColor : na : na
shortStateFillColor = highlightState ? dir == -1 ? shortFillColor : na : na
fill(midPricePlot, longStopPlot, title='多方區域', color=longStateFillColor)
fill(midPricePlot, shortStopPlot, title='空方區域', color=shortStateFillColor)
await = true // 立即通知快訊,無需等K棒收定
alertcondition(dir != dir and await, title='警報: 趨勢改變', message='Chandelier Exit 趨勢改變!')
alertcondition(buySignal and await, title='警報: 買進訊號', message='Chandelier Exit 買進訊號!')
alertcondition(sellSignal and await, title='警報: 賣出訊號', message='Chandelier Exit 賣出訊號!')
3-Candle Pattern StrategyBuy Conditions:
Candle 2 bars ago: close > open
Previous candle: close < open
Current candle: close > open
Current candle: (high - close) < (high - low) * 0.15
Current candle: volume > previous volume
Sell Conditions:
Candle 2 bars ago: close < open
Previous candle: close > open
Current candle: close < open
Current candle: (close - low) < (high - low) * 0.15
Current candle: volume > previous volume
MoMoExtradeKey Features:
核心功能:
Buy/Sell Signals: Displays "B" (Buy) and "S" (Sell) signals on the chart, pinpointing optimal entry and exit points.
Take-Profit (TP) Markers: Automatically identifies TP levels and shows "TP+price" (e.g., "TP+101.50"), with customizable percentage targets.
Dynamic Background Colors: Green for bullish conditions, red for bearish conditions, providing instant market trend visibility.
Customizable Settings: Adjust signal sensitivity and TP targets to match your trading style and market.
Clean & User-Friendly: Green for Buy, red for Sell, and orange for TP, with clear labeling and chart-friendly design.
买卖信号:在图表上标注“B”(买入)和“S”(卖出)信号,精准提示潜在的入场和出场点。
止盈(TP)标记:自动识别止盈点并显示“TP”,支持自定义止盈百分比,省去繁琐计算。
动态背景色:通过绿色(买入有利)和红色(卖出有利)背景色,直观呈现市场状态,助力快速决策。
灵活调整:提供多个可调参数,轻松适配不同交易风格和市场环境。
美观易用:信号和止盈标记采用醒目配色(绿色买入、红色卖出、橙色止盈),布局清晰,图表整洁。
How to Use:
使用方法:
Gain access to the indicator (see Author’s Note below).
Add the indicator to your chart and tweak parameters (signal period, TP percentage, etc.).
Watch for "B" signals to enter long positions and "S" signals to exit or go short.
Monitor "TP+price" markers to track profit targets.
Use green/red backgrounds to confirm market conditions.
将指标添加到您的图表。
根据交易需求调整参数(信号敏感度、止盈百分比等)。
关注“B”信号入场做多,关注“S”信号平仓或做空。
关注“TP”标记,可选择止盈或等待S信号。
利用绿色/红色背景色判断市场趋势,增强信号可靠性。
Best For:
适用场景:
Day trading, swing trading, or longer-term positions.
Stocks, forex, cryptocurrencies, futures, and more.
Any timeframe (1-minute, 5-minute, daily, etc.).
适合日内交易、波段交易或中长期持仓的交易者。
适用于股票、外汇、加密货币、期货等多种市场。
支持任意时间框架(1分钟、5分钟、日线等)。
Settings:
参数设置:
Signal Period: Default suits most markets, adjustable for signal frequency.
Buy/Sell Thresholds: Default fits typical volatility, customizable for precision.
TP Percentage: Default 1%, set your desired profit target.
信号周期:默认值适合大多数市场,可调整以优化信号频率。
买卖阈值:默认值适配常见波动,可根据市场特性调整。
止盈百分比:默认1%,可设置您的盈利目标。
Note:
注意事项:
This indicator is designed to assist trading decisions. Combine with other tools and risk management strategies. Always backtest signals in your market and timeframe.
本指标旨在辅助交易决策,建议结合其他分析工具和风险管理策略使用。请在您的市场和时间框架上进行充分回测,确保信号效果。
CCR ABU_MO7SENEnsure the chart's timezone is set correctly in TradingView, or adjust the timestamp("GMT", ...) if you need a different timezone.
The lines will extend 100 bars into the future (x2=bar_index + 100). You can adjust this value if you want the lines to extend further or shorter.
If you want to test the indicator, apply it to a chart and verify that the high/low lines appear on the candle starting at 1:30 AM GMT
Reversal Knockout v1.0Reversal Knockout is a powerful tool designed to help you spot high-probability reversals with precision and clarity.
🥊 Bars are colored dynamically based on a custom fast/slow T3 relationship, keeping you aligned with the underlying trend without lag.
🥊 Critical moments are highlighted only when they truly matter:
🟢 Green "9" = Buy setup completion
🟣 Purple "9" = Sell setup completion
🟢 Green "13" = Buy countdown completion
🟣 Purple "13" = Sell countdown completion
🟡 Yellow bars indicate price is crossing the trend line (T3) in the opposite direction of the current momentum. They highlight potential hesitation, early reversal zones, or invalidation of the current trend. Use them as caution zones rather than entry points.
🥊 "Knockout ▲" / "Knockout ▼" = Perfected setups — the real exhaustion points where trends are likely to reverse!
🔥 No noise. No overplotting. Just pure reversal intelligence designed for scalpers, day traders, and swing traders who want to anticipate market turns like a pro.
🚀 Lightweight, highly actionable, and easy to integrate into any strategy — Reversal Knockout gives you the knockout punch when the market shows its weakness.
London/NY Sessions + SMC Levels📜 Indicator Description: London/NY Sessions + SMC Levels
Overview: This indicator highlights the key trading sessions — London, New York, NY Lunch, and Asian Range — providing structured visual guides based on Smart Money Concepts (SMC) and ICT principles.
It dynamically plots:
Session Backgrounds and Boxes for London, NY, Lunch, and Asian sessions
Reference Levels for the High, Low, and Close from today, previous day, or weekly data
Midnight Open line for ICT-style power of three setups
Real-time alerts for session starts, session closes, and important price level crossings
Features:
🕰️ Session Visualization:
Toggle London, NY, Lunch, and Asian session ranges individually, with customizable colors and transparent backgrounds.
🔔 Built-in Alerts:
Alerts for:
Price crossing the previous day's high/low
Price crossing the Midnight Open
Start and end of major sessions (London, NY, Lunch, Asian)
🟩 Reference Levels:
Plot selectable session reference levels:
Today’s intraday High/Low/Close
Previous Day’s High/Low/Close
This Week’s or Previous Week’s levels for broader context.
🌙 Midnight Open:
Track the Midnight New York Open as a reference point for daily bias shifts.
🎯 Customizable Settings:
Choose your session time zones (UTC, New York, London, etc.)
Customize all border colors, background colors, and session hours.
Use Cases:
Identify killzones and optimal trade entry windows for Smart Money Concepts (SMC) and ICT strategies.
Monitor liquidity pool sweeps and session transitions.
Confirm or refine your intraday or swing trading setups by referencing session highs/lows.
Recommended For:
ICT traders
Smart Money Concepts (SMC) practitioners
Forex, indices, crypto, and futures traders focusing on session-based volatility patterns
Anyone wanting a clean, professional session mapping tool
📈
Designed to help you trade with session precision and Smart Money accuracy.
Integrates seamlessly into any ICT, Wyckoff, or Liquidity-based trading approach.
Binary Strategy (with SMI logic)🧠 How to Use:
Chart Timeframe: 5-minute
Setup: Wait for an arrow to appear
Green arrow = BUY a 20-min binary in uptrend with positive momentum
Red arrow = SELL a 20-min binary in downtrend with negative momentum
SMI Logic: Entry only when SMI crosses its signal line in the trend direction and above/below zero
Works for Nadex 20-Minute $&P 500 Binary
If long at 75 get out at 50, or if short at 25 get out at 50. This allow you to be trading at a 1:1 ratio. (Approx.)
RESHAthey are algorithmically generated liquidity clusters based on historical tick data, volatility shifts, and order flow sensitivity.
The algorithm identifies price congestion points where institutional activity or large-volume reactions occurred, not visible through conventional technical indicators. The closer and denser the zones, the higher the probability of a reaction, reversal, or acceleration from that area.
RSI Chart Bars + 8 Patterns + 1 AlertWorks best on 3 min chart after NYSE open.
Gbp/jpy
eur/jpy
us30
nas100
gbp/usd
cad/jpy
usd/jpy
usd/cad
eur/aud
aud/jpy
eur/nzd
9 scalping signals .
Works best on 3 min chart.
Continuation and reversals based on rsi .
enjoy!