weekly MapThis indicator shows the highest and lowest level of the previous week in the current week. This area is also divided into 4 sections that can be controlled from the settings section.
Support dan Resisten
[MF] Auto Fibonacci LevelsDescription:
Automatically draw Fibonacci Pivot levels based on the previous (day's, week's or month's)
Range ( High-Low ). The HLC3 is used as the default Pivot level.
Unlike the "Auto Fibonacci Levels", this variation does not update
Levels on current day even if the price goes past the R3/S3 levels.
Timeframes: 1D, 1W, 1M
Range = (High - Low) - From previous Day, Week or month.
FIB LEVELS:
- Yellow = Pivot and Pivot Zone (HLC3 by default)
- red = R1,S1 Levels 0.236 * Range
- Green = R2,S2 Levels 0.368 * Range
- Lime = R3,S3 Levels 0.618 * Range
- Blue = R4,S4 Levels 0.786 * Range
- Gray = R5,S5 Levels 1.000 * Range
- Lime = R6,S6 Levels 1.236 * Range
- Red = R7,S7 Levels 1.382 * Range
- Blue = R8,S8 Levels 1.618 * Range
- Green = R9,S9 Levels 2.000 * Range
CLASSIC LEVELS:
- Yellow = Pivot and Pivot Zone (HLC3)
- Green = R1,S1 Levels (Pivot*2 - Low), (Pivot*2 - High)
- Lime = R2,S2 Levels ( Pivot + Range), ( Pivot - Range)
- Lime = R3,S3 Levels (High + 2*( Pivot - Low)), (Low - 2*(High - Pivot ))
- Blue = R4,S4 Levels (High + 3*( Pivot - Low)), (Low - 3*(High - Pivot ))
Refrences:
- Auto Daily Fib Levels R3.0 by JustUncleL
- Auto Fib by TheYangGuizi
- Monthly Dynamic Range Levels (Fibonaci) V0 by RicardoSantos
Modifications:
- Added next FIB Levels. (changes during the current cycle)
- Added FIB 0.236 Levels
- Added Option to change the colors of the Fib Levels
- Changed Default colors to the colors of Tradingview
- Upgraded to Version4 Pinescript
[CP]Pivot Boss Floor Pivots with ATR Dilation and Dynamic LevelsINTRODUCTION:
Compared to all the Pivot Indicators available on Trading View Public Library, this Floor Pivots Indicator differentiates itself in two major original ways:
Dilates the Pivot Support/Resistance Levels into Support/Resistance Bands based on volatility
Displays the S/R Levels Dynamically , that is, only those levels will be shown that are close enough to the price resulting in much cleaner looking charts.
There were a few features whose logic I had figured out, but I could not implement them due Pine Script’s Limitation (they should really work on increasing Pine Script’s capacity instead of adding more and more features to the language in order to make it look ‘better’):
Showing multiple timeframe pivots at the same time (not possible due to Pine Script’s limitation on the ‘Max Number of Outputs’ )
Automatic Detection of highly profitable Double Hot Pivot Zones (DPZ), also due to the ‘Max Number of Outputs’ limit
GENERAL USER INPUTS:
Most of the settings are self-explanatory, however, a few of them need some explanation:
Show Floor Pivots Dynamically – This will turn ON the dynamic pivot levels, please note that this function will work ONLY IN INTRADAY timeframes.
Dynamic Pivot ATR Period – Period over which the ATR value is calculated to show the pivots dynamically.
ATR Threshold for Dynamic Floor Pivots – Simply put, the indicator will start displaying Pivot Levels if they fall within the 2*ATR distance (default value) of the price. You can increase this number if the volatility increases and vice-versa.
Use ATR to Dilate Intraday Pivot Levels – This will turn ON Floor Pivot Dilation, turning pivot ‘lines’ into ‘bands’ .
ATR Dilation Factor – This number decides the width of the Pivot bands. Larger this number, thicker the bands. Typically, high volatility stocks will require a higher number.
ATR Period – Same as Dynamic Pivot ATR Period, but for Pivot Level Dilation.
INDICATOR USAGE EXAMPLES:
This indicator works great in conjunction with my Pivot Boss Candlestick Scanner indicator.
There are a lot of optimizations I have done in the code, although it looks trivial at first glance, but it's fairly complex.
Feel free to use it and modify it as you wish.
Here are a few examples where the indicator has shown great entries and exits, with the default settings:
NIFTY 5m Chart
Reliance 5m Chart
Tesla 5m Chart
Bitcoin-USDT 15m Chart
FINAL WORDS:
Please understand that I have Cherry Picked the examples to showcase the capability of the indicator and its usage.
DO NOT conflate the accuracy of examples with the accuracy of this indicator.
Once you start using floor pivots, you will realize that a lot of days simply don’t give any high probability setups and you will simply sit out of the market and do nothing (which is a good thing).
If you really want to learn how to use Pivots, read the book ’Secrets of a Pivot Boss’ . This book can change your life.
Linear Regression Histogram [LuxAlgo]This indicator is inspired by traditional statistical histograms. It will return the number of occurrences of price falling within each interval (bins) of the linear regression channel. This can be useful to highlight zones of interest within a trend.
Settings
Length: Number of recent closing prices used for the computation of the linear regression.
Bins Number: Number of intervals constructed from the linear regression channel.
Mult: Multiplicative factor for the RMSE. Controls the width of the linear regression channel.
Src: Input source of the indicator.
Usage
The indicator is constructed by dividing the linear regression channel range into a series of intervals (bins) of equal width. We then count the number of price values falling within each interval.
If a significant number of price values fall within a specific interval then that interval can highlight a potential zone of interest within a trend.
The zone of interest is highlighted in blue.
Auto Price Action - Multi Time Frame [Mehrok]Auto Price Action - Volume Price and Spread - Multi Time Frame
Volume Price and Spread script generates important support and resistance levels basis activity happening in price, volume and candle spread. The basic idea has been taken from concepts of VSA which underlies that weakness appears in uptrend and strength in downtrend. Script will try to find candles which have volume higher then average and candle spread.
Underlying logic:
Script generates significant high's as resistance and lows as support basis activity happened on volume , price and candle spread. Multi Time Frame gives ability to find strong support and resistance levels on higher time frames and display on lower time frame chart.
Usage:
As it records and maintain important high and lows happening on candles till the time new levels are generated therefore generated price levels act as significant support or resistance. Higher the activity in volume , price and spread stronger that price level would act as support or resistance in future.
Script work on all time frame where volume information is available. In absence of volume information script would only generate optional levels and that too if activated.
Compression support&resistance [LM]Hello traders,
I would like to present you Compression support&resistance script. The idea behind is to look for areas of price compression(inside bar candles). Basically the S/R lines are created after three candles that are formed in certain pattern and volume conditions. First candle of pattern is usually the most volatile and fist inside bar after volatile candle high and low creates S/R lines in order to look for breakouts or for future bounces of the S/R line. Also by default volume has to be decreasing from candle to candle, although this condition can be controlled by setting.
It has various settings as my other S/R scripts for multi timeframe analysis. The current timeframe uses line API but for multi timeframe I use plot lines. There are two filters. Volume filter for declining volume of the pattern candles and volatility filter which renders line only in case that pattern occurs after some % change has happened within some lookback period.
Credit also for this indicator goes to @berkek as he took time to explain it to me.
Hope you will enjoy it,
Lukas
Auto Fib Golden Pocket Band - Strategy with Buy Signalsthis strategy is based on the Indicator "Auto Fib Golden Pocket Band - "Autofib Moving Average"
it's the same as the indicator but with:
- the strategy tester included
- several entry Signal filter
- Dynamic SL
AI Crypto Signals BTCUSD 15m Ultimate ScriptBYBIT:BTCUSD
Hello everyone! Sky First Capital in partnership with AI Crypto Signals is proud to introduce the AI Crypto Signals 15M BTCUSD Ultimate Script . This script works well on the 15M, 30M, 45M and 1HR chart using traditional candles. This means no false data or inaccurate entry/exit points such as with the ones using HA candles.
The script is based upon an initial strategy developed by user Bunghole here on TradingView, but we have optimized it, back-tested it with ideal settings, and added alerts that you can use to connect with your trading bot such as Alertatron, Cornix, etc. This script uses BB (Bollinger Bands) and RSI (Relative Strength Index) as indicators for signals.
Back-testing data for the 15M chart from 7/1/2021 to 10/15/2021 showed a 51.19% profit.
Back-testing data for the 1HR chart from 7/1/2021 to 10/15/2021 showed a 191% profit.
This script does not repaint.
Ideal use is to enter and exit at the close of the candle and take-profit/stop-loss once per candle.
This script has Entry/Exit/Take-Profit/Stop-Loss alerts.
We offer consulting and training services if you need help on using this script or getting it configured with an automated trading system.
We offer a 24 hour free trial of the script, send us a message to request access.
Opening Range FibonaccisThis indicator uses the concept of the "Opening Range" to create a Fibonacci zone from the high and low set during a specific time period after open (Defaults to 9:30 - 10:05 AM, EST)
The Opening Range is a popular tool for intraday technical analysis. Price frequently uses these levels as support/resistance, and a breakout from within the range can be a sign of further movement.
The Fibonacci levels are set such that the opening range high/low fall on the +/-0.5 fib. This creates an "extended range" outside of the opening range that may be useful during breakouts.
Auto Support ResistanceAn indicator that draws support, resistance and trend lines automatically based on the high/low and current direction of the asset.
hamster-bot ZZCompilation of various modifications of the trend breakout reversal strategies based on the ZigZag .
Includes past versions of scripts:
version 1 ZZ2 Breakout reversal strategy
version 2 ZZ2 with experimental options hamster-bot ZZ Breakout reversal strategy
version 3 ZZ6 Noro's ZZ-6 by hamster-bot The original script is available here
The original script is available here
Description ZZ6 :
New version of ZZ-strategy.
Repaint?
Normal lines are not redrawn. Dotted lines repaint, but do not affect trading (do not affect backtests). You can turn off repaint in the script settings. Repaint (dotted lines) are needed only for clarity. To make it clear from which bar the level is created.
Levels
Lime lines above - level from a local high bar. To open a long position. Using a market stop order.
Red line at the bottom - the level from a local low bar. To open a short position. Using a market stop order.
Trading
You can trade without short positions. Then the red line is the level for a stop-loss order.
Reverse trading can be used. Without stop-loss orders.
Risk size
Order size depends on the risk size parameter and possible loss. If risk size = 2%, it means that the loss will be no more than 2%.
For crypto
Symbols: XBT/USD, BTC /USD, BTC /USDT, ETH/USD, etc - need USD(T)
Timeframes: 1h, 4h, 1d
This new ZZ strategy includes all the best practices for this strategy. the script has great flexibility of settings.
Instructions for script parameters:
Parameter ZZ Type - is responsible for the basic type of strategy used (usually it is responsible for building levels)
then you will need to configure the settings block corresponding to the selected ZZ type .
At the moment the script contains types: ZZ2 + ZZ6
The rest of the parameters are common for any type of ZZ.
Further development will be done in this script. The above scripts will not be updated.
At the moment the options are already available:
- Take Profit
- Stop Loss
- One entry Long/Short
- Single entry
- Levels offset
- Levels multiplier
- Levels angle
Aspen Trading S/R LevelsIn Trading, Objectivity Trumps Subjectivity
“Every trader is a steaming hot bowl of bias stew and must maintain self-awareness and lucidity behind the screens as the trading day oscillates between boredom and terror.”
The above quote is from a good friend of mine and veteran FX trader Brent Donnelly. It completely nails the biggest challenge for new and even experienced traders: being as objective as possible when making trading decisions.
Yes, as you become more experienced, subjectivity, market feel and experience are part of one’s decision-making matrix, but early on you do not have that luxury.
If you start each day knowing that price action in the market is random it will remind you to think objectively. There are, however, repeatable patterns that occur again and again…..it’s your job to identify them.
That’s where Support & Resistance levels come in.
Definitions: “Support” and “Resistance” Levels
Many technical indicators and tools can be subjective and challenging to learn. This is not the case with support and resistance levels.
Support and resistance are terms for two price levels on a chart that appear to limit the security’s range of movement.
The “support level” is where the price regularly stops falling and bounces up.
The “resistance level” is where the price normally stops rising and dips back down.
The more frequently a price hits either level, the more reliable that level is likely to be in predicting future price movements.
Understanding Support and Resistance Levels
Remember, the more informed and objective we can be with numbers, the more confident we can be with our trades. That’s important because, although price action is random (a fact that has been proven time and time again), there are repeatable patterns we can use to get an edge.
Two of those objective data points we can use to gain an edge are support and resistance levels. These are two of the best tools we have when it comes to swing trading. Why? Because they give us strong data points that suggest where an instrument is likely (and unlikely) to go.
But this is really key: Arbitrarily cataloging each price level that appears to be relevant as a support or resistance level isn’t going to get you far. That’s why Aspen Trading takes a unique approach to support and resistance levels.
With Aspen’s Support & Resistance Levels, we measure where trades (prices) occur in terms of frequency. This gives us a sense of where market participants are wagering prices may go.
That’s about as raw and unfiltered as you can get in terms of displaying what has taken place. There’s no room for interpretation - this is raw data that can be used to get a sense of where prices may be heading.
Learning The “Four Sets” of Support and Resistance Levels
There are four sets of support and resistance levels that are part of Aspen Trading’s S/R framework.
Each set of support and resistance levels is unique to a specified period of time. We display each of them in different colors on our charts when we analyze trades to make it easy for us to understand the data as we get comfortable reading charts.
You’ll see each of these levels on display in the charts that follow below. The four sets of support and resistance levels are classified as follows:
There are four sets of support and resistance levels that are displayed by Aspen Trading’s S/R Analysis Tool. Each one is unique to a specified period of time that we then display directly on the chart. The levels are classified as follows
GREEN: displays 2 solid lines (upper/lower)
ORANGE: displays 2 lines (upper/lower)
RED: displays 2 lines (upper/lower)
PURPLE: displays 2 lines (upper/lower)
IMPORTANT:
These lines will change/adjust until the end of the specified observation period is complete.
Once the observation period is complete, that range will then be displayed on the chart as a set of dotted lines that is shaded in to serve as a reference point for traders to know the key levels from the prior lookback period. This can often be very helpful.
What’s the distinction between the 4 color levels?
Essentially think of these levels on a rising scale of importance. While GREEN levels are certainly key, they do not hold the same level of significance as the PURPLE levels.
Market Sessions Open/Close LevelsThis indicator displays the market open and close price levels for the main trading sessions (Sydney, Tokyo, Frankfurt, London and New York). The Daily Line changes color depending on if price is trading above or below the level. Feel free to add or replace levels depending on your trading style and trading times.
ORB with Shorty Targets
The ORBS indicator study utilizes the theory of an Opening Range Breakout occurring on a security. The indicator uses data collected from the first thirty minute session of the trading day to create fibonacci retracements at specific positions. The 'session' high and low are derived from the first thirty minutes and used as a basis to plot these values. Fibonacci retracement lines are plotted at key positions above and below the high/low values pulled during the opening 'session'. These fibonacci retracement lines are plotted at: 0 (ORB high); 1.272; 1.618; 2.00; 2.175; 2.618; and 3.236. Levels in-between these values are known as 'ranges'. Upper lines are shown green in color and indicate key levels at which the price may react within the market. No guarantees are given nor implied - ORBs is simply a tool to help plot out key fibonacci levels at specific levels accurately and completely.
This will only work on 3min or 5mins and it is intended for intraday trading only.
ORH - opening range high
ORL - opening range low
OR50% - mid between ORH and ORL aka 50% fib
The way i use ORBS:
1. ORH break - i go long on 3min or 5 min close above ORH. I use heiken-ashi candles.
2. ORL breal - i will short on 3min or 5 min close below ORL
3. Double bottoms on reclaims of ORL - i will go long with SL being the ORL
4. Double tops on ORH considering market is weak i will short with SL being the ORH
Trendbar:
Trendbar use combo of CCI and ATR to help figure out the trend the stock is in. Stock moving below the trendbar indicates it is loosing the trend dependent on what time-frame you are using it.
Pivots:
Shorty Pivots are a collection of daily/weekly/ monthly pivots indicator that allows for plotting a daily, weekly, and monthly line on a chart. The values are pulled from the three separate resolutions (daily, weekly, and monthly), and shown on the chart each day. Calculations pulled from each respective high/low/close (divided by 3.0) for the session values.
Settings:
Show Daily/Weekly/Monthly Pivot - Shows/Hides each respective pivot .
Pivot Colors - Change the color of each pivot .
Pivot Width - Line width of the plotted pivot .
Line Style - Choose Solid, Dashed, or Dotted to view different styled lines.
Label Text Color - Choose the label text color if it clashes with your chosen line color(s).
Extend Pivot Lines to Right Offset: This allws you to extend each pivot line to the right by an offset of X bars.
Day Session Timeframe - Ignore this setting.
Pivot Adjustment Timeframe - Ignore this setting.
QFL base scannerThis script is a simple implementation of a QFL (Quickfingers Luc) base scanner.
This QFL base scanner uses a different approach to some other QFL base scanners that are on TradingView. Other TradingView scripts look for a candlestick pattern of two lower lows followed by two higher lows combined with an increase in volume. This can generate some unexpected results where some minor dips can meet the pattern and are marked as a base, but some major dips do not and are ignored.
This QFL base scanner instead looks for the lowest low in a given period and marks it as a base. The longer the period of the lowest low, the more significant the bases will be. Buys are marked when the price has bounced x% above the base and then fallen y% below the base. This approach seems to give more predictable (and tradable) results.
If looking at the past script results, you may think that the script is perfectly timing entry points at the bottom of market dips. This is NOT the case. The script is actually showing buy signals when the price falls y% below the PREVIOUS base. The current base is only retrospectively marked some periods later once the reversal is confirmed. New bases are not tradeable using this script, but a percentage fall from the previous base is.
Enjoy.
RSI Trend LineI took a concept similar to the "Adaptive RSI" to get the RSI overlaid on a price chart. The problem I have with the Adaptive RSI is to me it sticks too closely to price. I wanted something much more visually helpful that can provide actual tradable signals and strategies.
The orange line you are seeing is the "RSI Trend Line"
The further the RSI moves away from a value of 50 (the "zero line"), the more you see this orange line move away from price. This helps visualize the strength of price pushing away from a neutral value to a position of strength or weakness-- if orange is below price then relative strength is high; if orange is above price then relative strength is low. When price is equal to the orange RSI line, the RSI is at a value of 50.
In addition to the trend line, you can enable bands which reflect Overbought and Oversold levels . If you leave the responsiveness to a value of 1.0 and removed any smoothing, these should pretty accurately reflect an actual RSI chart topping the OB and OS lines (default 70 and 30, respectively). (They're still very close with different responsiveness and smoothing values)
The conversion or scaling of RSI value onto price comes with a bit of a quirk which I decided to leave to the user to determine how they want it applied. So the setting "Responsiveness" will impact the sort of aggressiveness of the RSI trend line as well as the the size of the bands. You could think of this in some ways as the OPPOSITE of the multiple setting on a Bollinger or Keltner band-- 1.0 will make for the widest band, 2.0 is the default and my preference, and you can move it up to a value of 5.0.
Here are some examples of how you could use the indicator for trade signals--
And here's my thought on the current state (as of 10/06) on indices with regards to this indicator-
Bitcoin - CME Futures Friday Close
This indicator displays the weekly Friday closing price according to the CME trading hours (Friday 4pm CT).
A horizontal line is displayed until the CME opens again on Sunday 5pm CT.
This indicator is based on the thesis, that during the weekend the Bitcoin price tends to mean reverse to the CME closing price of the prior Friday. The level can also act as support/resistance. This indicator gives a visualization of this key level for the relevant time window.
Furthermore the indicator helps to easily identify, if there is an up or down gap in the CME Bitcoin contract.
CoRA Ribbon - Multiple Compound Ratio Weighted Moving AveragesWhat distinguishes this indicator?
A Compound Ratio Weighted Moving Average ("CoRA") is a Moving Average that, regardless of its length, has very little lag and that can be relied on to accurately track price movements and fluctuations - compared to other types of Moving Averages.
By combining multiple Compound Ratio Weighted Moving Averages you can identify the trend better and more reliably . This is where "CoRA Ribbon" comes in.
The original study, which supported one CoRA Wave, comes from RedKTrader and was introduced as "RedK Compound Ratio Moving Average (CoRa_Wave)” . Thanks to him for the great work!
What was improved or added to this version of the indicator?
With this version of the indicator, up to 5 waves of Compound Ratio Moving Averages with different lengths can be combined and output to one "CoRA Ribbon".
Alerts were implemented. You can be notified e.g. in the event of
changes in direction of each single CoRA Wave
a trend change, which is determined on the basis of all 5 CoRA Waves
A CoRA Wave compared to other Moving Averages - CoRa Waves are less lagging behind
A suggestion for interpretation of “CoRA Ribbon”:
Since CoRA Ribbon can help you to identify the trend better and more reliably, this indicator provides a good baseline for your strategy, but should always be used in conjunction with other indicators or market analysis.
By adjusting the length of each individual wave, you can adapt "CoRA Ribbon" to your trading style - whether it is more aggressive or more cautious.
The following general rules can be formulated:
If the Ribbon changes its color to green, this can be interpreted as a buy signal.
If the Ribbon changes its color to red, this can be interpreted as a sell signal.
Good to know: The default settings have been selected for timeframe lower than 15 minutes. Adjust them and the indicator will do a great job on higher timeframes too. Please remember to test carefully after every change before the changes are applied to your live trading.
Background “Compound Ratio Weighted Average” - provided by "RedKTrader"
A Compound Ratio Weighted Average is a moving average where the weights increase in a "logarithmically linear" way - from the furthest point in the data to the current point.
The formula to calculate these weights work in a similar way to how "compound ratio" works: you start with an initial amount, then add a consistent "ratio of the cumulative prior sum" each period until you reach the end amount. The result is the "step ratio" between the weights is consistent - This is not the case with linear-weighted “Moving Average Weighted” (WMA) or “Exponential Moving Average” (EMA)
For example, if you consider a Weighted Moving Average ( WMA ) of length 5, the weights will be (from the furthest point towards the most current) 1, 2, 3, 4, 5 -- we can see that the ratio between these weights are inconsistent. in fact, the ratio between the 2 furthest points is 2:1, but the ratio between the most recent points is 5:4. the ratio is inconsistent, and in fact, more recent points are not getting the best weights they should get to counter-act the lag effect. Using the Compound Ratio approach addresses that point.
A key advantage here is that we can significantly reduce the "tail weight" - which is "relatively" large in other Moving Averages.
A Compound Ratio Weighted Moving Average is a moving average that has very little lag and that can be relied on to accurately track price movements and fluctuations.
Use or modify the code, invite us for a coffee, ... most importantly: have a lot of fun and success with this indicator
The code is commented - please don't hesitate to use it as needed or customize it further ... and if you are satisfied and even successful with this indicator, maybe buy us a coffee ;-)
The original developer ( RedKTrader ) and I ( consilus ) are curious to see how our indicators will develop through further ideas - so please keep us updated.
Supply & Demand ZonesA NRTH_ Technical Indicator Study
Comes included with the Premium Package.
Indicator features
Automatically plot Supply and Demand Zones
Receive alerts for new Supply or Demand levels, and for zone Breakouts
Tweak how strict level placement can be
Usage Tips
Works on all timeframes and markets.
Designed for use in other study strategies.
Set Stoploss and Take Profit levels at Frequent Zones or use breakouts as entry signals.
-------------------------------------------
Disclaimer
Copyright NRTH_ Indicators 2021.
NRTH_ and all affiliated parties are not registered as financial advisors. The products & services NRTH_ offers are for educational purposes only and should not be construed as financial advice. You must be aware of the risks and be willing to bear any level of risk to invest in financial markets. Past performance is not necessarily indicative of future results. NRTH_ and all individuals associated assume no responsibility for your trading results or investments.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, 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.
ATR Trailing Stops S/R [LM]Hello Traders,
I would like to introduce you ATR Trailing Stops S/R . The idea is to look for important levels that are identified by trailing stop line, where it usualy spents a lot of time without any move usualy turns out to be good level for bounces.
Script for atr trailing line is originaly taken from: script made by @dgmoon
It has various setting
Timeframe and atr settings
Show lines
Extend lines
Line count - how many lines will be rendered
Candle count - how many candles has to trailing line spend at the same level
Colors - controls color of plot and lines
I hope you will enjoy it, as I enjoyed to write it.
Lukas
+ ATR Support and ResistanceThis, a very different script from most of mine, is my attempt at making a useful, and not messy, support and resistance indicator. If you've never looked into trader xkavalis, and his scripts and discord, I would highly recommend it. He talks about "pay attention candles" a lot. It got me thinking about what those are. Best as I can tell all he means by that phrase is large, impulsive candles. Sometimes these lead to break outs of ranges, or they may signal tops, bottoms, or near-tops and bottoms. The only way I could make sense of this in a mathematical way was by using the average true range. Basically, any candle's true range outside of the ATR is considered a "pay attention candle," by my definition.
This script originally began as just a candle coloring exercise with some optional shapes plotted above/below certain candles, but I quickly realized I wanted to draw lines or zones from these candles, so eventually, after many hours spent figuring out and learning 'line.new' and 'box.new' I got things sorted.
Essentially, my line of thinking is that on impulsive candles down, the origin of the impulse is more important than the close (not always of course, as there are no unbreakable rules in what markets can do), and with impulsive candles up, the same theory applies.
So, for upward impulsive candles I've marked out the zone from the open to the low as a support (until broken, in which case it may become resistance). For downward impulsive candles the zone encompasses the open to the high. I've given the option to plot a line from the close for all of these. It's turned off by default as it's just less stuff on the chart, but you may like it.
The line length is customizable in a menu. It does funny things on low timeframes on forex and stock charts (long lines that result in chart compression), but for some reason very rarely on crypto charts. If someone who is smart (not me) and has much experience with pinescript could perhaps help me out with a fix for this, that would be great. I suspect it has something to do with my "bar_index_duration" that I defined using the time function, but I'm not sure how or why.
Line length on time frames of one hour and up it is typically fine.
Use the ATR multiple to change the sensitivity of the indicator. This is basically the determination of when a candle is beyond the ATR. A multiple of two is two times the ATR. With lower volatile pairs you can maybe make this lower. On lower time frames or with more volatile pairs (illiquid alts in particular) a higher multiple might serve better. I find the default 1.75 is mostly acceptable.
As I started this I also thought adding some sort of volume information to the candles might be useful as well, so I added a simple candle coloring feature referencing the OBV and a 21 period EMA. Candles are colored based on the OBV's relation to its moving average.
I added some plot shapes and candle coloring utilizing the RSI as well. Options to turn on or off shapes plotted for overbought and oversold across the top of the chart. The most interesting feature that I implemented here is a support/resistance zone around the centerline of the RSI. If the RSI is between 49 and 51 then you can have optional candle coloring, shapes plotted above the candles, and s/r zones drawn on the chart. In trending markets the centerline of the RSI will frequetly act as support or resistance, so by being alerted of this condition on the chart you can use that with actual levels marked off in order to help make a judgement on a trade. I think it's a nice addition, and an oft overlooked aspect of the usefulness of the RSI.
I've also included a calculation, with candle coloring and/or plot shapes, for something like a stop run on high volume. The calculation for that is in its section below, and should be pretty self explanatory.
Lastly, typing this as I'm posting it, this indicator could also be useful for helping to find placement for trailing a stop. Just a thought!
Auto Price Action - Volume Price and Spread [Mehrok]Auto Price Action - Volume Price and Spread script generates important support and resistance levels basis activity happening in price, volume and candle spread. The basic idea has been taken from concepts of VSA which underlies that weakness appears in uptrend and strength in downtrend. Script will try to find candles which have volume higher then average and candle spread.
Underlying logic:
Script generates significant high's as resistance and lows as support basis activity happened on volume, price and candle spread. Once criteria set in script is met it would then mark that candle with resistance or support line which would act as important price action level later in time.
Usage:
As it records and maintain important high and lows happening on candles till the time new levels are generated therefore generated price levels act as significant support or resistance. Higher the activity in volume, price and spread stronger that price level would act as support or resistance in future.
Settings:
AvgLen- It would allow you to set the SMA settings for volume bars. By default set at 20 means that SMA of 20D volume would be considered in script.
Volume Start Threshold - Default 1.3 - You can change this setting basis stock volatility. This would set the starting point in script to trigger support or resistance levels if volume is equal or higher then the multiplier you have chosen.
Bearish Volume Mult 1, 2 and 3: Set the the levels which can be adjusted to generate x1, x2 or x3 resistance levels which would appear on top of candles.
Bullish Volume Mult 1, 2 and 3: Set the levels which can be adjusted to generate x1, x2, or x3 support levels which would appear at bottom of candles.
Use of bearish and bullish volume mult is to let user define the multiplier value against which current volume bar would be checked. Higher the value means rare it would be.
x1 - Starting level of resistance/support. It would be considered as level 1 of support or resistance which can be broken easily. Happen too often.
x2 - Medium level of resistance/support. It would be considered as level 2 of support or resistance which can give tough fight as price would reach this level. If set as more then 50% of stock volatility of instrument then price would react for sure.
x3 - Strongest level of resistance/support. If set 3 or higher it would be rare to be generated and price may not visit level too often.
Bullish Candle Matrix %: Keep it above 50 to let script check how strong bullish candle is. Strength of candle increase as value increase from 50 towards 100. Keep it at 52 to track maximum bullish candles.
Bearish Candle Matrix %: Keep it below 50 to let script check how strong bearish candle is. Strength of candle increase as value increase from 50 towards 0. Keep it at 47to track maximum bearish candles.
Optional Lines
Optional lines usage no volume activity therefore can generate important price levels basis volume and price only.
Script work on all time frame where volume information is available. In absence of volume information script would only generate optional levels and that too if activated.
Longest CandleThe script detects and highlights the longest candle (from high to low) in a user specified lookback period.
Description
The longest candle in a specified range will form very strong predefined support and resistance levels. The concept is based on Aurora Candles.
How To Use
Use the indicator to find the longest candle in a specified lookback period. You can then mark the highs and lows for predefined S/R areas. Each trader can adjust the lookback period and colour.
Access the indicator
• Contact me on TradingView