OPEN-SOURCE SCRIPT
Atualizado Williams Vix Fix Bottoms and Tops

This indicator uses the very popular Williams Vix Fix for Bottoms by Chris Moody but not only does it search for bottoms, it can also be switch to work for tops for those who look to short the market. I've also added in a few options like flipping the indicator, color adjustments on the settings page, as well as cut a few of the options I feel did not need to be in which cluttered the screen when the settings were opened. In his later revisions of the Williams Vix Fix, CM took out the functions which draw the high/low ranges as well as the standard deviation which is what this indicator uses to show entry points. I have added options back on to draw these, I think it's useful. To be honest, I have not messed around with the number settings much so I am not sure how adjusting the look back range or going for smaller / bigger percentage changes would change how well the indicator works. It seems to work very well at its default settings.
With the Bollinger Band deviation, you have to remember that it looks back at the set amount of candles (20 by default) and uses those for the standard deviation: 1 dev = 68%, 2 dev = 95%, 3 dev = 99.7%
These percentages mean that at 2 dev, 95% of the last 20 candles will remain within the boundaries of the Bollinger Bands. Three tends to be too high, one is usually too low. Two is pretty good.
The lowest percentile option probably won't change much other than bring up the bottom line which doesn't effect the alerts or signals, just something to observe.
The highest percentile option makes a difference similar to the stand deviation and Bollinger Band. The higher you put it, the less likely it will get triggered but the more reliant it of a signal it should be.
As always, I have left notes throughout the code and I did leave in the code that was original but commented it out as I don't believe it's worth having.
I like to have the high/lows drawn, as well as the standard deviation. Then I find that the filtered entries are most accurate signals to follow. Simple entry is hit or miss, Aggressive entry is always early but sometimes that's not a great thing.
With the Bollinger Band deviation, you have to remember that it looks back at the set amount of candles (20 by default) and uses those for the standard deviation: 1 dev = 68%, 2 dev = 95%, 3 dev = 99.7%
These percentages mean that at 2 dev, 95% of the last 20 candles will remain within the boundaries of the Bollinger Bands. Three tends to be too high, one is usually too low. Two is pretty good.
The lowest percentile option probably won't change much other than bring up the bottom line which doesn't effect the alerts or signals, just something to observe.
The highest percentile option makes a difference similar to the stand deviation and Bollinger Band. The higher you put it, the less likely it will get triggered but the more reliant it of a signal it should be.
As always, I have left notes throughout the code and I did leave in the code that was original but commented it out as I don't believe it's worth having.
I like to have the high/lows drawn, as well as the standard deviation. Then I find that the filtered entries are most accurate signals to follow. Simple entry is hit or miss, Aggressive entry is always early but sometimes that's not a great thing.
Notas de Lançamento
Added a few options: - You can now create an alert for when the bars bars on the indicator change from gray to green! This alert can also be triggered based on the number of green bars in a row.
- Added an integer input value that controls the number of green bars required to trigger an alert. This value is at the bottom of the settings for the indicator. It will be set to a default of 1 meaning only one green bar will be required to appear after a gray bar for an alert to be triggered. If set to 2, then two green bars in a row need to appear after a gray bar for the alert to be triggered, and so on.
Notas de Lançamento
Hey everyone, I have finally done it!I've added an option to do both tops AND bottoms without having to have a second copy of the indicator on your chart.
You can do this by going to the first dropdown. There are now options for "Low", "High", and "Both". Lows and highs are as they were before, both will check for, well both! The one caveat is that it cannot do them both at the same time. So it can either look for highs or low but will change which one it's looking for based on the current trend.
You can select what the trend is by using the second dropdown. The options for a trend are "SMA", "EMA", or "VWAP". If you select a moving average, there's also a length option you can change what the trend length will be. VWAP obviously doesn't need a length option so if you do select VWAP, the length number will do nothing.
Bar colors to indicate high/low entries will work both ways if you select "Both". Again, it will filter them based on the trend.
For anyone that's copying the code, sorry it's a bit messy. I did sort of just throw it together and noted out the lines rather than deleting anything in case I wanted to see what the original lines were without having to revert to a previous version of the script.
Notas de Lançamento
I accidently flipped the chart by turning a 1 to -1. I've fixed that here. Notas de Lançamento
I had a few comments come up from my last update stating they wanted the input options back. I've added those back in.If you don't want these on your settings screen, open the code and go to Line 20, look for "bHideOptions = false"
Change the "false" to "true", save as a copy and add the indicator on your chart.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.