Overview This script was created from an idea I saw on one of John Pocorobba's General Market Update videos. In it, he mentions that he's looking for certain criteria to signal that price may be extended and that a pullback may be coming. This script helps to identify those candles. It also goes a step further and identifies if the candle has not only met the criteria but has also has moved at least 1 ATR at the close.
By default, the potentially extended candles are colored gold and the potentially extended candles with an ATR are colored blue. Both are editable as is the ATR length.
There are many ways to fine-tune this script to get it to fit the security in which you're interested and there are some additional niceties to help make the indicator more well-rounded.
NOTE: This script is meant to be used on indexes or index ETF's and only on the Daily timeframe.
How It Works - Allows the user to modify the minimum distance between the close and the fast EMA to fine-tune the filter (this is one of John's key criteria). - Ensures that the distance between the fast and slow EMA's is less than the distance between the close and fast EMA (this is one of John's key criteria). - Ensures that all three moving averages are in the correct order (fast > slow > base) - Ensures that the candle closed higher than the previous one and can be tuned to identify when price has been in a trend for however many days you want. - Checks for a fine-tunable gap to help filter out large gap-ups that may be just a breakout or something else unrelated to a potential pullback. - Plots the moving averages (also editable), if desired. - Allows the ATR filter to be decoupled from the extended price filter should the trader want to see only the ATR candles. - Allows the trader to determine if they want to colorize just the up candles or both up and down candles.
Troubleshooting - If you're not seeing colored candles ensure that the indicator is placed at the top of the Object Tree. You can get there by clicking the icon in the lower-right corner of TradingView that looks like a stack of papers and then dragging the indicator to the top of the list.
- If you're still not seeing colored candles play around with the settings until some start to show up. Depending on the security, some of the settings may need to be very low.
Future Updates & Suggestions I'm considering adding in a 'Presets' dropdown that will load default settings for certain indexes and/or index ETF's (no individual stocks). If this is something you think would be useful, or if you have some settings of your own for an index or index ETF that you'd like to have added, let me know in the comments below.
Este script se publica con código cerrado, pero puede utilizarlo libremente. Márquelo como favorito y podrá usarlo en un gráfico. El código fuente no se puede ver ni modificar.
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.