Chandelier Exit | SAR/Long Only (4CUP)As introduced by StockCharts.com, Chandelier Exit was developed by Charles Le Beau and featured in Alexander Elder's books, this sets a trailing stop-loss based on the Average True Range (ATR).
Chandelier Exit can be formulated as a stop-and-reverse (SAR) or as a traditional trailing stop-loss version shown by Stockcharts.com.
The main difference is that, in SAR version, the indicator is usually formulated in a higher of previous or spot indicator (HPS) for long and lower of previous and spot indicator (LPS) for short position.
This indicator is coded to show both the SAR version and the traditional one shown by Stockcharts.com (for long position) by simply clicking a tick in the Version box.
The ATR multiplier is relaxed to allow non-integer input, like 3.5, 4.25, ... for a greater flexibility to tailor your best-fit exit strategy.
If you find this indicator is useful to you, Star it, Follow, Donate, Like and Share.
Your support is a highly motivation for me.
Average True Range (ATR)
TrendRangeIdentifier V3This is non-overlay version of
Since, we plot trend value which keeps incrementing/decrementing upon every step, this also helps us in identifying strength of trend and how long the trend is going on.
Other changes:
Removed display of channels
Coloring candles made optional
ATR Trend & ATR Top/Bottom (Zeiierman)█ Overview
ATR Trend & ATR Top/Bottom (Zeiierman) blends momentum, volatility, and adaptive trend analysis into a unified framework. It fuses a dynamic oscillator with ATR-based exhaustion detection to identify trend direction, impulses, and potential reversals within the same structure.
Rather than viewing volatility as noise, this tool interprets it as trend expansion, which represents directional conviction, while contraction signals absorption or exhaustion. By combining multi-phase smoothing, adaptive ATR scaling, and contextual trend filtering, the indicator delivers a complete picture of when a market is accelerating, stabilizing, or reversing.
It performs best once a trend has matured and volatility normalizes around a directional core, giving traders the confidence to participate in established moves while dynamically managing risk.
⚪ Why This One Is Unique
Traditional trend oscillators rely on fixed parameters that degrade across assets or timeframes. ATR Trend & ATR Top/Bottom instead employs adaptive weighting and volatility-normalized filtering that automatically aligns with the current market structure.
Its framework integrates three distinct components:
Adaptive Oscillator Core that reveals the internal rhythm of trend and momentum.
ATR Top/Bottom Layer that marks exhaustion and potential turning zones.
Trend Signal & Dynamic Trailing Stop Engine that highlights directional shifts, confirms alignment with the prevailing trend, and transforms trend data into a self-adjusting risk-management system.
█ Main Features
⚪ ATR Trend (The Main Oscillator)
The ATR Trend serves as the indicator’s primary oscillator, translating price and volatility dynamics into a smooth directional curve. When the oscillator line remains above its equilibrium, bullish momentum dominates; when it stays below, bearish momentum prevails. Color transitions reflect real-time trend bias, helping traders immediately recognize whether the market is strengthening or weakening.
This component forms the structural core of the tool, defining overall trend direction, momentum intensity, and transition zones.
It also visualizes trend expansion through the fast leading signal line. When this line crosses above the upper or below the lower boundary, it signals an expansive move within the active trend, often representing short-term overbought or oversold conditions, and can also indicate trend strength in the prevailing market direction.
⚪ ATR Top/Bottom
The ATR Top/Bottom layer highlights potential exhaustion zones within the trend. Green peaks reveal areas of buy-side saturation, suggesting a possible slowdown or reversal in bullish momentum, while red peaks mark sell-side extremes, often appearing before stabilization or renewed strength. These zones help traders identify when a move is becoming stretched or losing balance, offering valuable context for managing exits, scaling out, or anticipating reversals. However, these areas can extend for a prolonged period when price is in a strong, sustained trend, reflecting persistent directional pressure rather than immediate exhaustion.
⚪ Trend Channel Hits
The Trend Channel Hits feature visualizes moments when the price interacts with the projected internal trend channel boundaries of the prevailing trend.
Green arrows appear when the price touches the upper boundary of the trend channel. This can indicate two possible outcomes:
A potential breakout from a negative trend into a developing bullish trend, as price breaks above the upper boundary of the descending channel.
A take-profit zone within an established bullish trend, as price reaches the upper channel where mean reversion is likely to occur.
Red arrows appear when the price touches the lower boundary of the trend channel. This can indicate:
A potential breakout from a positive trend into a developing bearish trend, as price breaks below the lower boundary of the rising channel.
A take-profit opportunity within an established bearish trend, as price reaches the lower channel where mean reversion or short-term recovery is likely to occur.
These signals provide early visual confirmation of trend exhaustion, continuation, or structural breakout, helping traders refine entries, exits, and profit-taking within the broader market context.
█ How to Use
⚪ Trend Following
When the oscillator line remains above the mid-level, the market is in a bullish phase. When it stays below the mid-level, the trend is bearish. Periods where the oscillator holds close to its upper or lower limits indicate strong, sustained momentum in that direction. Watch for color changes or crossovers near the mid-level, as these often signal an upcoming shift in trend control.
Bullish Trend
Bearish Trend
⚪ Trend Signals
To help traders identify and participate in trend trades, the indicator includes pre-built Trend Signals that highlight optimal entry conditions within confirmed market trends. These signals are designed to activate only once the market shows established directional momentum, ensuring higher reliability and filtering out noise from short-term fluctuations.
In addition, the indicator includes built-in take-profit markers for each signal. These serve as suggested partial exit levels, helping traders systematically secure profits while allowing the remaining position to follow the trend with the dynamic trailing stop.
Before relying on the signals, always confirm that the market has been trending for a sustained period. This ensures that entries align with genuine long-term directional strength rather than temporary volatility.
Bullish Trend Signals
Bullish Trend Signals appear during an established uptrend when the indicator detects confirmed positive momentum and stable directional structure. These signals mark potential continuation points where buyers regain control after short-term pauses or pullbacks.
The objective is to follow the trend signals, manage trades with the dynamic trailing stop, and consider taking partial profits at the inbuilt take-profit levels plotted by the indicator.
This setup works best when the market is trending clearly upward and has demonstrated consistent buying strength over time.
Bearish Trend Signals
Bearish Trend Signals occur during a confirmed downtrend, indicating that selling momentum remains dominant and the trend structure is intact. They typically appear after short-term corrective rallies, signaling that sellers are reasserting control within the broader bearish environment.
As with bullish signals, the goal is to follow the trend signals and trailing stop to capture sustained downside movement, while using the inbuilt take-profit levels to lock in partial gains as the move progresses. This approach performs best when the market is in a clear, mature downtrend with persistent selling pressure and expanding downside momentum.
⚪ Trend Impulses
Impulses represent short bursts of directional acceleration within the active trend.
A surge above the upper band reflects bullish expansion.
A move below the lower band marks bearish acceleration.
These impulses often precede short consolidations before the trend resumes. Traders can use them to scale into strong phases or take partial profits at temporary extremes.
⚪ Reversals
Enable ATR Top/Bottom to monitor momentum peaks:
Red peaks show strong selling momentum. When these peaks start to fade, it can signal that selling pressure is weakening and a potential recovery may be forming.
Green peaks show strong buying momentum. As their size shrinks, it may signal that buying pressure is slowing, and a possible pullback or reversal could follow.
⚪ Extended Trends
For traders who want to visualize intense, extended trend phases, enable the ATR Top/Bottom feature and increase the Length setting to around 30, with Sensitivity set between 40 and 50. Consider reducing the ATR Trend Length to 50 to gain clearer signals of when a trend begins and ends.
This configuration extends the ATR Top/Bottom zones across the entire duration of a major trend, making it easier to identify sustained directional strength and long-lasting momentum phases.
█ How It Works
⚪ Adaptive Oscillator Engine
The oscillator interprets directional flow through a combination of momentum mapping and volatility weighting. It continuously re-centers its equilibrium to reflect evolving market structure, producing a stable yet responsive representation of underlying trend force.
Calculation: Applies multi-domain smoothing and adaptive normalization to align amplitude with volatility while maintaining directional coherence.
⚪ ATR Top/Bottom Detection
The exhaustion layer isolates high-magnitude deviations from the current volatility envelope, identifying potential top and bottom regions where expansion may stall.
Calculation: Uses proportional volatility thresholds and dynamic range modeling to highlight statistically elevated momentum extremes without over-reacting to noise.
-----------------
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.
Script a pagamento
Minimum Average True RangeI use ATR a lot when designing trading strategies, this way the strategy adjusts to the instrument in most cases instead of me plugging in special numbers.
However, ATR itself could get spiked by some violent moves. For this I have created MinATR which I am publishing here.
It is effectively ATR + minimum ATR over the last "Min Length" bars. (this is a parameter which I have defaulted to 50).
So use this the same way you use ATR, but it will also show the min ATR over the last "Min Length" periods.
Range & Trend (Zeiierman)█ Overview
Range & Trend (Zeiierman) is a trend-first mapping of price that fuses an adaptive Range & Trend Line, a Trend Buffer (noise gate), a volatility-aware Trend Tracker, and optional Range Levels & Candles to reveal where trend is establishing, compressing, or handing off to a ranged regime.
Execution is guided by graded Buy/Sell labels (Regular / Plus / Strong), structural HH/HL & LL/LH markers with optional Peak Profit readouts, and a multi-TF Timeframe Scanner for alignment.
⚪ Why This One Is Unique
Unlike single-source trend lines, this version layers two orthogonal stabilizers:
a Range & Trend core that adapts its band size to volatility and dispersion, and
a dynamic smoothing buffer that dampens insignificant fluctuations, ensuring only meaningful trend movements affect signal output.
Signals are graded (Regular / Plus / Strong) based on contextual conditions, allowing traders to gauge the conviction behind each trend event. Range Candles add regime context by coloring bars only when a statistically consistent range structure forms, highlighting potential consolidation or transitional market phases. A lightweight Timeframe Scanner completes the workflow, broadcasting alignment from intraday to daily without adding chart clutter.
█ Main features
⚪ Range & Trend Line – Signal Generator
Adaptive directional mapping forms the foundation of the system. It highlights the active trend through color transitions and generates graded Buy/Sell labels (Regular / Plus / Strong) to reflect the strength of confirmation. The line responds dynamically to volatility, revealing when momentum is expanding, stabilizing, or reversing.
Unlike typical reactive signal tools, this model isolates only the most strong and meaningful trend transitions — those with the structural weight to establish or extend a new long-term directional phase. Each signal represents a filtered, high-conviction shift rather than a short-term fluctuation.
⚪ Trend Buffer (Noise Gate)
A precision filter that smooths the core trend output and suppresses false flips caused by short-term noise. It enhances visual consistency and provides the confirmation layer used to promote Regular signals to Plus strength when agreement occurs between buffer and core.
⚪ Trend Tracker
A trailing validation line that tracks directional health and trend persistence. It advances only in the direction of the active move, creating an adaptive stop-like reference. Tracker alignment helps identify trend exhaustion and contributes to Strong-grade signal confirmation.
⚪ Range Levels & Candles
Contextual zones that identify periods of compression or balance. When a valid range forms, candles are shaded within it, distinguishing ranging environments from trending conditions. These zones help anticipate breakouts and define natural support and resistance areas.
⚪ Live Structure (HH/HL & LL/LH with Peak Profit)
Displays real-time structural evolution — Higher Highs/Lows during uptrends and Lower Highs/Lows during downtrends. The optional Peak Profit label shows performance since the last regime change, offering an immediate view of current trend efficiency.
⚪ Timeframe Scanner
A compact multi-timeframe alignment panel that visualizes bullish or bearish trend states across user-selected intervals. It provides fast confirmation of directional consensus, helping traders act only when the broader structure supports their chosen bias.
█ How to Use
⚪ Range & Trend Line – Signal Generator
The Range & Trend Line is the core signal engine — its color shifts mark confirmed directional changes. This is where the system produces the graded Buy/Sell signals shown as ▲ / ▼ labels. Each grade reflects how many internal layers agree at the moment of signal creation:
Regular (▲ / ▼) – Triggered by a confirmed flip in the Range & Trend core. It appears when the base trend direction changes and is the earliest signal of potential reversal.
Plus (▲ + / ▼ +) – Requires the Trend Buffer to confirm the same direction. This upgrade indicates stronger trend agreement and higher reliability.
Strong (▲ ++ / ▼ ++) – These are high-conviction continuation signals and typically occur after structural confirmation.
How to trade them: Regular signals provide early awareness; Plus signals suggest confirmation; Strong signals mark trend maturity or high-probability continuations. Always trade in the direction of the prevailing trend. Use the Trend Buffer or Live Structure to confirm the dominant directional bias before acting on a signal.
⚪ Support and Resistance
The Range & Trend Line and the Buffer Line can act as dynamic support and resistance zones. Price often reacts around these levels, confirming whether the current move is continuing or losing strength.
Look for confirmation or rejection signals near these lines. Reactions around them often mark key decision points within the active trend.
⚪ Range Levels & Candles
Highlights when price enters structured consolidation zones. Candle coloring activates only inside validated ranges, helping to identify areas that show the typical characteristics of a ranging market. These zones visually separate balanced conditions from active trends and provide context for potential transitions.
Watch how price reacts around the upper and lower range levels. Look for false or confirmed breakouts, and expect price to move between these boundaries until a clear breakout develops. Range edges can also serve as practical entry or stop zones.
█ How It Works
⚪ Range & Trend Core
The main engine that defines the chart’s directional trend line. It adapts to changing market conditions, showing a smooth and reliable view of trend strength and direction.
Calculation: Builds a range-adaptive structure whose width adjusts with current volatility. The core moves toward new highs or lows but limits pullbacks to avoid false shifts. Several smoothing methods work together to create a steady, low-lag trend path.
⚪ Trend Buffer (Noise Gate)
A stabilizing layer that keeps the main trend line steady when price noise increases. It improves visual clarity and helps confirm true direction before a trend update appears.
Calculation: Uses a feedback-based update that reacts more when movement is strong and less when noise dominates. This lets the buffer ignore minor fluctuations while staying responsive to real trend changes.
⚪ Trend Tracker
A support line that follows the main move and helps confirm when a trend remains intact. It also serves as a guide for managing active positions.
Calculation: Applies a one-way trailing system that only moves in the direction of the trend. The offset adjusts with volatility, keeping a consistent distance that tightens or widens with market energy.
⚪ Buy/Sell Signal Engine (Regular / Plus / Strong)
The signal system that classifies entries by strength and confirmation level. It reacts to real-time trend changes while filtering weak reversals.
Calculation: Detects state flips in the Range & Trend Core, checks for agreement with the buffer, and rates each signal by historical pattern support. Higher-grade signals appear only when several layers confirm continuation strength.
⚪ Range Levels & Candles
Identifies short-term balance zones and highlights candles within those areas. These zones show where price pauses before the next directional move.
Calculation: Finds upper and lower range limits based on recent highs and lows, confirming only when several bars form a stable zone. Candle colors and level lines extend slightly forward to show likely reaction areas.
⚪ Swing Points & Peak Profit
Marks key turning points and measures performance since the last reversal. It helps track the strength and duration of each movement.
Calculation: Keeps a short memory of recent pivots and updates only when a new high or low replaces the last one. The percent distance from the last flip to the current bar defines the live Peak Profit reading.
⚪ Timeframe Scanner & Alert Aggregator
Combines directional data from multiple timeframes into a single view. Alerts trigger only when all selected timeframes agree.
Calculation: Gathers the trend state from each timeframe, converts it to a simple up or down value, and compares the results. When every layer matches your chosen direction, one clear, high-confidence alert is sent.
-----------------
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.
Script a pagamento
BlackPika Supertrend S1Hello Reader!
This study script is based on the SuperTrend. There are some extra things added to make it able to use more efficiently. They are listed below:
1. Pullback signals: These signals indicate a pull back after a trend reversal and are the most optimum places where you can add to your existing position. They also come with Alerts !
2. Trailing Stop Loss and Take Profit: These further help to reduce the draw-down and can help you to trail profits with more granularity thus securing gains.
How to use ?
----------------
Personally I use it on major pairs on cryptocurrencies like BTCUSD . Usually after the trend flips, there will be pullbacks, You can enter a part of the position when trend reversal is confirmed. Then add more when you get a pullback. To make life simpler, alerts are added for pullback signals as well. These can help acheive good entry price. Entering at pullback signals limits your losses to a great extent, as the trend will flip on the bar close if it goes against you.
You can trade manually or you can automate. All the signals have been provided with Alerts. some signals have been grouped, to reduce the number of the alerts if you wish to.
I wish you all the luck and please comment and Like if you have any doubts.
How to gain access ?
-------------------------
1. You can dm me in trading view
Confluence of Indicators and Signals v1 skvWhy this script
This script will display the buy or sell signals received from indicators, super trend, adx, rsi, macd, sma, and floor pivots along with some tweaked calculations and fixed numbers. This is useful for beginners who want to study the signals and timing to practice. This script is created for educational purpose and can be used for intraday scalping with 5 minutes time frame only after the signals are understood clearly.
How to use
Strong Buy - when series of buy/long signals generated by indicators, bright green up arrow indicates momentum/strength
Strong Sell - when series of sell/short signals generated by indicators, bright orange down arrow indicates momentum/strength
Exits - use the pivot lines, or the RSI-LX, SX exit signals. Also combine with Bollinger Bands to understand the exit points.
Look for reversals at pivot resistance and support.
Disclaimer
1. Only for educational purpose
2. Intraday scalping strategies only and on 5 min timeframe
3. Do paper trade before using any information for actual trading
4. Not swing or positional trade
ATR-Based Moving Average EnvelopesSimple MA envelopes, but the distance which the MA is projected is dependent on ATR. User chooses MA length, ATR length. Additionally, there is a multiplier which can be used to project the bands additional X amount of ATR.
[co.n.g] LeathermanThis is a modest approach of assembling my most favorite strategies into a single indicator script!
I extended the functionality of the ART to the maximum in this piece of price action and volume analysis.
The original "Average Range Targets" - though by default turned off t due to heavily re-scaling the chart -
and the previous day's high and low.
What I've added:
high and low of the actual week
high and low of the previous week
open of the day
close of the previous day
VWAP of the daily session - adjustable to any length
VWAP of the weekly session
opening range / inital balance of the session -fixed to 15 Minutes
I've decluttered the chart as good as possible.
KNOWN BUGS:
Sometimes the plotting is incorrect due to rescaling or zooming in and out of the chart.
How to use - a quick price action guide:
The breakout of the open range is often indicating the trend of the day, a false breakout is often seen as a reversal sign.
A price below the VWAP is seen as cheap, a price above as expensive. In contrary to others, I personally prefer to see a rising price on a rising VWAP ;
additionally, I like bounces off or spikes and reversals through the VWAP , either the daily or the weekly.
The highs and lows of the days and weeks are seen as support and resistance . Trade preferably long above and short below those levels.
The ADR is an indication not working perfectly, especially with stocks.
!!! WARNING !!!
Don't rely solely on a single script nor a single indicator!
Always consider the price action, the trend, the overall market and especially the volume.
There is no "Get-Rich-Quick"-scheme, learn to read the chart and trade accordingly.
Enjoy and make money!
Yours,
Constantine
p.s.:
If you like to show your gratitude for my work:
CHEER!
Risk Volume CalculatorBid volume calculation from average volatility
On label (top to bot):
Percents - averaged by moving in timeframe resolution
Cash - selected risk volume in usdt
Lots - bid volume in lots wich moving in Percents with used leverage is Cash
U can switch on channels to visualise volatility*2 channel or stakan settings
ATR_percentATR_percent is an indicator that i have created to find and be ready for volatility in stock or index. Works best in the 15 min time frame. Use case can be for Nifty and Banknifty.
Basically, whenever the ATR _percent line leaves the yellow line for upwards, market is falling. While if it is heading downwards, the market is rising.
Supertrend - Delayed TrailI use supertrend for for trailing stops. One of the problem of trailing stops in long term trend trading is we get stopped too early and then trend continues. To avoid this problem, we can limit or delay our trailing.
In this modified version of supertrend, we can delay trailing by two methods:
Bars : Trail after certain bars. Input DelayBars says after how many bars it should trail.
Steps : Trail after reaching equivalent stop on the other side.
ConsiderWicks option reverse direction upon high reaching trailing Sell stop or low reaching trailing buy stop (instead of close)
ConsiderWicksForDelayByStep does the same thing for calculating if the steps have reached.
Volatility Squeeze Region IndicatorVolatility Squeeze Indicator conditions based on lowest ATR ,proportion of Bollinger and keltner channel upper and lower bands. Usage to identify and highlight Squeeze region when if indicator value <1 means Squeeze On and >1 means Squeeze off .
Additionally Background Highlights for Daily(Blue), Weekly(Brown) and Monthly(purple) Squeeze regimes for confluence check. For Breakouts and trades use appropriate Price Action and in conjunction other indicators.
TrendRangeIdentifier V2This is the enhanced version of TrendRangeIdentifier:
Highlights of this version are:
Different ATR multiplier used based on trend.
Supertrend is used for trend bias for determining which ATR to use on which side
Crossover is based on option selected. It can be either high, low or close price which is determined by crossover type selected.
Remaining parameters remain same as that of original indicator.
Moving Average Ribbon Master StrategyThe following features available in this strategy are listed below. To access, please visit the website in the signature area of this posting.
INTRODUCTION
Robust, fast, trading system
Multiple time frame (MTF) aspects built in everywhere into the strategy
Combines swing, scalp, greedy, volatile trading mechanisms
Works on intraday day time frames as well as Daily and Weekly
Trade sizing, targets, and stops are shown as new trades form and existing trades develop
Alerts warn the trader on all aspects of the trade evolution
Alerts are ready to be used for complete lifecycle automated trading
EMA TRADING
Combining EMAs on a higher time frame than the chart time frame is key
Trade conditions are met on a lower time frame that agree with the EMA ribbon direction
WHY DOES IT WORK?
With the right EMA settings, it is "hard" to generate trades.
The trade direction can easily shift
Successful trade entry triggers require a strong trend
While the EMA trend is positive, longs are taken on pullbacks, opposite for shorts
A basic learning algorithm is used to create a stop behind the trades
Learns over time the best stop offset from the price based on volatility
SWINGS AND SCALPS
Swings and scalps are treated differently.
Swings are the very first trade taken upon a directional shift. This is similar to the DIVINE series trading strategies
Swings are held until stopped out, Scalps always have a target based on the current volatility of the ticker and multiplier
Both swings and scalps start out in the "building" or "forming" phase.
A building phase is triggered when all criteria are met to form a long or short
Both trade types are executed as a market long or short when the ATR execution sensitivity reverses
The current ATR direction can be seen by the colored bars.
TRADING STYLES
Conservative
Aggressive
Greedy
Volatile
TRADE SIZING
Contract/Unit
VIX Multiplier
Percent of Equity
Percent Risk
TRADE INFORMATION
Historical trades show the price target of a scalp and the number of ticks of profit in parenthesis
New trades show all of the extra information surrounding the trade. This can be turned on to show the same information for past trades, but is left off to reduce clutter
Go over trade information categories one-by-one
Recent historical trades have a tooltip loaded to hover over and see the hidden information
Scalp trade is filled the numbered scalp icon shows as a (N)
SESSION WINDOW
Longs and shorts can only receive an execution signal when the ticker is within one of three session options provided
ADJUSTMENT
Last 3 sizing types show the quantity required to enter the trade to meet the parameters
Percent risk automatically adjusts the quantity to meet the risk criteria given the account equity, per trade
The account currency can be changed with will update the quantities automatically
Tick Unit and Value can also be changed if they are not accurate
ALERTS
Alerts for entire trade lifecycle
Full automated trading ready
GAURs Polynomial Regression ChannelsThanks to The Sweet Lord , here is the Gaur's Polynomial Regression Channel.
Its a Polynomial Regression Channel but applied a little differently. Wont go into technical details much. Overview of options is as follows-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Channel Options
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1. Degree of Polynomial: 1/2/3
Default = 3
Defines the degree of polynomials - 1,2,3. Note here, degree 1 will not be a straight line since its applied differently.
Try different degrees for different fits and market conditions.
2. Channel Length:
Default 30 (candles)
You can go beyond 100 or 200 candle lengths but smaller is the usual preference of Poly-Reg-channel traders. It all depends on market conditions and your style of trading. Do your research. I am usually comfortable with a range of 20-50 (in crypto markets).
3. Basis of Channel height/boundries: ATR/Manual
Default: ATR
ATR provides a dynamically adjusted entry/exit bounds of the channels. As ATR changes, the channel bounds also changes its height. It can also be fixed manually. Manual heights wont change automatically.
4. Basis of Y-Value: open/close/ sma / ema / wma /hilow
Default: close
Y- value is the y value of the (x,y) coordinates used while calculating the regression coefficients. Dont worry about it, its nothing serious.
5. Apply channel smoothning using sma?: Yes/No
Default: Yes
Without smoothning, the channel does not "look" good.
6. Shaded Area Height Percentage:
Its the extra margin for the channel. Its in percentage of the total height (defined 3 above) of channels. The shaded area provides an extra allowance for your entries or exits beyond the ATR or manual heights.
7. Plot RSI?: Yes/No
Default: Yes
Plots RSI (orange line in between the channel - its different from the dotted center line) considering the downbound of channels as 0 (oversold) and upbound of channels as 100 (overbought)
8. Plot 200 sma?: Yes/No
Default: Yes
It plots a 200 period fast (green) and 225 period slow (red) sma . I usually use two MAs. Its visually very easy to understand.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sample Strategy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You can develop your own strategy with the channels. But following is just one of the ways you can trade.
Best Application: Ranging markets. But can be happily used in volatile conditions, with a little experience.
1. SMA: -- (this condition is optional really)
If green (200) is above red (225) go only long. If red is above green go only short. Defines long term trend of the market.
2. Channel slope: -- (this stuff needs practice/experience)
Depending on the channel slope, like if its tending to go up or down, you can choose to take only short or long trades. It defines short term momentum of the market.
3. ATR based heights:
Since its ATR based, the channel height are our natural entry and exit points.
Long:
When price touches lower shaded area, consider possible long entry. Exit on price entering the upper shaded area.
Short:
Enter on upper bound shaded area, exit on lower.
4. RSI:
For additional conformations. Again note, the RSI considers the lower bound of channel as 0 and upper as 100. But since, the channel moves up and down, the RSI will also move not only as RSI but also with the channel. Meaning, say if the RSI is valued at 50, then it will be near the center of the channel but since the center changes as time and price changes, the RSI valued at 50 at different times will not be at the same horizontal level respect to the graph, although it will be at the same level (center) respect to the channel.
5. PRC Channel Percentage label:
This label is at the lower side a bit ahead of the current candle. Provides you info on what is the channel percentage. This is especially helpful in crypto markets to gauge your possible percentage profit where profits can be much higher than forex or other instruments. It can also helps you select a suitable market/instrument if the channels are based on ATR.
6. Extra indicators:
I usually use stochastic along with this setup for extra conformations.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Donate
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use freely and donate generously if you find value. Your help will really help.
I had earlier provided BTC addresses for donations but it seems to violate TV House rules.
Hope they make TV coins redeemable in future.
- Pranav Joshi
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Extra Info
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// © cpranavjoshi
// special thanks to the "Trading View" people for providing this great platform for free
// ------------------------
// MATH
// ------------------------
// special thanks to an article on the web that provided layman friendly explanation of the maths
// unfortunately i wont be able to provide the link to that article owing to TV restrictions, though i sincerely would have liked to credit the author.
// Google search this phrase, and you should be able to get it in one of the first results - "polynomialregression Mathematics of Polynomial Regression"
// my regression math calculation is a further resolution upon the generalized matrix formula given in the that article.
// the generalized matrix looks scary but in fact its much simpler than one may assume
// the summation sign things are just float numbers that can be easily found out
// so we get a matrix with number of equations equal to the number of unknowns.
// e.g. if its a 3rd degree poly, it has 4 unknowns (c0,c1,c2,c3) with 4 equations as in the generalized matrix
// it can be resolved by simple algebra
// Note: the results have been verified with excel using same input data points.
// pine was difficult for me so i coded it in python first to verify
// ------------------------
// WHY
// ------------------------
// this script was coded because Pranav badly needed Polynomial channels (had used them in mt4 earlier)
// and at the time of this coding, i could not find any readily available script in the trading view public library ( tnx public)
// the complex math was probably the hurdle
// i m not good in maths, but by the Will of the Lord, i could resolve the issue with simple algebra and logic
// ------------------------
// PINE
// ------------------------
// i am just an average (even poor probably) programmer and pine script is not my language
// this is a humble attempt to write my first pine with whatever i could do quickly
// experts - feel free to develop if needed. have used some workarounds in drawings/plottings. rectify them if possible
//
//
// - Pranav Joshi
Renko MTF - Traditional and ATRSomehow there aren't too many renko bars that have the traditional setting built-in so I put one up. This one has the option to choose between Traditional and ATR, the size number corresponds to the option that was chosen. And just in case if anyone wanted, I put up a multi-time frame option to choose the time frame the bars take place. D is for day, W is for week, flat numbers are in minutes, and leaving it blank looks at the current time frame the chart is in. The calculation comes from how Tradingview handles renko bars.
Renko bars don't paint a color unless the market moves a certain amount based on its settings. When the market moves up it turns green, if it moves down it turns red, simple color changes alone can say a lot. They're a good way to try to find trends somewhat objectively and seem to be a good way to eliminate time and can replace other time-based indicators that can whipsaw or lag. The bars have a tendency to repeat themselves so it's a good way to find trends. There aren't too many settings for the box size, most people either just choose 5, 10, 14, etc where as other indicators have many options that differ on different markets. The numbers can be chosen easily enough to pick a sweet spot with just a single input where other indicators such as MACD have multiple inputs to pick the right number that can make it difficult to choose from(although it won't be as precise as a MACD would sometimes but can be worth the objectiveness and consistency and same setting repeatability in different markets in my opinion). Some example strategies could be to use them as an alternative trailing stop, finding trends, a simple color change for entry and exit on top of other strategies, etc. It can do the job of many in an all in one price action type indicator(although not better all the time, it can come close enough). Despite all this, it does seem to depend on which time-frame it's being looked at, how TV does the calculation for it, and how one can use this with the lack of practical information on it out there.
[NLX-L2] Renko Flip- Renko Flip -
This indicator give you signals based on non-repainting Renko blocks (ATR based) on regular candle charts and is Multi-Timeframe compatible.
- Example: How to Use -
1. Add a Trend Indicator like Trend Index MTF to your chart
2. Add this Renko Flip Indicator to your Chart and select the Trend Index MTF with Type L1 in the Settings as Signal Source
3. Add the Backtest Module to your Chart and select the Renko Flip Signal with Type L2 as Source
The Hurst-Exponent-Signal-Filter can be used as well, simply add it in between the Renko Flip and Backtest/Alert module :)
- Alerts for Automated Trading -
See my signature below. Contact me for the Alert module.
CC - ATR BandsPlots ATR bands around candles at any HTF resolution you desire, taken in through the inputs. The white line represents the open of the HTF, the red and green the expected boundaries. You can use the risk tolerance slider up/down to adjust how risky you want to be with the ATR bands.
I am not responsible for outcomes using this method, indicator or anything else. Please do your own due diligence.
Volatility Support & Resistance [LM]Hello guys,
I would like to introduce you volatility support and resistance horizontals. It draws line horizontal on high and low vhighly volatile candles. You can select lines on this timeframe and/or another one. It's done in the same spirit like my other indicators for horizontals
The colors are dynamic depending whether price is below or above the line:
for the current timeframe green is used for support and blue for resistance
for the other timeframe by default 4h orange is used for support and violet for resistance
There are various sections in setting:
general settings - here you can select ATR length, multiplier and show labels
show and hide section of the current timeframe
other timeframe
show and hide other timeframe horizontals
Any suggestions are welcome
ATR TRex [ipooya]To appreciate dear Mr.Khakestar efforts I have converted his mt4 ATR formula to pine script. All credits go to him.
you can view the ATR result of each candle in the past:
The first black number is the ATR of the M1 chart.
The second black number is the ATR of the M5chart.
The third black number is the ATR of the M15 chart.
The fourth black number is the ATR of the H1 chart.
The fifth black number is the ATR of the H4 chart.
The sixth black number is the ATR of the Daily chart.
The seventh black number is the ATR of the Weekly chart.
**and the second number of every line is live ATR ( current ATR candle)
What makes this ATR formula so different?
This formula invented by Mr.Khakestar and it shows the power of the price to move in each cycle of the chart. We can use it in RTM strategy and Price Action trading. To learn how to use it you need to learn TRex strategy (Presented by Mr.Khakestart for free in Persian).
quantized pin bar indicator with ATRAbstract
This script computes the strength of pin bars.
This script uses the corrent and the previous two bars to compute the strength of pin bars.
The strength of pin bars can be also comared with average true range, so we can evaluate those pin bars are strong or weak.
Introduction
Pin bar is a popular price action trading strategy.
It is based on quick price rejection.
Most of existing pin bar scripts only determine if a bar is a pin bar or not.
However, evaluating the strength of pin bars is important.
If price rejection is too weak, it is difficult to trigger trend reversal.
If a pin bar is too strong, we may enter the trade too late and cannot have good profit.
In this script, it provides a method to compute to strength of pin bars.
After the strength of pin bars are quantized, they can compare with average true range, price range and trend strength, which can help us to determine where are worthy for us to open trades.
Computation
Bullish hammer : current low is lower than ( previous high or current open ) and current close.
Bearish gravestone : current high is higher than ( previous low or current open ) and current close.
Bullish engulfing and harami : ( current low or previous low ) is lower than ( previous 2nd high or previous open ) and current close.
Bearish engulfing and harami : ( current high or previous high ) is higher than ( previous 2nd low or previous open ) and current close.
Parameters
Smoothing : the type of computing average.
Length of ATR : determines the number of true ranges for computing average true range.
ATR multiplier line : the threshould that a pin bar is strong enough. For example, if this value is 0.5, it means a pin bar with 0.5*atr or more is considered a strong pin bar.
one direction pinbar : set to 1 if you want the strength of bullish pin bars and bearish pin bars are cancelled. Set to 0 if you want to keep both strength of bullish pin bars and bearish pin bars; in this case, you may need to change the plot style to make both strength visible.
Trading Suggestions
Evaluate the strength of trend against pin bars. After all, a single reverse pin bar may be too weak to reverse the trend.
Timeframe : if atr is higher than 4*spread, the timeframe is high enough. However, if strong pin bars appear too frequent or price range is too small, going to higher fimeframe may be more safe.
Entry and exit : according to personal flavors.
Conclusion
The strength of pin bars can be quantized.
With this indicator, we can find more potential pin bars which human eyes and binary pattern detectors were leaked.
In my opinion, 0.5*atr is the most suitable streng of a pin bar for my trade entry but I still need to consider the direction of the trend.
You are welcome to share your settings and related trading strategy.
References
Most of related knowledge can be searched from the internet.
I cannot say the exact references because they may violate the rules of Tradingview.






















