grigorykov

Awesome Oscillator + Bars count lines + EMA Line

grigorykov Updated   
The indicator includes an Awesome Oscillator with 2 vertical lines at a distance of 100 and 140 bars from the last bar to determine the third Elliott wave by the maximum peak of AO in the interval from 100 to 140 bars according to Bill Williams' Profitunity strategy. Additionally, a faster EMA line is displayed that calculates the difference between 5 Period and 34 Period Exponential Moving Averages (EMA 5 - EMA 34) based on the midpoints of the bars, just like AO calculates the difference between Simple Moving Averages (SMA 5 - SMA 34).

In the indicator settings, you can change the number of bars for vertical lines and any parameters for AO and EMA - method (SMA, Smoothed SMA, EMA and others), length, source (open, high, low, close, hl2 and others).

***

Индикатор включает Awesome Oscillator с 2 вертикальными линиями на расстоянии 100 и 140 баров от последнего бара, чтобы определить третью волну Эллиота по максимальному пику AO в интервале от 100 до 140 баров по стратегии Profitunity Билла Вильямса. Дополнительно отображается более быстрая линия EMA, которая вычисляет разницу между 5 Периодной и 34 Периодной Экспоненциальными Скользящими Средними (EMA 5 - EMA 34) по средним точкам баров (hl2), точно так же, как AO вычисляет разницу между Простыми Скользящими Средними (SMA 5 - SMA 34).

В настройках индикатора вы можете изменить количество баров для вертикальных линий и любые параметры для AO и EMA – метод (SMA, Smoothed SMA, EMA и другие), длину, источник (open, high, low, close, hl2 и другие).
Release Notes:
Added display of the maximum or minimum peak of AO in the interval of 140 bars from the last bar. In the indicator settings, you can change the interval (in the "Interval for MAX and MIN" field) and hide the AO peak labels.

To receive notifications about the appearance of a new maximum or minimum AO peak, when creating an alert, you must select the condition "Any alert() function is call", in this case notifications will arrive after the bar closes in the following format:
* 🟩 {{ticker}} · {{interval}} — New MAX AO
* 🟥 {{ticker}} · {{interval}} — New MIN AO

In the indicator settings, you can also enable notifications about crossing the zero line AO (the "Enable crossing zero line alerts" field), in this case, notifications will arrive in the following format:
* 🟩 {{ticker}} · {{interval}} — AO > 0
* 🟥 {{ticker}} · {{interval}} — AO < 0

***

Добавлено отображение максимального или минимального пика АО в интервале 140 баров от последнего бара. В настройках индикатора вы можете изменить интервал (в поле "Interval for MAX and MIN") и скрыть метки пиков АО.

Для получения уведомлений о появлении нового максимального или минимального пика АО, при создании оповещения необходимо выбрать условие "При любом вызове функции alert()", в таком случае уведомления будут приходить после закрытия бара в следующем формате:
* 🟩 {{ticker}} · {{interval}} — New MAX AO
* 🟥 {{ticker}} · {{interval}} — New MIN AO

В настройках индикатора вы также можете включить уведомления о пересечение нулевой линии AO (поле "Enable crossing zero line alerts"), в таком случае уведомления будут приходить в следующем формате:
* 🟩 {{ticker}} · {{interval}} — AO > 0
* 🟥 {{ticker}} · {{interval}} — AO < 0
Release Notes:
Added display of the AO line for the lower timeframe instead of the EMA line if the Moving Average Line values (method, length and source) are equal to the Awesome Oscillator values in the indicator settings:

  • If the chart timeframe is one month, then the lower timeframe will be one week (7 days), for example, "2M – 14D", "1M – 7D".
  • If the chart timeframe is one week, then the lower timeframe will be one day, for example, "2W – 2D", "W – D".
  • If the chart timeframe is one day, then the lower timeframe will be 4 hours (24 / 6 * 60 = 240 minutes), for example, "2D – 480", "D – 240".
  • If the chart timeframe is 4 hours, then the lower timeframe will be 1 hour (240 / 4 = 60 minutes), for example, "8h – 120", "4h – 60".
  • If the chart timeframe is one hour, then the lower timeframe will be 15 minutes (60 / 4 = 15), for example, "2h – 30", "1h - 15".
  • If the chart timeframe is 15 minutes, then the lower timeframe will be 4 minutes (15 / 4 ≈ 4), for example, "30m - 8", "15m - 4", "4m - 1", "2m - 1".

In the indicator settings, in the "Moving Average Line > Display lower timeframe" field, you can enable the display of the lower timeframe to the right of the AO line.


***

Добавлено отображение линии AO для младшего таймфрейма вместо линии EMA, если значения Moving Average Line (method, length и source) равны значениям Аwesome Oscillator в настройках индикатора:

  • Если таймфрейм графика один месяц, то младший таймфрейм будет одна неделя (7 дней), например, "2M – 14D", "1M – 7D".
  • Если таймфрейм графика одна неделя, то младший таймфрейм будет один день, например, "2W – 2D", "W – D".
  • Если таймфрейм графика один день, то младший таймфрейм будет 4 часа (24 / 6 * 60 = 240 минут), например, "2D – 480", "D – 240".
  • Если таймфрейм графика 4 часа, то младший таймфрейм будет 1 час (240 / 4 = 60 минут), например, "8h – 120", "4h – 60".
  • Если таймфрейм графика один час, то младший таймфрейм будет 15 минут (60 / 4 = 15), например, "2h – 30", "1h - 15".
  • Если таймфрейм графика 15 минут, то младший таймфрейм будет 4 минуты (15 / 4 ≈ 4), например, "30 – 8", "15 - 4", "4 - 1", "2 - 1".

В настройках индикатора в поле "Moving Average Line > Display lower timeframe" можно включить отображение младшего таймфрейма справа от линии AO.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?