grigorykov

Awesome Oscillator + Bars count lines + EMA Line

grigorykov 已更新   
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 и другие).
版本注释:
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
版本注释:
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.

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?