wozdux

LinReg-Bitcoin's Power Oscillator.2019.01[wozdux]

Bitcoin power oscillator from Harold Christopher Burger.

Since the first day of history is the most important, it is not correct to use this indicator on young exchanges with a short history.

The oscillator is calculated based on regression lines from the first day of history to the current day. The way of calculation of the oscillator. First, the regression line from the first day of history to the current bar is calculated for each bar.
Thus, for each bar, the formula of a straight regression line of the form Y=b*x + a is calculated. Where x is the number of days elapsed from the beginning of the history to the current drill. Y is the bitcoin price of the current day (bar) on the regression line. Thus, Y Is the predicted bitcoin price that would have to be. The second stage of calculation. Now we have the real price of bitcoin for the current day and the predicted price by the regression line. We calculate the ratio of the real price to the predicted one and take the logarithm of the obtained value. G=log10(Close/Y). This value is drawn in the form of a graph of the bitcoin power oscillator. The resulting oscillator oscillates in a constant range of values from -1 to +1.
This oscillator clearly captures the moments of price reversal. At the tops, the reversal occurs when the oscillator reaches the value range from 0.6 to 0.8. In the lowlands, the reversal occurs in the range of values from -0.8 to -0.4.
Indicator setting-description of buttons from top to bottom.
1) Raise the chart by X units. This is a corrective point in order to raise the chart above/below the zero line
2) Offset the start day of the story. The first day of history is the point relative to which all regression lines, all bars are calculated. This point can be slightly corrected by shifting the initial day to the left for a certain number of days.
3) button to switch between different ways to calculate the offset (A) in the formula Y=b*x + A.
4) the Orange level is the trend line of the historical power oscillator troughs. The orange level is an inclined level of price reversal from the bottom up.
5) the Green level is an important area of likely bitcoin price reversal at the tops.
6) the Red level is the horizontal level of the price reversal from the bottom up.


....
Осциллятор мощности биткоина от Harold Christopher Burger. "Это моя попытка воспроизвести вычисления данного генератора методами Pine Script .
Поскольку первый день истории имеет самое важное значение, то использовать данный индикатор на молодых биржах с короткой историей будет не корректно.

Осциллятор вычисляется на основе линий регрессии от первого дня истории до текущего дня. Путь вычисления осциллятора. Сначала для каждого бара вычисляется линия регрессии от первого дня истории до текущего бара.
Таким образом, для каждого бара вычисляется формула прямой линии регрессии вида Y=b*x + a. Где х -это количество дней, прошедших от начала истории до текущего бура. Y- это цена биткоина текущего дня (бара) на линии регрессии. Таким образом, Y- Это предсказанная цена биткоина, которая должна была бы быть. Второй этап вычисления. Теперь у нас есть реальная цена биткоина на текущий день и предсказанная цена линией регрессии. Вычисляем отношение реальной цены к предсказанной и берем логарифм , полученнного значения. G=log10(Close/Y). Это значение рисуем в виде графика осциллятора мощности биткоина. Полученный осциллятор колеблется в постоянном диапазоне значений от -1 до +1.
Данный осциллятор четко отлавливает моменты разворота цены. На вершинах разворот происходит тогда, когда осциллятор достигает области значения от 0.6 до 0.8. В низинах разворот происходит в области значений от -0.8 до -0.4.
Настройка индикатора - описание кнопок сверху вниз.
1 ) Поднять график на Х единиц. Это корректирующий пункт для того, чтобы приподнять график выше/ниже относительно нулевой линии
2) Смещение начального дня истории. Первый день истории -это та точка оносительно которой вычисялются все линиии регрессии, всех баров. Эту точку можно немного подкорректировать, сместив начальный день влево на какое-то количество дней.
3) Кнопка переключения между разными способами вычисления смещения (A) в формуле Y=b*x + A.
4) Оранжевый уровень - это линия тренда исторических впадин осциллятора мощности. Оранжевый уровень это наклонный уровень разворота цены снизу вверх.
5) Зеленый уровень - это важная область вероятного разворота цены биткоина на вершинах.
6) Красный уровень -это горизонтальный уровень областей разворота цены снизу вверх.

Script protetto
Questo script è pubblicato con codice protetto, ma puoi comunque usarlo gratuitamente. Mettendolo tra i preferiti potrai applicarlo al grafico, senza però la possibilità di visualizzare o modificare il codice sorgente.
Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?