Elder Force Index With ATR ChannelsInspired by the new version of the "Force Index" announced by Dr. Alexander Elder a few years ago - "Elder Force Index With ATR Channels".
Unfortunately original version of script only works on MetaTrader platforms, so this is an attempt to
implement this great idea on TradingView too.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is original script explanation by Dr. Elder himself
-------------------------------------------------------------------
Adding Average True Range (ATR) channels to Force Index had been suggested by Kerry Lovvorn.
Adding these channels turns Force Index into an excellent tool for identifying intermediate tops and bottoms.
Force Index with ATR channels does not catch all turns, but the ones it identifies deserve very serious attention.
Note: the word “true” in Average True Range refers to dealing with price gaps. Since there are no gaps in Force Index, here ATR is the same as the Average Range.
Whenever the Force Index rises above or falls below its 3-ATR channel, it signals that the ticker has reached an area of an unsustainable extreme.
That’s where rallies and declines become exhausted and prices tend to reverse. This is one of very few tools that are equally efficient in calling both top and bottom areas.
In our experience, these signals work especially well on the weekly charts.
Of course, users are welcome to experiment with them in any timeframe.
One possible option is to use the new Force Index with ATR Channels on your weekly charts and the original Force Index on your daily chart.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- The Force Index is drawn in blue with a thick line.
- The Averaged Force is a solid red line.
- The upper and lower bands at 1 ATR are drawn in dotted lines.
- The upper and lower bands at 2 ATR use dashed lines.
- The upper and lower bands at 3 ATR are solid gray lines.
- Red dots placed above the plot when the EMA of Force Index rises above the 3-ATR channel.
- Green dots placed underneath the plot when that EMA declines below the 3-ATR channel.
***** Original script programmed to truncate values at the 4-ATR level to prevent any extreme value from flattening the rest of the plot -
- I'm not yet implemented this feature here - hopefully coming soon.
ATR
[JRL] ATR Pivot PointsThis indicator plots pivot points with support and resistance lines based on average true range (ATR). ATR is one of the best volatility and trading range predictors, so it can be very useful for finding confluence in any strategy.
Indicator - ATR Profit Loss - DGHi Traders,
This is an on chart indicator that can be used for setting take profit and stop losses very easily using the Average True Range Indicator (ATR). Using a volatility adjusted TP and SL will allow you to set your targets and losses based on market conditions. In the settings, you are able to adjust how much of a multiplier you require depending on your risk tolerance and strategy. For those that follow the NNFX method, the defult settings are preset to 1xATR TP and 1.5xATR SL.
How to use:
- For longs, 'isLong' box must be ticked, for shorts, this box is unticked
- For longs, green line is TP, red line is SL
- For shorts, red line is TP, green line is SL
Regards,
Dillon Grech
EMA ATR Engulfing CandlesThis is good old EMA (Exponential Moving Average) with a twist. The EMA line is surrounded by ATR on either side giving you visibility on how market breadth is working out.
The icing on this cake is in the form of engulfing candle indications. Whenever the engulfing candle happens to be inside the size (that's upper and low ATR area limits around EMA) and the engulfing candle has closed in the appropriate direction, the signal triangle comes up. To understand this...
The signal appears only if one of OHLC price point of engulfed and/or engulfing candles are within upper and lower ATR areas around EMA
When there is a bullish engulfing candle, and the close of the candle is above EMA, a green triangle comes up below the candle
When there is a bearish engulfing candle and the close of the candle is below EMA, a red triangle comes up above the candle
The settings enable you to set the following
Length of EMA (default is 200)
Length of ATR (default is 12)
Resolution of EMA independent of the chart timeframe (default is Daily)
Price type (default is hlc3)
Trade zone width in number of ATRs on either side of EMA (default is 1)
Other settings to adjust display
I have been using this in different timeframes to generate signals and found that it generates pretty good alpha.
Feel free to write to me if you have any ideas that can improve this further or if you wish to discuss how to properly use this.
ATR Stop (Adaptive and Advanced)Hi everyone I am excited to share with you all a tool that has been in a lot of my research lately I and think would greatly benefit everyone.
In the last years I have fallen in love with ATR stoplosses/ stop and reverses. However all the ones offered in the community lacked the features that I wanted to have, so I built them all myself and want to share them with you all today!!!
Assuming that you are already familiar with ATR stops, here is what is new and improved with this version:
1. This script takes anything as an input! As you can see in the chart above I have used an EMA as an input into this script and this greatly smoothed out the results while still allowing for phenomenal entries with minimal whiplash. You can use this tool on anything now, from moving averages to oscillators.
2. Previous scripts were not adaptive, you can now choose how adaptive this script is! Increasing this number allows this ATR stop to follow price when it is running away so you don't have to give back much profit. Likewise it makes sure that the ATR stop slows down when the market is ranging so you wont get randomly stopped out.
3. You can now get it to start at the exact moment you enter your trade! Previous scripts had the ATR stop running forever which wasn't helpful if you only needed it for your own trades. You can now set it to start at the exact time of your trade if that is the only time you need it!
4. Now you can easily get alerts when the ATR stop gets hit.
Hope this helps you all!
ATR Stop [COFUTrading]ATR excluding price spikes for a more correct calculation of average volatility and setting a stop loss.
DTR vs ATR w RVolDTR vs ART along with Relative Volume in Percentage. So if you see RVol as 200% with input length of 10 days, today's volume is 2x compared to past 10 days. It helps if today's volume is already reached 20% or 30% within 30mins of market open, etc.
ALMA PPO with Volume Weighted ATR BandsAlma PPO with a percentile eq and atr bands using volume weighted alma. Volume weighted alma idea from rumpypumpydumpy. All code is from the open source library.
PMax on RSI with Tillson T3Profit Maximizer Indicator on RSI with Tillson T3 Moving Average:
PMax uses ATR calculation inside, for this reason users couldn't manage to use PMax on RSI because RSI indicator doesn't have High and Low values in bars, but ATR needs that values. So I personally calculate RSI in a different way to have High and Low values of RSI wrt price bars.
IMPORTANT:
Because of the sudden movements and divergences on RSI, this indicator must firstly optimized for the charts before using. Optimization can be held by users for the meaningful parameters for each chart.
3 parameters are critical when optimizing:
First: Multiplier
Second: Tillson T3 Length
Third: T3 Volume Factor
Here are some information about Profit Maximizer:
PMax Indicator:
PMax Screener and Strategy:
MACD Strategy with trailing ATR stopThis is a trend based strategy that uses EMA and SMA intersection for determining the direction of the trend and MACD for the entry signal. At the same time, the strategy uses ATR, which is working as a trailing stop.
The strategy entry will work when the Trend ribbon will turn green and MACD line will crossover the signal line. This strategy also takes into account the pyramiding and allows to enter the second time if the signal will repeat itself.
There are 3 exit points. The first 10% of the position will be closed when the price will increase by 1%. The second portion of 50% will be closed when the price reaches 5% Take profit target. The remaining 40 % of the position will wait for the exit signal which will occur when the price closes below the ATR line.
The strategy is using a fixed amount in dollars, each time the entry occurs the strategy will enter with 100$ in the order.
The strategy can be applied to other crypto assets. However, they will require input changes.
Best of luck with your trading.
Institutional PivotsToday I propose a novel idea of plotting pivots, this can be also considered as Value areas/Noise areas.
*What is it?
Its a simple concept of gauging price action with respect to its most time spent in a particular range, this is usually denoted as Value area in the Market profile concept, where that "most" word is represented by 70% of the price action.
*What's different from the Market Profile?
Market profile is dependent on real time price movement to complete to see the value area or noise area to plot a static area, there is always a possibility of it shifting as price may move outside of it, and hence its called "developing value area", till of course session is closed and plot is finalized.
While that method is solid indication of "actual price profile" development, it lacks when it comes to offering traders a more stable view to enable them to make decisions. And therefor, when traders trade MP they are usually limited by the number of trades they can take.
This is the main reason as to why traders prefer to use other methods like Pivots/ORB/Range-breakouts over pure MP charts, even though latter reduces the possibility of wrong estimations of "support/resistance working/holding".
*Why the name Institutional Pivots?
In my research I've found that these Pivots/Value area/Noise area ranges are often the areas watched by the big players who trade breakouts or mean reversion strategies, so while that name may sound dubiously clickbaity, it is indeed intended to represent an observation. I know how that sounds, but you can choose to ignore it if you do not agree or see good results after using it. After all, its free to use for everyone.
*Nomenclature/colors and settings?
Noise area/Value area/Central Pivot area - Designated with Yellow labels, in which NU represents the Upper level and ND represents the Lower level
Targets - Target calculation mechanism is based on " today's price action" and today's Open, D1 and D2 represent down targets for the day and U1 and U2 represent upper targets. Please note that this is independent of the "Noise area/Value area/Central Pivot area", so overlap of levels is possible. AND if overlap happens, that's an indication of more strength at S/R line/area for the price.
One more thing to note here is that if there is formation of the new low or new high in the day, those levels will change as their calculation gets influenced by the same. This is NOT a repaint issue, this is SHIFT/FORMATION OF THE NEW levels and it's an "intended" behavior.
Open and POpen - Open represents open of the time-frame selected and POpen represents previous open of the time-frame.
Lable's starting with "H" are indicating higher Timeframe levels, levels which are same as above.
ATR based targets - When you enable this in settings, you will get target calculation based on ATR (self explanatory)
Full ATR mode - When you enable this option, you will get both Noise area as well as targets based on ATR, please don't forgot to turn off the ATR based targets when you enable this, as they conflict with each other.
I've not kept lines, area plots or even price levels as I feel it's just noise and takes away from the indicators main focus, please don't ask to add them, I'll not.
This is meant as purely educational idea, if you use this to trade, it is at your discretion and responsibility will be yours alone.
Past performance is not assurance of the future performance.
More example chart/s
DTR vs ATRThis script shows DTR vs ATR (Today's True Range vs 14 days Avg True Range) along with percentage. The label automatically changes color based on percent value. <=70 is GREEN, >=90 is RED and between 70 & 90 is ORANGE.
The location of the script not stick to one place. There is no such a functionality to keep it static at one location (like top right corner). But I think that feature is coming soon. I may be wrong.
VWMA_withATRstops_strategyThis strategy follows the trend when price is above VWMA indicator. I have modified entry and exit rules to get most out of it.
Instead of entering LONG when price crosses above VWMA, I have used RSI(14) of VWMA . that way it skips the false signals. (some extent)
ENTRY
========
1. VWMA setting is 33
2. When RSIofVwma is above 30 enter Long ( and also checks if price already broke the ATR Stop above line )
Stop Loss and Exits
==================
1. Exit is when price breaks the ATR stop loss
2. ATR setting is set as same VWMA Length and multiplier is 3.5
3. STOP Loss that I mentioned in the settings is being used to calculate the how many units can be purchased based on risk of capital value.
Note: There is NO hard stop loss. having above ATR stop loss works as Trailing stop loss
Warning
=======
For the educational purposes only
Daily GAP StatsI did not write the script from scratch but rather started editing code of an existing one. The original code came from a script called GAP DETECTOR by @Asch-
First up: I am a trader, not a programmer and therefore my code most likely is inefficient. If someone with more expertise would like to help and optimize it - feel free to get in touch, I am always happy to learn some new tricks. :)
This script does 2 things:
- It shows daily gaps stats based on user inputs
- It shows color coded labels on gap days with additional information in tooltips ( important: make sure to read 'known issues/limitations' at the end )
User Inputs
==========
Although the input dialog is pretty straight forward, I do a quick rundown:
- Length: max lookback time
- Gap Direction: self explanatory
- Show All Gaps | Cont Only | Reversal Only | Off:
This refers to the way labels are displayed on gap days (again: make sure to read known issues/limitations!)
- Show All Gaps: does what it says
- Cont Only: only shows gaps where price continued in the gap direction. If you filter for gap ups and chose 'Cont only' you will only see labels on gap days where price closed above the open (and vice versa if you scan for gap downs).
- Reversal Only: you will only see labels for closes below the open on gap up days (and the opposite on gap down days)
- Off: self explanatory
- Gap Measure in ATR/PCT: self explanatory, ATR is calculated over a 10d period
- Gap Size (Abs Values): no negative values allowed here. If you filter for gap downs and enter 3 it means it will show gaps where the stock fell more than 3 ATR/PCT on the open.
- RVOL Factor: along with significant gaps should come significant volume. RVOL = volume of the gap day / 20d average volume
- Viewing Options: Placing the stats label in the window is a bit tricky (see knonw issues/limitations) and I was not sure which way I liked better. See for yourself what works best for you.
Known Isusses/Limitations:
=======================
- Positioning of the stats table:
As to my knowledge, Tradingview only allows label positioning relative to price and not relative to the chart window. I tried to always display the gap stats table in the upper right corner, using 52wk high as y-coordinate. This works ok most of the time, but is not pretty. If anybody has some fancy way to tag the label in a fixed position, please get in touch.
- Max number of labels per script:
TradingView has a limitation that allows a maxium of ~50 labels per script. If there are more labels, TradingView will automatically cut the oldest ones, without any notification. I have found this behaviour to be rather inconsistent - sometimes it'll dump labels even if there are a lot fewer than 50. Hopefully TradingView will drop this limitation at one point in the future.
Important: The inconsistent display of the gap day labels has NO INFLUENCE on the calculations in the gap stats table - the count and the calculations are complete and correct!
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.
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.
ATR SL Buy/Sell w/ SMAsFirstly I'd like to state that this script's ATR buy/sell source is from the public script library here:
Additionally with the buy/sell signals from the original script, two more buy/sell conditions were added to give more entries/scaling in or out options. On top of that, two SMA lines were added, a 1 day moving average and a 5 day moving average.
This script is more so designed for scalping/scaling in and out of positions already made.
The SMAs add a level of confidence to the entry order, buy/sell triggers are not based on these SMAs.
For the confirmation on the entry, ideally you want a bullish cross on the SMAs, as well as the color of the SMA to correlate to the buy/sell color.
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.
Wilder's Volatility Trailing Stop Strategy with various MA'sFor Educational Purposes. Results can differ on different markets and can fail at any time. Profit is not guaranteed.
This only works in a few markets and in certain situations. Changing the settings can give better or worse results for other markets. This strategy is based on Wilder's Volatility System. It is an ATR trailing stop that is used for long term trends. This strategy focuses on the trailing stop alone and goes long and short only when it goes above or below the trailing line. It is similar to Donchian channels except it does not include the certain period channel breakout, only the trailing signal. This is only the trailing stop and an attempt to show how well it works standalone as Wilder described.
In his book, Wilder recommends a multiplier of 2.8-3.1 and an ATR lookback of 7 periods along with a running moving average or otherwise known as Wilder's moving average. The calculation and programming part for the trailing stop varies everywhere. I opted to keep it as simple and accurate as I could think of and interpret from the book. The variations to these types of indicators are numerous unfortunately, but Wilder seems to be the original author of ATR and this ATR-based trailing stop. In his book he says to use the significant closing price or highest/lowest closing price for the calculation part but I also included the option of choosing the highest high and lowest low, and the option to choose various moving averages in case anyone wants to experiment.
Comparing this and Donchian channels, it seems that a 2.5 multiplier is somewhat similar to the middle band of DCs and a 3.0 multiplier is somewhat similar to a double length middle band of DCs. It's hard to say which is the better trailing stop for a long term strategy. It's hard to beat the simplicity of DCs but maybe some might find a need for more inputs in a trailing stop or maybe an ATR based one like Wilder's can work better depending on what setting or strategy it's used in.
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.
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).