Relative Volume (RVOL) - ATR - R4RocketHello !!
This is a big upgrade on my earlier Indicator called "RVOL - R4Rocket". I could have updated the existing script, but there were two reasons for me to not do so.
1. I changed a lot of the previous code and added a lot of statistics like
a. Intraday Daily ATR Plot
b. Progressive (High - Low) Range as % of Daily ATR
c. % of RVOL Days in available chart data in any timeframe
d. In the new script RVOL Sectional has been removed as I did't find it very useful (Old script still has that feature)
e. And lastly and greatly, I modified the actual RVOL code (Huh ? Well I'll explain what I mean by this below)
2. Earlier I named my script just as RVOL. But then I though, well not everyone is going to search "Relative Volume" Indicator as "RVOL" Indicator, right? And Then during my second update I even tried to see whether I can change the script name but I couldn't figure it out. (Maybe it's not possible or maybe you know, "I DON'T HAVE ENOUGH BRAIN POWER" :P). So in order to make my script more accessible and easy to find for everubody so that it may add a little value to them in their trading, I'm changing the name of the script in this publication to "Relative Volume (RVOL) - ATR - R4Rocket". (Quite a big name, don't you think?)
Now as my reasons are out of the way, let me tell you about the indicator and the available options.
First let me explain what is RVOL basically. (Even after making 4 updates to my last script, I forgot to explain this......BIG BRAIN POWER :P)
It is calculated as (Cumulative sum of volume till time t from the start of the session) divided by the (Average of same period volume over a given number of days).
Lets say market starts at 09:30 am and right now the time is 10:00 am. So what RVOL does is it takes the sum of volume done from 9:30 am to 10:00 am for today and divides it by the same average volume that occurred between 9:30 to 10:00 in lets say X number of last days.
What this does is gives you the means to quantify how much everybody is interested today in the given stock w.r.t last X days. Generally higher the RVOL value - higher the public interest (due to some known or unknown reason like results / news / market condition etc) - and hence higher is the probability of stock movement on intraday basis. (Mostly everybody prefers to trade stocks intraday with RVOL > 2)
Now let's get back to the changes and the features.
1. It calculates Relative Volume
Adjusted in a way that the recent volume spike (e.g say due to quarterly result announcement or some other big news) don't skew the next day's
RVOL calculation. What this will do is, it will give you a good idea whether the stock is still in play the next day or a day after that.
LIGHTS !! CAMERA !! ANNNNNNDD ACTION !! (I love to watch movies, not very relevant here I know, but couldn't help it :P)
Now you can see in the image below the difference between old and new script RVOL calculations. This will help you to find out 2nd Day, 3rd Day plays.
To calculate RVOL first you have to choose your local exchange trading hours
E.g. NSE (India) trades from 09:15 to 15:30
NASDAQ (USA) trades from 09:30 to 16:00
LSE (UK) trades from 08:00 to 16:30 etc
Then you have to choose the RVOL period. This is the lookback period for cumulative volume average calculations.(I suggest using default value of 4 but it depends upon your preference and one more thing to note is that too high of a value will not even load the script due to some constraints that I don't know)
And last parameter is RVOL Trigger = What RVOL value YOU CONSIDER IMPORTANT. (I like 2 and if RVOL > RVOL Trigger then the columns will turn Green otherwise they will be Red. SIMPLE !!)
You can use any timeframe from 1 min to 1 Day. (Even custom timeframes like 2,4,6 will work fine)
1 min Chart
2 min Chart
2. It calculates Daily ATR in % terms of the day's open and plots it on intraday charts (and on daily charts too, if you want)
It's just what I just said - plain & simple.
You can see it in the image below. (Yellow dotted line and value in yellow color)
This will help you if you use profit targets or stop losses based on previous day's ATR values.
All you have to do is tick the Plot Daily ATR % box in inputs and choose the ATR Average.
3. The indicator calculates (High - Low) range as and when it extends throughout the day as the % of Daily ATR
This will help you quickly in finding which stocks are trading with extreme volatility.
Can be seen in the image below where the stocks trade @ almost 3 times or 300 % of the previous days ATR (Blue dotted line and value in blue color)
4. And lastly it gives you the statistic that will tell you how much is the average % of total days are RVOL days. (Did you get that ? It sounded great in my head but really don't know what I just said)
Let me tell you in terms of numbers. Lets say on daily timeframe Tradingview provides some 5000 bars worth of historical data. Out of that there were 16% days where RVOL was more than 2. Roughly speaking if you were to trade this stock every day then you would find on an average about 3 days per month with RVOL > 2.
(If you reduce the RVOL Trigger, then you will get more % RVOL days. In the second image if you reduce RVOL Trigger to 1.5 then you will have almost 27 % good trading days AS PER YOUR DESIRED & DEFINED PARAMETER OF RVOL TRIGGER = 1.5. Which translates to almost 6 days per month. You can play with it as you want and deem fit.)
RVOL Trigger = 2
RVOL Trigger = 1.5
“The goal of a successful trader is to make the best trades. Money is secondary.” – Alexander Elder
With best regards.
R4Rocket
ATR
ATR/EMA/Pivots/Crossover/LabelsScript for ATR, EMA , Pivots , EMA crossover, and Buy/Sell Labels for EMA Crossover
ATR Channel plotted from open of candle
3 channels with configurable length
+/- .5
+/- 1
+/- 2
EMAx5
Preset to 10, 20, 50, 100, 200. Lengths are configurable
Standard Pivots
Pivot with S1, S2, S3, R1, R2, R3
EMA crossover with Buy/Sell Labels
EMAs lengths are configurable for crossover
(Ability to change colors and turn on/off all of the above. Pic is only showing +/-1 ATR channel, EMAs, Pivot Point with S1/R1, and Crossover with Buy Sell Labels)
Find this useful? Accepting tips. Message me.
Daily Range Exhaustion SignalThis tool plots the average true range distance from each bar's open, up and down, so you can tell when a bar moves by more than the average distance a day's range usually travels. It's an interesting concept, but not something I use a lot of the time. Looking at the range relative to the last bar's range, is what I normally do to find bouts of strength or weakness, and to determine if these moves have follow through or not.
You may experiment with this indicator to see if it helps in your price action analysis. Usually, bigger than 1 ATR moves don't keep going for much more, unless there's some outrageous news related to the move.
This idea came from a conversation with Yacine Kanoun here, and I coded it into an indicator.
Credit where credit is due (right Yacine?)...
Cheers,
Ivan Labrie.
PtahX EMA/ATR StrategyPtahX EMA/ATR Strategy Public Release
written October 2019
EMA Strategy with ATR & "Fear Factor" built in
* modifications welcome
* please let me know if you improve it so I can continue to learn :)
* use at your own risk - I'm a new programmer and still learning
* Best of luck on your trades!!
// Take Profit (TP) option based on ATR or MA Crossover
Beast ATR (Average True Range)Average true range (ATR) stands for Average True Range which measures how much price moves on average. It has to be used as a volatility indicator that shows how much an asset moves, on average, during a given time frame.
Understanding volatility is important to make the right trading decisions as we will see later. Understanding how volatility changes with market context can help you make much better trading decisions as well.
I like to use this one for margin trading and on lower tf (1h, 2h, 4h).
ATR - Baby WhaleScript that shows you the ATR and 0.5 ATR.
You can use this to define your stop loss level when you see a SFP.
Standard setting is the 24 period ATR. You can use this for a 1h chart (24 hours in a day).
So when you play on a 5m chart, you can change the setting to 12 period (12 5m candles in 1 hour).
ATR/EMA/PivotsScript for ATR, EMA , and Pivots
ATR Channel plotted from open of candle
3 channels with configurable length
+/- .5
+/- 1
+/- 2
EMAx5
Preset to 10, 20, 50, 100, 200. Lengths are configurable
Standard Pivots
Pivot with S1, S2, S3, R1, R2, R3
(Pic is only showing +/-1 ATR channel, EMAs, and Pivot Point with S1/R1)
ATR ExhaustionThe ATR Exhaustion indicator for Tradingview will overlay the minimum and maximum price limits for a timeframe over your chart. It calculates the price limits be adding and subtracting the ATR level from the high and lows of the period you are interested in.
For example, you can see the daily upper and lower ATR levels whilst on a 15-minute chart. The upper and lower ranges will update as price moves.
Why would this be useful?
It the true price range on average does not move more than x pips/points, then the range boundaries might provide support/resistance levels as price approaches the levels. Additionally, you can use this tool to easily identify how volatile price action has been in comparison to previous periods.
Features
Easily see ATR Exhaustion areas in any timeframe
Period highs and lows are plotted and updated as price action unfolds
Color fills change when price moves beyond the ATR range for easy identification of periods of strong trends or volatility.
ATR-ADX Chandelier Exit ComboAcknowledgements: Everget for Chandelier Exit indicator, mortdiggiddy
for the Adaptive ATR-ADX Trend indicator
This indicator is a duct-tape combination of the two aforementioned indicators. I wanted a combination of potential stop options, some dynamic and others not, but both at the same time. It is less intrusive/clunky than the Fib-Pivot-Stop indicator, but not by much - I'm not sure how useful this would be considering the amount of visual real estate it takes on the chart compared to other indicators.
ATR Fib Pivot Stop ComboAcknowledgements: Everget for the Chandlier Exit indicator + other indicators for structure reference and MG for the Trailing Pivot stop indicator.
I wanted a Fib-Pivot-Stop indicator, so I duct-taped them together with some Fibs, and this was the result.
Technically you could say this is experimental and unfinished - the indicator is bulky/clunky enough to make it hard enough to use traditional MAs and other indicators that are drawn on chart. If you have success with this indicator trading, I want to know - send me a PM or link me a chart, please.
QuarryLake v4As some of you requested, I will make the code for QuarryLake Open for you all.
I have also updated the script in version 4.
This strategy consists of 3 indicators that I found works quite well together.
Keltner Channel, Waddah Attah Explosion, and Volatility Stop .
KC Period = 200
KCATR = 5
Vstop Period = 3
Vstop Mult = 1.5
Long when close > KC, close > Vstop, WAE trendUp
Short when close < KC, close < Vstop, WAE trendDown
Works well on BTCUSD XBTUSD , as well as other major liquid Pair.
This strategy utilized a modified Kelly position sizing for BTCUSD Bitstamp , feel free to modify it to your needs.
And lastly,
Save Hong Kong, the revolution of our times.
MMDVZ 1.0 (Rolling) - Moving Multi-Day VWAP Zones Rolling version of the MMDVZ script .
The bands do not reset at a fixed interval in this version and are instead bar based.
Volatility adjusted moving multi-day VWAP zones
Directionality, trend and support/resistance levels at a glance
Useful for trading practically all kinds of stocks and futures .
Works well with many timeframes.
More updates to come, stay tuned
ATR BandsThis script shows the upper and lower bounds based on the open price. You can specify the ATR multiple to create the bands. The default multiple is 1. Similarly you can also specify the length to calculate the ATR value.
ATRPricePercentThis script builds on top of the ATR Price Ratio script. In this script I am representing the ratio as a percentage for getting the volatility up to the second decimal.
ATR TRex [SHK]To appreciate dear Mr.Khakestar efforts i have converted his mt4 ATR formula to pine script. All credits goes to him.
Plots
You can enable plots from the settings tab and then disable five first plots from the style tabs (finally save as default). Then you can view the ATR result of each candle in the past:
Green number is the HL range of the candle.
Red number is the ATR of the candle.
First black number is the ATR of the 4H chart.
Second black number is the ATR of the 1D chart.
Third black number is the ATR of the 1W chart.
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).
ATR Trailing Stop Indicator [Chart]I rely on this script for both my live trading and my backtesting process. I couldn’t live without it. It’s extremely simple – all it does is calculate your trailing stop price.
How It Works
The first number in blue is the current ATR (pips). The second number in green is your trailing stop loss price for Long trades, and the third number in red is your trailing stop loss price for Short trades.
For short trades, the stop loss price is calculated by adding the current ATR value to the highest-high of the given lookback period.
For long trades, the stop loss price is calculated by subtracting the current ATR value from the lowest-low of the given lookback period.
Settings
ATR Length:
ATR period (how many candles to include in the calculation).
Use Structure?
If set to true, the script will use swing lows and highs in its calculation. If set to false, the script will ignore swing lows and highs and give you the distance of the ATR from the current candle close instead.
How Far To Look Back For High/Lows:
Candle lookback period for swing high/lows.
ATR X ?:
This controls your ATR multiplier. For example, if you want to use a 2x ATR stop, set this to 2.
Tool Companion:
Here is the tool companion script for this indicator:
Source Code:
Go to zenandtheartoftrading.com for the source code – it’s free!
ATR Trailing Stop Loss IndicatorI rely on this script for both my live trading and my backtesting process. I couldn’t live without it. It’s extremely simple – all it does is calculate your trailing stop price.
How It Works
The first number in blue is the current ATR (pips). The second number in green is your trailing stop loss price for Long trades, and the third number in red is your trailing stop loss price for Short trades.
For short trades, the stop loss price is calculated by adding the current ATR value to the highest-high of the given lookback period.
For long trades, the stop loss price is calculated by subtracting the current ATR value from the lowest-low of the given lookback period.
Settings
ATR Length:
ATR period (how many candles to include in the calculation).
Use Structure?
If set to true, the script will use swing lows and highs in its calculation. If set to false, the script will ignore swing lows and highs and give you the distance of the ATR from the current candle close instead.
How Far To Look Back For High/Lows:
Candle lookback period for swing high/lows.
ATR X ?:
This controls your ATR multiplier. For example, if you want to use a 2x ATR stop, set this to 2.
Chart Companion:
Here is the chart companion script for this indicator:
Source Code:
Go to zenandtheartoftrading.com for the source code – it’s free!
Average True Range Take profit (ATR)Average True Range Take Profit
An objective method of determining an initial Take Profit and Stop Loss, based on true market volatility and not arbitrary price levels.
Take Profit Levels and Stop Loss Levels are calculated based on multiples of Average True Range
Features & Functions
Option to switch between long or short
Default Value
Take Profit 1 = 1x ATR.
Take Profit 3 = 2x ATR.
Take Profit 5 = 3x ATR.
Stop Loss 2 = 1.5x ATR.
Basline 13 exponential moving average (EMA) (2)
Extra options ATR
Take Profit 2 = 1,5x ATR.
Take Profit 4 = 2,5x ATR.
Take Profit 6 = 3,5x ATR.
Take Profit 7 = 4x ATR.
Take Profit 8 = 4,5x ATR.
Take Profit 9 = 5x ATR.
Stop Loss 1 = 1x ATR.
Stop Loss 3 = 2x ATR.
Extra options MA
Simple moving average (SMA) (1)
Weighted Moving Average (WMA) (3)
Hull moving average (HMA) (4)
Volume Weighted Moving Average (VWMA) (5)
R moving average (RMA) (6)
Triple exponential moving average (TEMA) (7)
ATR Channel Multi-Timeframe / EMA / SMAFeatures:
Select alternate resolution
Select type of moving average
Select custom multiplicator