OPEN-SOURCE SCRIPT
Actualizado

Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c)

33 076
Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c

This indicator provides intraday traders with BUY/SELL reversal signals and automated SL (Stoploss) tracking, based on a 3-candle reversal block logic — designed to work exclusively on the 5-min timeframe.

Key Features:
• 3-Candle Reversal Logic — Signals are generated when a defined 3-candle reversal pattern is detected (body-close breakout).
• Current Session Only — All signals and SL lines are valid only for the current session and automatically reset at session start.
• BUY/SELL Signal Labels — Visual ▲ and ▼ labels mark valid reversal signals on the chart.
• Dynamic Auto SL Lines — Plots dashed SL lines based on the reversal block's low/high.
• SL HIT Tracking — If SL is broken, the line stops extending and a ‘SL HIT’ label is displayed at the midpoint of the SL line.
• Adjustable Visual Settings — Customize signal label size, SL line width, colors, and more.
• Clean & Lightweight — Optimized for intraday use without cluttering the chart.

How to Use:
You can trade this indicator in two ways:

1. Direct Signal Entry — Take a BUY or SELL trade when a valid ▲/▼ reversal signal forms.
2. SL HIT Re-entry — If an existing SL line is broken and ‘SL HIT’ appears, you can optionally take an opposite side trade in the direction of the SL HIT.

Example:
A BUY signal is generated and an SL line is plotted below.
If price breaks the SL (SL HIT appears), you may consider entering a SELL trade at that point — as it indicates weakness.

Important Notes:
• Works only on 5-min timeframe — Set your chart to 5-min for correct behavior.
• Designed for intraday trading — all signals and SL levels reset at session start.
• Does not carry signals between sessions.
• SL lines and HIT labels provide a clear and simple visual aid for trade management.



---
Notas de prensa
This update improves clarity and control of reversal signals for 1-min and 5-min intraday traders:
This intraday reversal tool works best on 1-minute and 5-minute charts. It detects 3-candle reversal patterns and plots a BUY or SELL signal once the breakout happens.
Once a signal is triggered, the same type will not repeat until its stoploss is hit.
If another condition forms while the signal is still active, a "+1" label is shown instead of a new arrow.
Automatic stoploss lines and SL HIT alerts are included.

Notas de prensa
🆕 Changes Made Today:
Buy/Sell Alerts Added

You can now set alerts to get notified whenever a new buy or sell signal appears on the chart.

SL HIT Label Position Updated

The "SL HIT" label is now shown on the left side to avoid overlapping with candles and keep the chart clean.

Notas de prensa
Update Summary for "Intraday BUY/SELL & AUTO SL by chaitu50c"

This update introduces several powerful enhancements to improve signal accuracy, SL reliability, and market context awareness:

Engulfing Candle Logic Added

New BUY/SELL signals based on bullish and bearish engulfing patterns are now included alongside existing reversal logic.

SL Line Refinement

SL lines now begin precisely from the bar where the stoploss level was originally formed, rather than from where it was revealed.

Pinbar (Hammer/Inverted Hammer) Detection Integrated

Pinbar-based pressure zones are now detected using wick/body deviation and standard deviation filtering.

These pressure zones are used to draw dynamic support and resistance levels.

Dynamic Support & Resistance Management

Support and resistance lines formed by pinbars are automatically limited to the most recent 3 each.

Older levels are hidden and automatically revealed when market price validates them again.

This keeps the chart clean and focused on relevant zones.

These improvements maintain backward compatibility with the existing logic while adding greater context, precision, and reliability to the signals and stoploss system.
Notas de prensa
ey Improvements in This Update
Session Filter Logic (Asia, Europe, America)
Analyze only the market hours that matter. Now, you can restrict signal generation and line plotting to major trading sessions using a flexible UTC-based session filter.

Refined Breakout Detection
Improved breakout logic for both single candle body-breaks and 2-bar continuation patterns. Now with body-close confirmation and optional tick buffer for fine-tuned breakout validation.

Introduced Bar paint based on breakout

More Customization Options
Customize individual colors for:

Breaker and 2-bar breakout candles

Buy and Sell signal labels (background + text color)

Stop-loss and SL-hit marker styling
Notas de prensa
Default session start Time of Asia is now corrected of Indian Traders.
Notas de prensa
New Feature Added – Toggle for Repeat Signal Labels (+1)

We've added a new user-configurable option to enhance control over signal label display:

"Show additional +1 labels" input allows users to toggle whether repeated BUY/SELL signals (when one is already active) should display +1 labels.

When disabled, the indicator will not display any extra +1 labels until the opposite signal is triggered.

This helps declutter the chart and gives users flexibility depending on their strategy preference.

This change improves readability for users who prefer to track only the first signal in a trend leg, while still supporting full repeat visibility when desired.
Notas de prensa
Update Notes

This update represents a major re-design of the script. The goal was to simplify, optimize, and make the indicator more intuitive for intraday reversal & breakout trading.

Highlights

Cleaner, streamlined signal logic (single & double candle breakouts).

Gradient fills from line to price for visual strength.

Configurable marker & line styles (colors, widths, offsets, etc.).

Session reset logic refined to keep charts clean intraday.

Performance improvements: reduced complexity by removing unused pinbar SR logic and redundant arrays.

Detailed Changes
Added

Line → Price Gradient Fill

Dynamic gradient between breakout line and candle close/open.

Adjustable bar count (Bars To Max Opacity), start transparency, and end transparency.

Option to enable/disable gradient.

Break Candle Paint

Option to highlight the candle that breaks the level with customizable bull/bear colors.

Line & Marker Customization

Line width, style (solid/dashed/dotted).

Buy/Sell line colors.

Label/marker size selection.

Vertical offset (ticks) for label placement.

Session Window Input

Now a single custom session input instead of fixed Asia/Europe/America.

Changed

Focus shifted from stoploss-based automation to pure breakout/reversal detection.

Signal Logic

Consolidated into buy1/sell1 (single candle break) and buy2/sell2 (double candle break).

Automatic suppression: avoids overlapping multiple active buy/sell signals at once.

📊 Usage Notes

Best used on intraday charts (e.g., 5m/15m).

Focus is on reversal breakouts: body break above prior red candle or below prior green candle.

Gradient visualization helps assess line strength over time (the longer it holds, the stronger the opacity).

✅ This release makes the tool simpler, cleaner, and more visual while staying true to its purpose — spotting intraday reversal breakout signals quickly and clearly.
Notas de prensa
This update introduces several refinements to improve signal handling & visual clarity

Signal Control Option

Added a new setting: “Allow Multiple Signals”.

When enabled → the indicator allows repeated signals on the same side.

When disabled → only one signal per side is allowed until an opposite signal appears.

This gives flexibility to either capture every valid breakout or keep the chart clean with one-directional signals.

Visual Adjustments

Default line style changed to Dashed and line width reduced to 1 for a cleaner chart appearance.

This makes breakout levels easier to read without overcrowding the chart.
Notas de prensa
Session overlap has been completely fixed for Indian intraday traders.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.