(JS) Tip-and-Dip Oscillator 2.0

I am going to start taking requests to open source my indicators and this is the first one I decided to do. They will also be updated to Version 4 of Pinescript.

I went through and added notes on what each area of the code is, and in this particular case I added color schemes as a way to improve upon the original code.

Link to original:
Original Description:

"Let me start by saying I know that the name is goofy lol

This is an oscillator that that looks at price action vs. standard deviation in order to illustrate the trend. This thing looks like an Awesome Oscillator but the math behind this and the Awesome Oscillator are totally different (which is pretty interesting, given they look a lot alike). I included the Awesome Oscillator on the chart here so you can look at them and see where they are different.

So the Tip-and Dip Oscillator is meant to help you pinpoint tops and bottoms. I even added arrows where the top and bottom signals are given.

The oscillator itself has 3 colors, an up, down, and neutral color that come as green, red, and yellow. Since the readings given by the oscillator can greatly vary depending on the chart resolution, I included an option to edit the range to fit your chart.

Also - I have 4 different smoothing options that you can use depending on what your preference is. The default setting is the most sensitive so it will identify tops and bottoms more frequently, but it is the most accurate when pinpointing the correct reversal candle. As you smooth it out, the arrows will appear less, but my be slightly delayed and give a later reading. I personally prefer the default, but going up to the second setting in smoothing works nicely as well.

Информация о релизе: Per request: added alerts and now allowing custom colorization.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?