Bar Painting [iFarsheed]
Bar Painting
Overview:
The "Bar Painting " indicator is designed for traders who follow price action strategies inspired by Al Brooks.
This tool colors candles on your chart, making it easy to identify different candle types like trend bars, dojis, and pin bars without complex calculations. By simply observing the colors, you can quickly understand market dynamics.
Features:
Candle Coloring:
Bullish (up) and bearish (down) trend bars are highlighted in distinct colors for easy recognition.
Candles that do not fit these patterns appear in the default chart color, indicating they do not represent significant moves.
Visual Clarity:
The color coding provides a quick visual reference, allowing you to grasp market conditions at a glance.
No Calculations Required:
You don’t need to perform any calculations; just look at the colors to understand the strength of the market.
How to Use:
Customize Settings:
Adjust the colors of trend bars to ensure they contrast well with your chart background for improved visibility.
Use the settings to choose which candle types you want to highlight based on your trading preferences.
Analyze Candle Patterns:
Look at the colored candles to quickly identify trend bars, dojis, and pin bars that may signal potential market movements.
Informed Decision Making:
Use the highlighted candle patterns to assist in making trading decisions, such as identifying possible entry and exit points.
Important Note:
This coloring scheme is optimized for light mode charts. In dark mode, the colors may not display correctly.
To ensure proper color display, please set the visual order of the indicator to "Bring to Front."
Future Updates:
This indicator is an initial version, and more features will be added in the future.
If you have any suggestions or feedback, please feel free to share your thoughts in the comments section of the indicator.
Good luck with your trading!
-iFarsheed-
Candlestick analysis
Change of Character FanChange of Character Fan
Overview
The Change of Character Fan is designed to help traders detect shifts (changes of character) in market direction and sentiment before they become fully visible through traditional candlestick analysis. Instead of relying solely on the shape or close of candlesticks, this indicator offers a direct, real-time look at the internal price action occurring within a single bar. This visibility into intrabar dynamics can potentially allow traders to enter or exit trades earlier, minimize false signals, and reduce their dependence on multiple lower-timeframe charts.
How it Works:
The indicator plots a "fan" consisting of five distinct slope lines within the current bar. Each line represents the internal trend of price movement based on user-defined lower timeframe data intervals.
By default, these intervals are set to 3, 5, 8, 13, and 21 samples from 1-second timeframe data.
Each line only appears when it has collected the minimum required number of intrabar data points.
The fan lines use a progressive opacity scale (lighter to darker), visually highlighting the confidence level or probability of directional continuation within the current bar.
At the open of every new bar, the fan disappears completely and gradually reappears as new data is gathered, ensuring clarity and eliminating outdated signals.
Understanding the Mathematics: Linear Regression Model
This indicator is built around the concept of a linear regression model. Linear regression is a statistical technique used to model and analyze relationships between variables—in this case, time (independent variable) and price (dependent variable).
How Linear Regression Works:
Linear regression fits a straight line (called a "line of best fit") through a set of data points, minimizing the overall distance between each point and the line itself.
Mathematically, this is achieved by minimizing the squared differences (errors) between the observed values (actual prices) and the predicted values (prices on the line).
The linear model used here can be expressed in the form:
y = mx + b
where:
𝑦
y is the predicted price,
𝑥
x represents time (each data sample interval),
𝑚
m is the slope of the line, representing the direction and velocity of the trend,
𝑏
b is the intercept (the theoretical price when x=0).
Why a Linear Model is Beneficial in this Indicator:
Simplicity and Reliability: Linear regression is simple, robust, and widely accepted as a baseline predictive model. It requires minimal computational resources, providing instant updates in real-time trading conditions.
Immediate Directional Feedback: The slope derived from linear regression immediately communicates the directional tendency of recent price action. A positive slope indicates upward pressure, and a negative slope signals downward pressure.
Noise Reduction: Even when price fluctuations are noisy or erratic, linear regression summarizes overall direction clearly, making it easier to detect genuine directional shifts (change of character) rather than random price noise.
Intrabar Analysis: Traditional candlestick analysis relies on fully formed candles, potentially delaying signals. By using linear regression on very short-term (intrabar) data, traders can detect shifts in momentum more quickly, providing an earlier signal than conventional candle patterns alone.
Practical Application:
This indicator helps traders to visually identify:
Early Trend Reversals: Intrabar analysis reveals momentum shifts potentially signaling reversals before they become obvious on conventional candles.
Momentum Continuations: Confidence is gained when all lines in the fan are clearly pointing in the same direction, indicating strong intrabar conviction.
Reduced False Signals: Traditional candlestick signals (e.g., hammer candles) sometimes produce false signals due to intrabar noise. By looking directly into intrabar dynamics, traders gain better context on whether candle patterns reflect genuine directional change or merely noise.
Important Requirements and Recommendations:
Subscription Requirements:
A TradingView subscription that supports sub-minute data (e.g., 1-second or 5-second resolution) is strongly recommended.
If your subscription doesn't include this data granularity, you must use a 1-minute lower timeframe, significantly reducing responsiveness. In this scenario, it's best suited for a 15-minute or higher chart, adjusting intervals to shorter periods.
Live Data Essential:
Real-time market data subscription is essential for the accuracy and effectiveness of this indicator.
Using delayed data reduces responsiveness and weakens the indicator's primary advantage.
Recommended Settings for Different Chart Timeframes:
1-minute chart: Use 1-second lower timeframe intervals (default intervals: 3, 5, 8, 13, 21).
5-minute chart: Adjust to a 5- or 10-second lower timeframe, possibly reducing intervals to shorter periods (e.g., 3, 5, 8, 10, 12).
15-minute or higher charts: Adjust lower timeframe to 1-minute if granular data is unavailable, with reduced interval lengths to maintain responsiveness.
Conclusion:
The Change of Character Fan empowers traders with early insight into directional shifts within each candle, significantly enhancing reaction speed, signal accuracy, and reducing dependency on multiple charts. Built on robust linear regression mathematics, it combines clarity, responsiveness, and ease-of-use in a powerful intrabar analysis tool.
Trade smarter, see sooner, and react faster.
Session Breakouts & Trend Indicator# Session Breakouts & Trend Indicator
This indicator identifies high-probability trading opportunities by tracking key intraday sessions and their breakouts while aligning them with the overall market trend direction.
## What Makes This Indicator Unique
Unlike standard breakout indicators that only identify when price crosses a threshold, this indicator:
- Dynamically identifies and tracks important daily sessions (default: AM 09:00-10:00 and PM 15:00-16:00)
- Determines trend direction using a triple EMA system (20/50/200)
- Shows when breakouts align with the overall trend (higher probability setups)
- Provides visual confirmation with session ranges, breakout levels, and background highlighting
- Includes a comprehensive information panel showing trend/session alignment
## How It Works
The indicator tracks two important daily sessions:
1. **AM Session**: Typically the first hour of trading (default: 09:00-10:00)
2. **PM Session**: Typically the last hour of trading (default: 15:00-16:00)
For each session, it:
- Marks the high and low range
- Establishes breakout levels above/below these ranges
- Detects when price breaks beyond these levels
- Determines if the breakout aligns with the prevailing trend
The trend is calculated using three EMAs (20, 50, 200) for reliable trend identification.
## How To Use
1. Apply the indicator to your chart (works best on 5-minute timeframes)
2. Adjust session times to match your trading schedule if needed
3. Watch for breakouts above session highs (bullish) or below session lows (bearish)
4. Check the information panel to see if the breakout aligns with the trend
5. Enter trades in the direction of trend-aligned breakouts for higher probability setups
6. Set stop losses below the opposite side of the session range
## Settings
- **Session Times**: Customize AM and PM session times
- **EMA Lengths**: Adjust trend determination sensitivity
- **Visualization Options**: Toggle display of sessions, breakouts, and VWAP
- **Alert Settings**: Configure alerts for breakouts and trend-aligned conditions
This indicator is valuable for day traders and swing traders looking for objective entry points with higher probability of success.
Stockbee 4% DaysStockbee 4% / -4% identifier. Helps with depicting mom bursts in either direction. I find it particularily helpful when I am looking to determine tightness and quality of a consolidation. You don't want more than one -4% day in a quality consolidation before a breakout.
Highlight Candle Body ≤ 10 Ticks (Clean & Subtle)Purpose:
This indicator highlights candlesticks where the body size (difference between open and close) is 10 ticks or less, specifically for instruments like Crude Oil futures (CL) where 1 tick = 0.01.
How it works:
It calculates the body size: abs(close - open)
If the body is ≤ 0.10 (10 ticks), the candle is softly colored in muted orange.
Wicks are ignored — only the body is considered.
No additional shapes or markers — clean and minimal.
Use case:
Helps identify periods of indecision or low momentum — such as potential pause candles, traps, or setups just before volatility returns.
Trend Exhaustion Counter🔢 How It Works
The Trend Exhaustion Counter consists of two main phases:
1️⃣ Setup
Begins when the close price is greater (or less) than the close 4 bars earlier.
Each bar that meets the condition increments the count.
A complete Setup = 9 consecutive bars that meet the rule:
In an uptrend: close > close
In a downtrend: close < close
Once the 9-count is complete, the market is considered to be in a short-term exhaustion phase.
2️⃣ Trend Exhaustion Counter (Optional Phase)
A secondary phase that counts to 13 (less common in simplified versions).
Confirms potential exhaustion after Setup.
More conservative, but signals stronger reversals.
🟢 Bullish Signal
A 9-count to the downside suggests selling may be exhausted, indicating a potential bottom and reversal upward.
🔴 Bearish Signal
A 9-count to the upside suggests buying may be exhausted, signaling a potential top and reversal downward.
🎯 Usage Tips
Best used in trending markets to identify trend exhaustion.
Works well with support/resistance levels, volume, and candlestick patterns.
Can be combined with other indicators (like RSI or MACD) for confirmation.
📉 Limitations
False signals can occur in choppy, sideways markets.
It doesn’t predict trend direction—only possible exhaustion.
NY AM Session Quartile LinesNY AM Session Quartile Lines
This script automatically divides the New York AM session (6:00 AM to 12:00 PM NY time) into four clear quartiles.
It helps traders visualize the market structure by marking each new quartile with customizable vertical lines.
🔹 Features:
Configurable session start time (NY time).
Adjustable line color, width, and style (solid, dashed, or dotted).
Clean, lightweight design that fits any trading style.
Works across all instruments and timeframes that cover the NY session.
🔹 Perfect for:
Intraday traders who focus on New York session dynamics.
Identifying accumulation, manipulation, and distribution phases across the session.
Structuring the AM session into logical market segments for better planning and analysis.
🎯 Default Settings:
Start Hour: 6:00 AM NY
Line Style: Dashed
Line Color: Black
Line Width: 2
Vietnamese Stocks: Multi-Ticker Fibonacci AlertThis Pine Script™ indicator is designed specifically for traders monitoring the Vietnamese stock market (HOSE, HNX). Its primary goal is to automate the tracking of Fibonacci retracement levels across a large list of stocks, alerting you when prices breach key support zones.
Core Functionality:
The script calculates Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for up to 40 tickers simultaneously. The calculation is based on the highest high and lowest low identified since a user-defined Start Time. This allows you to anchor the Fibonacci analysis to a specific market event, trend start, or time period relevant to your strategy.
What it Does For You:
Automated Watchlist Scanning: Instead of drawing Fib levels on dozens of charts, select one of the two pre-configured watchlists (up to 40 symbols each, customizable in settings) populated with popular Vietnamese stocks.
Time-Based Fibonacci: Define a Start Time in the settings. The script uses this date to find the subsequent highest high and lowest low for each symbol in your chosen watchlist, forming the basis for the Fib calculation.
Intelligent Alerts: Get notified via TradingView's alerts when the candle closing price of any stock in your active watchlist falls below the critical 38.2%, 50%, 61.8%, or 78.6% levels relative to its own high/low range since the start time. Alerts are consolidated for efficiency.
Visual Aids:
- Plots the same time-based Fibonacci levels directly on your current chart symbol for quick reference.
- Includes an optional on-chart table showing which monitored stocks are currently below key Fib levels (enable "Show Debug Info").
- Features experimental background coloring to highlight potential bullish signals on the current chart.
Configuration:
Start Time: Crucial input – sets the anchor point for Fib calculations.
WatchList Selection: Choose between WatchList #1 (Bluechip/Midcap focus) or WatchList #2 (Defensive/Other focus) using the boolean toggles.
Symbol Customization: Easily replace the default symbols with your preferred Vietnamese stocks directly in the indicator settings.
Notification Prefix: Add custom text to the beginning of your alert messages.
Alert Setup: Remember to create an alert in TradingView, selecting this indicator and the alert() condition, usually with "Once Per Bar Close" frequency.
This tool is open-source under the MPL 2.0 license. Feel free to use, modify, and learn from it.
Bullish & Bearish Engulfing ProHello Traders!
Overview
The Bullish & Bearish Engulfing Pro indicator is a powerful pattern recognition tool that identifies key reversal points and trend continuation opportunities. These engulfing patterns often mark the beginning of a significant price move and are widely used in technical analysis. For example, in an uptrend, a Bullish Engulfing pattern can provide an ideal pullback entry signal.
This indicator combines traditional candlestick theory with advanced technical filters like trend direction and volatility analysis to offer traders precise, high-confidence signals.
Key Features :
Accurate pattern detection:
Uses refined algorithms to detect true Bullish and Bearish Engulfing patterns, filtering out noise and false positives.
Trend filter:
Customizable Simple Moving Average (SMA) ensures trades are aligned with the market’s broader trend, improving trade success rates.
Volatility awareness:
ATR-based filtering ensures that only statistically significant engulfing patterns are highlighted.
Visual clarity:
Bullish and Bearish Engulfing patterns are displayed with distinct, customizable colors and labels for instant recognition.
Flexible customization:
Users can adjust detection criteria, SMA settings, and visual options to suit their personal strategy.
Filtered signal display:
Option to visualize filtered-out signals to better understand how the logic makes its decisions.
Bullish Engulfing Pattern
Appears after a downtrend or during a pullback in an uptrend
Consists of two candles
A smaller bearish candle
Followed by a larger bullish candle that completely engulfs the previous body
Bearish Engulfing Pattern
Appears after an uptrend or during a pullback in a downtrend
Consists of two candles
A smaller bullish candle
Followed by a larger bearish candle that completely engulfs the previous body
Key differences in this implementation
What makes this indicator unique
Trend and volatility filters
Ensure patterns occur in meaningful market conditions
Comprehensive pattern analysis:
Factors in candle body ratios, wick sizes, and relative size to past candles for smarter detection
Adaptive to market conditions:
Dynamic thresholds based on ATR allow pattern recognition to adjust to different volatility regimes
Educational value:
Visualizing rejected patterns helps traders build intuition and refine their discretion
How to Trade with this Indicator
Engulfing patterns can signal strong reversals or pullback continuations. Use them with trend and volume confirmation to maximize their effectiveness.
snapshot
Bullish Opportunities:
Look for Bullish Engulfing patterns (aqua-colored candles and labels) during or after a pullback in an uptrend.
Bearish Opportunities:
Watch for Bearish Engulfing patterns (orange-colored candles and labels) during or after a rally in a downtrend.
Entry: Enter on the next bar open after the engulfing candle completes.
Stop loss: 2 ticks below/above the engulfing candle’s low/high.
Take profit: Aim for at least a 2R target, a swing high/low or manage the tradewith a trailing stop.
Trend Alignment:
For higher win probability, take trades only in the direction of the SMA-defined trend.
Note: To ensure the candle coloring appears correctly, place the indicator at the top of the object tree.
FVG + Swings + ConfigurableOverview
This Pine Script v5 indicator highlights Fair Value Gaps (FVGs), plots swing‑high and swing‑low pivots, and marks single breakouts above the last swing‑high or below the last swing‑low by recoloring the breakout candle. Every aspect—gap size, count limits, colors, and feature toggles—is exposed as an input so you can tailor it to your own workflow.
Key Features
Fair Value Gaps
Detects bullish gaps when the high of bar i-2 is below the low of the current bar.
Detects bearish gaps when the low of bar i-2 is above the high of the current bar.
Draws a semi‑transparent rectangle spanning from bar i-2 to bar i + extension.
Automatically deletes oldest boxes when exceeding the user’s “Max FVG Boxes” limit.
Swing‑High / Swing‑Low Pivots
Identifies a swing‑high when the middle candle of a three‑bar sequence has the highest high.
Identifies a swing‑low when the middle candle has the lowest low.
Marks each pivot with a tiny dot above (high) or below (low) the bar.
Single Breakouts
Tracks the most recent swing‑high and swing‑low levels.
On the first close above the last swing‑high (or below the last swing‑low), recolors that single candle.
Prevents repeated coloring until a new swing pivot forms.
Full Customization
Show/Hide toggles for FVGs, swing pivots, breakouts.
Numeric inputs for FVG extension length and maximum retained boxes.
Color pickers for bullish/bearish gaps, swing pivots, and breakout candles.
Break Close High/Low ExtendedBreak Close High/Low Extended
This indicator highlights momentum breakout candles by marking when the candle's close breaks above the previous high (bullish) or below the previous low (bearish). It's designed to help traders quickly identify strong directional intent and potential continuation zones.
🔍 Key Features:
Bullish break candles: Close above the previous candle's high
Bearish break candles: Close below the previous candle's low
Custom bar coloring to visually emphasize breakout candles
Toggleable shapes to mark break candles
Optional shaded boxes that extend a customizable number of bars to the right
Breakout levels displayed as horizontal lines from candle highs/lows
Special highlight for two consecutive breakout candles, capturing extended momentum and volatility
Fully customizable: color pickers, transparency, and extension length
⚙️ Ideal For:
Trend continuation setups
Momentum trading
Breakout confirmation
Scalping and intraday analysis
Heiken Ashi with RSI Colors📜 Description:
This indicator blends Heiken Ashi candlesticks with RSI-based color filters to help traders quickly assess both trend structure and momentum extremes in a single glance.
✅ Heiken Ashi Mode: Smooths out price action to highlight clearer trends and suppress noise
✅ RSI Coloring: Applies candle color changes based on whether RSI is overbought, oversold, or neutral
It allows traders to visually spot potential exhaustion zones, continuation trends, or early reversal areas with enhanced clarity.
🔧 Settings:
Use Heiken Ashi Candles: Toggle between standard candles and Heiken Ashi smoothed values
RSI Length: Controls the lookback for RSI calculation (default 14)
Overbought/Oversold Levels: Customize your thresholds for extreme conditions (default: 70/30)
🎨 Candle Color Logic:
Green (Lime): RSI is overbought → price may be overextended upward
Red: RSI is oversold → price may be overextended downward
Gray: RSI is between extremes → neutral momentum
💡 Use Cases:
Confirm trend momentum with Heiken Ashi structure
Spot potential reversal points using RSI extremes
Enhance entry/exit decisions by combining price action and momentum in a single visual
cd_full_poi_CxOverview
This indicator tracks the price in 16 different time frames (optional) in order to answer the question of where the current price has reacted or will react.
It appears on the chart and in the report table when the price approaches or touches the fvg or mitigations (order block / supply-demand), the rules of which will be explained below.
In summary, it follows the fvg and mitigations in the higher timeframe than the lower timeframe.
Many traders see fvg or mitigates as an point of interest and see the high, low swept in those zones as a trading opportunity. Key levels, Session high/lows and Equal high and lows also point of interest.
If we summarise the description of the point of interest ;
1- Fair value gaps (FVG) (16 time frames)
2- Mitigation zones (16 time frames)
3- Previous week, day, H4, H1 high and low levels
4- Sessions zones (Asia, London and New York)
5- Equal high and low levels are in indicator display.
Details:
1- Fair Value Gaps : It is simply described as a price gap and consists of a series of 3 candles. The reaction of the price to the gap between the 1st and 3rd candle wicks is observed.
The indicator offers 3 options for marking. These are :
1-1- ‘Colours are unimportant’: candle colours are not considered for marking. Fvg formation is sufficient.(Classical)
1-2- ‘First candle opposite colour’ : when a price gap occurs, the first candle of a series of 3 candles must be opposite.
For bullish fvg : bearish - bullish - free
For Bearish fvg : bullish - bearish - free
1-3- ‘All same colour’ : all candles in a series of 3 candles must be the same direction.
For bullish fvg: bullish - bullish - bullish
For bearish fvg : bearish - bearish – bearish
Examples:
2- Mitigation zones: Opposite candles with a fvg in front of them or candles higher/lower than the previous and next candle and with the same colour as the fvg series are marked.
Examples :
3- Previous week, day, H4, H1 high and low levels
4- Sessions regions (Asia, London and New York)
5- Equal high and low levels:
Annotation: Many traders want to see a liquidity grab on the poi, then try to enter the trade with the appropriate method.
Among the indicators, there is also the indication of grabs/swepts that occur at swing points. It is also indicated when the area previously marked as equal high/low is violated (grab).
At the end, sample setups will be shown to give an idea about the use of the indicator.
Settings:
- The options to be displayed from the menu are selected by ticking.
- 1m, 2m, 3m, 5m, 5m, 10m, 15m, 30m, h1, h4, h4, h6, h8, h12, daily, weekly, monthly and quarterly, 16 time zones in total can be displayed.
- The ‘Collapse when the price touches mitigate’ tab controls whether to collapse the box as the price moves into the inner region of the mitigate. If not selected, the size of the mitigate does not change.
- ‘Approach limit =(ATR / n)’ tab controls how close the price is to the fvg or mitigate. Instant ATR(10) value is calculated by dividing by the entered ‘n’ value.
- All boxes and lines are automatically removed from the screen when the beyond is closed.
- Colour selections, table, text features are controlled from the menu.
- Sessions hours are set as standard hours, the user can select special time zones. Timezone is set to GMT-4.
- On the candle when the price touches fvg or mitigate, the timeframe information of the POI is shown in the report table together with the graphical representation.
The benefits and differences :
1- We can evaluate the factors we use for setup together.
2- We are aware of what awaits us in the high time frame in the following candles.
3- It offers the user the opportunity to be selective with different candle selection options in fvg selection.
4- Mitige areas are actually unmitige areas because they have a price gap in front of them. The market likes to retest these areas.
5- Equal high/low zones are the levels that the price creates to accumulate liquidity or fails to go beyond (especially during high volume hours). Failure or crossing of the level may give a reversal or continuation prediction.
Sample setup 1:
Sample setup 2:
Sample setup 3:
Cheerful trades…
Enjoy…
Head & Shoulders Pattern (Zeiierman)█ Overview
The Head & Shoulders Pattern (Zeiierman) is an advanced pattern recognition tool that automatically detects and visualizes one of the most powerful reversal patterns in technical analysis — the classic Head & Shoulders and Inverse Head & Shoulders formations .
This indicator brings structure clarity directly onto the price chart, allowing traders to instantly spot potential major reversal zones without manually drawing or searching for patterns.
It doesn't just draw lines — it intelligently scans price action for symmetry, pivot behavior, and neckline structures — then projects realistic price targets based on the pattern's height.
⚪ In simple terms:
▸ Standard Head & Shoulders → Bearish Reversal Pattern
▸ Inverse Head & Shoulders → Bullish Reversal Pattern
▸ Target Projection → Estimated Move from Neckline Break
▸ Labels → Clear annotation of Left Shoulder, Head, and Right Shoulder
█ How It Works
The indicator combines multiple technical detection layers into a clean visual model:
⚪ Dynamic Pivot Engine
Automatically detects pivot highs and lows based on user-defined Period.
Longer Period = Broader, higher-confidence patterns
Shorter Period = Smaller, more frequent patterns
⚪ Pattern Detection Logic
Scans pivot structures in real-time to identify valid:
Bearish Head & Shoulders (H&S)
Bullish Inverse Head & Shoulders (iH&S)
Conditions include:
▸ Symmetry validation
▸ Head above (or below) Shoulders
▸ Neckline structure
▸ Minimum price conditions met
█ How to Use
⚪ Reversal Trading
Look for Head & Shoulders at the top of an uptrend
Look for Inverse Head & Shoulders at the bottom of a downtrend
⚪ What makes our tool truly unique is that it goes beyond the traditional textbook definition.
Our custom Head & Shoulders algorithm is built with flexibility and adaptability in mind. It dynamically responds to real-time price action, allowing it to detect valid patterns not only at major trend reversals — but also within trending environments.
That means you can spot Head & Shoulders formations at:
Consolidation zones
Trend continuation areas
Corrective phases within established trends
It doesn’t have to be the absolute top or bottom of a move — and that’s the real power of this tool. It adapts. It evolves. It finds structure where most indicators stay blind.
█ Common Real-World Stop Loss Strategies with Head & Shoulders Patterns
Not all Head & Shoulders patterns are created equal — and neither are the stop loss strategies used to trade them.
Depending on your trading style, risk tolerance, and market context — here are the 3 most common ways traders manage stop placement when trading Head & Shoulders (H&S) or Inverse Head & Shoulders (iH&S) patterns:
⚪ Conservative Stop Placement
Maximum Safety — Minimum Chance of Being Stopped Prematurely
Stop Placement:
Above the Head (Bearish H&S)
Below the Head (Bullish iH&S)
Pros: Safest approach. Provides maximum protection against false breakouts and noise.
Cons: Often results in very large stop losses, especially on bigger patterns or higher timeframes. Risk-to-Reward (RR) can be poor unless the target is far.
⚪ Aggressive Stop Placement
Tighter Risk — Faster Invalidations
Stop Placement:
Above the Right Shoulder (Bearish H&S)
Below the Right Shoulder (Bullish iH&S)
Pros: Smaller stop losses. Improved RR. Ideal for traders who want tighter control over risk.
Cons: Higher chance of getting stopped on retests or minor volatility around the neckline zone.
⚪ Neckline Reclaim Invalidation
Dynamic & Price-Action Based Exit
Stop Placement:
Exit the trade if price closes back above (bearish) or below (bullish) the neckline after breaking it.
Pros: Dynamic approach based on market behavior rather than static levels. Allows more flexibility.
Cons: Requires active trade management. Not suitable for fully automated or set-and-forget trading styles.
█ Why It's Useful
This is not a basic pattern drawing tool — it's a complete detection system built for traders who want to:
Automatically detect powerful reversal patterns
Avoid the subjectivity of manually drawing H&S structures
Trade with clear target projections
Identify high-probability reversal zones
Visually map structure shifts in real-time
█ Settings
Pivot Detection
Period → Number of bars used to scan for pivots (Higher = Bigger patterns)
Pattern Detection
Enable Bullish Head & Shoulders
Enable Bearish Head & Shoulders
Visualization
Customize Colors (Lines, Fills, Labels)
Enable/Disable Labels
Pattern Style: Closed / Open
Custom Label Colors
Target Projection
Enable/Disable Target Projection
Customize Target Colors
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
The Delta with EMAs - Version 2 | CaptJackSparrow📊 The Delta with EMAs - Version 2 16th April 25 working copy it is not finished yet!!!!!!!| CaptJackSparrow
This updated script takes your trading to the next level by merging dynamic volume delta with customizable EMAs and Fibonacci levels, all enhanced with session-based background highlights.
🧩 Cumulative Volume Delta (CVD):
Visualize market sentiment and volume flow with step-line candles, showing the tug-of-war between buyers and sellers.
Real-time tracking of volume dynamics with customizable timeframes and session-specific calculations.
📈 Exponential Moving Averages (EMAs):
EMAs (3, 5, 8, 9, 15, 24, 30, 60, 90) plotted on CVD to reveal trend direction and momentum shifts.
Customizable visibility settings for each EMA, with background coloring when the EMAs align to highlight momentum zones.
📊 Fibonacci Levels:
Overnight and New York sessions: Track the high, low, and midpoint (equilibrium) for each session to gauge market sentiment.
Weekly Fibonacci: See the high, low, and midpoint for the week, with dynamic labels updating as the week progresses.
🌍 Session Highlights:
Display colored backgrounds for New York, Overnight, Europe, Asia, and After Hours sessions, helping you identify active market periods.
Customizable start/end times for each session with visual color options.
🔔 Alerts & Visuals:
EMA crossovers and background colors help spot key momentum shifts.
Tailored alerts based on the crossover of the EMAs, helping you track potential entries or exits.
🧠 Ideal for traders who love:
Understanding market structure through volume analysis.
Using multiple session contexts for more precise trading decisions.
Anticipating breakouts or divergences with dynamic Fibonacci and EMA support.
🏴☠️ Disclaimer: This script is for educational purposes only and is not financial advice. Always trade responsibly and consider market risks.
Wickless Candle MarkerThis indicator highlights "wickless" candles and draws horizontal levels at their price. A wickless candle is defined as a candle with no significant wick on either the top or bottom — meaning the open or close is effectively equal to the high or low, within a user-defined precision threshold.
Features:
Highlights wickless candles in yellow
Draws a horizontal dotted line from the wickless level (either top or bottom)
Automatically removes the level and highlight once the price is touched again
User-adjustable sensitivity threshold to define what counts as "wickless" (default: 0.01%)
This tool is useful for traders looking to identify potential liquidity levels or precise rejection points where price reversed without leaving a wick.
Settings:
Wickless Threshold (%): Adjust the tolerance for wick size relative to the candle range
TuxTune - Dynamic Vertical LineVisual aid. The vertical line moves dynamically with the last candle of the selected time frame.
The middle of the line moves with the latest price.
The line range (height) can be set to any value to aid in quickly gauging the size of the candles without having to keep looking at the numbers on the vertical axis to determine how big the candles are.
Line width, color, and distance from the last candle can also be set.
The label can be turned off/on.
HTF Candle Overlay with Probability
Visualize Higher Timeframe Candles with Predictive Insights
This tool reconstructs higher-timeframe (HTF) candles using 1-minute bars and overlays them directly on your chart. It includes:
Wick + Body rendering for grouped HTF candles (e.g. 10m, 15m, etc.)
A dynamic label showing the probability of the current HTF candle closing bullish
Real-time updates and smart fading based on candle progress
Configurable colors for fills, outlines, and labels
🔧 Customizable Options:
Candle size (e.g. 10m, 15m)
Body fill and border color
Wick fill and border color
Label text/background color
Whether you're a scalper watching larger structure or a PA trader looking for confluence, this overlay gives you predictive insight where it matters: on the candle that's still forming.
No Wick Candle Finder"No Wick Candle Finder", is a visual that identifies and confirms candlestick patterns with no wicks—a rare but significant type of price action. Here's a breakdown of what it does, how it works, and why traders might find it useful:
This script highlights candles with no wicks and adds an extra layer of confirmation before plotting a signal.
📌 What is a No-Wick Candle?
A "no-wick" candle means:
Bullish (green) no-wick candle:
Open = Low
Close = High
Strong buying pressure from start to end of the candle.
Bearish (red) no-wick candle:
Open = High
Close = Low
Strong selling pressure throughout the candle.
These candles indicate a clear directional move with no retracement during the timeframe.
🧠 Trading Use Cases
Trend Continuation Entry: These candles can signal strong momentum continuation.
Breakout Confirmation: Often appear on breakouts—confirming strength.
Scalping or Intraday: Great for short timeframes where clean moves matter most.
AllMA Trend Radar [trade_lexx]📈 AllMA Trend Radar is your universal trend analysis tool!
📊 What is AllMA Trend Radar?
AllMA Trend Radar is a powerful indicator that uses various types of Moving Averages (MA) to analyze trends and generate trading signals. The indicator allows you to choose from more than 30 different types of moving averages and adjust their parameters to suit your trading style.
💡 The main components of the indicator
📈 Fast and slow moving averages
The indicator uses two main lines:
- Fast MA (blue line): reacts faster to price changes
- Slow MA (red line): smoother, reflects a long-term trend
The combined use of fast and slow MA allows you to get trend confirmation and entry/exit points from the market.
🔄 Wide range of moving averages
There are more than 30 types of moving averages at your disposal:
- SMA: Simple moving average
- EMA: Exponential moving average
- WMA: Weighted moving average
- DEMA: double exponential MA
- TEMA: triple exponential MA
- HMA: Hull Moving Average
- LSMA: Moving average of least squares
- JMA: Eureka Moving Average
- ALMA: Arnaud Legoux Moving Average
- ZLEMA: moving average with zero delay
- And many others!
🔍 Indicator signals
1️⃣ Fast 🆚 Slow MA signals (intersection and ratio of fast and slow MA)
Up/Down signals (intersection)
- Buy (Up) signal:
- What happens: the fast MA crosses the slow MA from bottom to top
- What does the green triangle with the "Buy" label under the candle look
like - What does it mean: a likely upward trend reversal or an uptrend strengthening
- Sell signal (Down):
- What happens: the fast MA crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: a likely downtrend reversal or an increase in the downtrend
Greater/Less signals (ratio)
- Buy signal (Greater):
- What happens: the fast MA becomes higher than the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the formation or confirmation of an uptrend
- Sell signal (Less):
- What happens: the fast MA becomes lower than the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the formation or confirmation of a downtrend
2️⃣ Signals ⚡️ Fast MA (fast MA and price)
Up/Down signals (intersection)
- Buy signal (Up Fast):
- What happens: the price crosses the fast MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a short-term price growth signal
- Sell signal (Down Fast):
- What happens: the price crosses the fast MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a short-term price drop signal
Greater/Less signals (ratio)
- Buy signal (Greater Fast):
- What happens: the price is getting higher than the fast MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the fast MA, which indicates an upward movement
- Sell signal (Less Fast):
- What happens: the price is getting lower than the fast MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the fast MA, which indicates a downward movement
3️⃣ Signals 🐢 Slow MA (slow MA and price)
Up/Down signals (intersection)
- Buy signal (Up Slow):
- What happens: the price crosses the slow MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a potential medium-term upward trend reversal
- Sell signal (Down Slow):
- What happens: the price crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a potential medium-term downward trend reversal
Greater/Less signals (ratio)
- Buy signal (Greater Slow):
- What happens: the price is getting above the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the slow MA, which indicates a strong upward movement
- Sell signal (Less Slow):
- What is happening: the price is getting below the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the slow MA, which indicates a strong downward movement
🛠 Filters to filter out false signals
1️⃣ Minimum distance between the signals
- What it does: sets the minimum number of candles between signals of the same type
- Why it is needed: it prevents the appearance of too frequent signals, especially during periods of high volatility
- How to set it up: Set a different value for each signal type (default: 3-5 bars)
- Example: if the value is 3 for Up/Down signals, after the buy signal appears, the next buy signal may appear no earlier than 3 bars later
2️⃣ Advanced indicator filters
🔍 RSI Filter
- What it does: Checks the Relative Strength Index (RSI) value before generating a signal
- Why it is needed: it helps to avoid countertrend entries and catch reversal points
- How to set up:
- For buy signals (🔋 Buy): set the RSI range, usually in the oversold zone (for example, 1-30)
- For sell signals (🪫 Sell): set the RSI range, usually in the overbought zone (for example, 70-100)
- Example: if the RSI = 25 (in the range 1-30), the buy signal will be confirmed
📊 MFI Filter (Cash Flow Index)
- What it does: analyzes volumes and the direction of price movement
- Why it is needed: confirms signals with data on the activity of cash flows
- How to set up:
- For buy signals (🔋 Buy): set the MFI range in the oversold zone (for example, 1-25)
- For sell signals (🪫 Sell): set the MFI range in the overbought zone (for example, 75-100)
- Example: if MFI = 80 (in the range of 75-100), the sell signal will be confirmed
📈 Stochastic Filter
- What it does: analyzes the position of the current price relative to the price range
- Why it is needed: confirms signals based on overbought/oversold conditions
- How to configure:
- You can configure the K Length, D Length and Smoothing parameters
- For buy signals (🔋 Buy): set the stochastic range in the oversold zone (for example, 1-20)
- For sell signals (🪫 Sell): set the stochastic range in the overbought zone (for example, 80-100)
- Example: if stochastic = 15 (is in the range of 1-20), the buy signal will be confirmed
🔌 Connecting to trading strategies
The indicator provides various connectors to connect to your trading strategies.:
1️⃣ Individual connectors for each type of signal
- 🔌Fast vs Slow Up/Down MA Signal🔌: signals for the intersection of fast and slow MA
- 🔌Fast vs Slow Greater/Less MA Signal🔌: signals of the ratio of fast and slow MA
- 🔌Fast Up/Down MA Signal🔌: signals of the intersection of price and fast MA
- 🔌Fast Greater/Less MA Signal🔌: signals of the ratio of price and fast MA
- 🔌Slow Up/Down MA Signal🔌: signals of the intersection of price and slow MA
- 🔌Slow Greater/Less MA Signal🔌: Price versus slow MA signals
2️⃣ Combined connectors
- 🔌Combined Up/Down MA Signal🔌: combines all the crossing signals (Up/Down)
- 🔌Combined Greater/Less MA Signal🔌: combines all the signals of the ratio (Greater/Less)
- 🔌Combined All MA Signals🔌: combines all signals (Up/Down and Greater/Less)
❗️ All connectors return values:
- 1: buy signal
- -1: sell signal
- 0: no signal
📚 How to start using AllMA Trend Radar
1️⃣ Selection of types of moving averages
- Add an indicator to the chart
- Select the type and period for the fast MA (default: DEMA with a period of 14)
- Select the type and period for the slow MA (default: SMA with a period of 14)
- Experiment with different types of MA to find the best combination for your trading style
2️⃣ Signal settings
- Turn on the desired signal types (Up/Down, Greater/Less)
- Set the minimum distance between the signals
- Activate and configure the necessary filters (RSI, MFI, Stochastic)
3️⃣ Checking on historical data
- Analyze how the indicator works based on historical data
- Pay attention to the accuracy of the signals and the presence of false alarms
- Adjust the settings if necessary
4️⃣ Introduction to the trading strategy
- Decide which signals will be used to enter the position.
- Determine which signals will be used to exit the position.
- Connect the indicator to your trading strategy through the appropriate connectors
🌟 Practical application examples
Scalping strategy
- Fast MA: TEMA with a period of 8
- Slow MA: EMA with a period of 21
- Active signals: Fast MA Up/Down
- Filters: RSI (range 1-40 for purchases, 60-100 for sales)
- Signal spacing: 3 bars
Strategy for day trading
- Fast MA: TEMA with a period of 10
- Slow MA: SMA with a period of 20
- Active signals: Fast MA Up/Down and Fast vs Slow Greater/Less
- Filters: MFI (range 1-25 for purchases, 75-100 for sales)
- Signal spacing: 5 bars
Swing Trading Strategy
- Fast MA: DEMA with a period of 14
- Slow MA: VWMA with a period of 30
- Active signals: Fast vs Slow Up/Down and Slow MA Greater/Less
- Filters: Stochastic (range 1-20 for purchases, 80-100 for sales)
- Signal spacing: 8 bars
A strategy for positional trading
- Fast MA: HMA with a period of 21
- Slow MA: SMA with a period of 50
- Active signals: Slow MA Up/Down and Fast vs Slow Greater/Less
- Filters: RSI and MFI at the same time
- The distance between the signals: 10 bars
💡 Tips for using AllMA Trend Radar
1. Select the types of MA for market conditions:
- For trending markets: DEMA, TEMA, HMA (fast MA)
- For sideways markets: SMA, WMA, VWMA (smoothed MA)
- For volatile markets: KAMA, AMA, VAMA (adaptive MA)
2. Combine different types of signals:
- Up/Down signals work better when moving from a sideways trend to a directional
one - Greater/Less signals are optimal for fixing a stable trend
3. Use filters effectively:
- The RSI filter works great in trending markets
- MFI filter helps to confirm the strength of volume movement
- Stochastic filter works well in lateral ranges
4. Adjust the minimum distance between the signals:
- Small values (2-3 bars) for short-term trading
- Average values (5-8 bars) for medium-term trading
- Large values (10+ bars) for long-term trading
5. Use combination connectors:
- For more reliable signals, connect the indicator through the combined connectors
💰 With the AllMA Trend Radar indicator, you get a universal trend analysis tool that can be customized for any trading style and timeframe. The combination of different types of moving averages and advanced filters allows you to significantly improve the accuracy of signals and the effectiveness of your trading strategy!
Reversal Strength Meter – Adib NooraniThe Reversal Strength Meter is an oscillator designed to identify potential reversal zones based on supply and demand dynamics. It uses smoothed stochastic logic to reduce noise and highlight areas where momentum may be weakening, signaling possible market turning points.
🔹 Smooth, noise-reduced stochastic oscillator
🔹 Custom zones to highlight potential supply and demand imbalances
🔹 Non-repainting, compatible across all timeframes and assets
🔹 Visual-only tool — intended to support discretionary trading decisions
This oscillator assists scalpers and intraday traders in tracking subtle shifts in momentum, helping them identify when a market may be preparing to reverse — always keeping in mind that trading is based on probabilities, not certainties.
📘 How to Use the Indicator Efficiently
For Reversal Trading:
Buy Setup
– When the blue line dips below the 20 level, wait for it to re-enter above 20.
– Look for reversal candlestick patterns (e.g., bullish engulfing, hammer, or morning star).
– Enter above the pattern’s high, with a stop loss below its low.
Sell Setup
– When the blue line rises above the 80 level, wait for it to re-enter below 80.
– Look for bearish candlestick patterns (e.g., bearish engulfing, inverted hammer, or evening star).
– Enter below the pattern’s low, with a stop loss above its high.
🛡 Risk Management Guidelines
Risk only 0.5% of your capital per trade
Book 50% profits at a 1:1 risk-reward ratio
Trail the remaining 50% using price action or other supporting indicators
Reversal Scalping Ribbon - Adib NooraniThe Reversal Scalping Ribbon is a trend-following overlay tool designed to visually identify potential reversal zones based on price extremes and dynamic volatility bands. It calculates adaptive upper and lower bands using price action and custom ATR logic, helping traders quickly assess market direction and possible turning points
🔹 Volatility-adjusted bands based on price highs/lows
🔹 Color-coded ribbons to indicate trend bias and potential reversal shifts
🔹 No repainting, works on all timeframes and assets
🔹 Visual-only display, no trade signals — supports discretion-based entries
This ribbon is designed for scalpers and intraday traders to spot reversal setups with clarity. It enhances your trading by showing real-time market bias without unnecessary distractions. By focusing on probabilities, it helps to improve decision-making in fast-paced environments
How to use the indicator efficiently
For Reversal Trading:
Buy: When price closes below the green ribbon with a red candle, then re-enters with a green candle. Enter above the high of the green candle with a stop loss below the lowest low of the recent green/red candles
Sell: When price closes above the red ribbon with a green candle, then re-enters with a red candle. Enter below the low of the red candle with a stop loss above the highest high of the recent red/green candles
Risk Management:
Limit risk to 0.5% of your capital per trade
Take 50% profit at a 1:1 risk-reward ratio
For the remaining 50%, trail using the lower edge of the green band for buys and the upper edge of the red band for sells
Liquidity Sweep with EMAThis Pine Script indicator helps traders identify potential market reversals based on liquidity sweeps, where the price moves through the previous candle's low or high and then closes above or below the previous candle's wick. These are often seen as significant market moves or liquidity grabs before a potential reversal or continuation.
The indicator is also equipped with an EMA (Exponential Moving Average) as an optional visual aid to give traders a sense of the prevailing trend, though it is not used as part of the signal generation logic.
Key Features:
Liquidity Sweep Detection:
Bullish Sweep: Triggered when the current candle sweeps below the low of the previous candle and then closes above the high of the previous candle. This indicates a potential market reversal to the upside after the liquidity sweep.
Bearish Sweep: Triggered when the current candle sweeps above the high of the previous candle and then closes below the low of the previous candle. This indicates a potential market reversal to the downside after the liquidity sweep.
EMA:
The EMA (50) is plotted on the chart for visual trend guidance. While it is not used to confirm the signals, it can help traders see if the market is in a general uptrend or downtrend.
Signal Presentation:
Buy Signal: The indicator will plot a green upward arrow below the candle when a bullish liquidity sweep is detected.
Sell Signal: The indicator will plot a red downward arrow above the candle when a bearish liquidity sweep is detected.
Timeframe Filter:
The indicator only generates signals on the following timeframes: 30-minute, 1-hour, 4-hour, and Daily. This helps to ensure the sweeps are significant and likely to result in meaningful price moves.
Alerts:
Alerts can be set up for both bullish and bearish sweep signals, so traders can be notified when these events occur.
Customizable:
EMA Length: The length of the Exponential Moving Average (EMA) can be adjusted. By default, it is set to 50, but you can modify this to fit your trading strategy.
Show EMA Option: You can toggle whether or not to display the EMA line on the chart.
How It Works:
The indicator looks for price action patterns where the current candle sweeps through the high or low of the previous candle and closes beyond the previous wick.
These patterns are often seen as potential traps, where the price initially moves in one direction (sweeping the liquidity) and then quickly reverses, making them important for traders who want to catch reversals or breakouts after a liquidity sweep.
The EMA (50) gives a general trend direction but doesn't directly affect the trade signals. It serves as a visual reference for trend analysis.
Potential Use Cases:
Reversal Trading: Traders can use this indicator to catch reversals after a liquidity sweep. The green upward arrows may indicate a bullish reversal, while the red downward arrows may indicate a bearish reversal.
Trend Trading: The EMA can help traders gauge the overall market trend. If the price is above the EMA, the market may be in an uptrend, and traders may focus on bullish sweeps. Conversely, if the price is below the EMA, the market may be in a downtrend, and traders may focus on bearish sweeps.
Confirmation with Other Indicators: Although the EMA is not used to confirm signals in this script, it can be combined with other indicators (like RSI, Volume, or MACD) to enhance the accuracy of your trades.
Final Thoughts:
This script is designed to identify liquidity sweeps and price reversals based on price action alone, without relying on complex indicators. The optional EMA serves as a helpful tool for understanding the overall market trend. It’s ideal for traders looking to spot potential reversal points after significant price sweeps and is suitable for multiple timeframes (30m, 1h, 4h, Daily).
You can use this description to help potential users understand the functionality of your indicator when publishing it on TradingView or selling it as an invite-only script. Let me know if you need any adjustments or further details!
Market Session StrategyMarket Session Strategy Indicator Explanation
This is a TradingView Pine Script indicator called "Market Session Strategy" that monitors different market sessions and generates trading signals based on pattern analysis between sessions. Let me break down how it works:
Core Functionality
The indicator divides the trading day into three sessions:
Pre-Market (7:30 PM - 3:00 AM ET by default)
Regular Market (3:00 AM - 9:30 AM ET by default)
After Hours (9:30 AM - 4:00 PM ET by default)
For each session, it:
Tracks price action (open, high, low, close)
Calculates range percentages
Identifies session bias (bullish or bearish)
Draws visual session boxes on the chart
Generates trading signals based on historical patterns
Signal Generation Methodology
The indicator generates BUY/SELL signals at the beginning of the Regular Market and After Hours sessions using three main strategies:
1. Trend Continuation/Reversal Analysis
The script tracks how often a bullish/bearish trend in one session continues or reverses in the next session. For example:
If pre-market trends historically continue into regular hours 70% of the time and today's pre-market is bullish, it may generate a BUY signal.
If reversals are more common, it may generate a counter-trend signal.
2. Tight Range Breakout Signal
The indicator identifies "tight range" sessions (where price movement is unusually constrained compared to recent averages). A tight range with a bullish bias generates a BUY signal, while a bearish bias generates a SELL signal.
3. Day of Week Pattern Analysis
The script analyzes which days of the week show stronger trend continuation probabilities. If a particular day (like Monday) historically shows strong trend continuation and the threshold is met, it generates a signal accordingly.
Visual Components
The indicator provides several visual elements:
Colored session boxes showing high/low ranges
Signal labels at entry points
Session background colors with high transparency
A comprehensive dashboard showing session status, range percentages, bias, and signals
Performance Tracking
The script tracks trade success by session and day of week, which helps refine future signals. A trade is considered successful if:
A BUY signal is followed by a close higher than open
A SELL signal is followed by a close lower than open