OPEN-SOURCE SCRIPT

Prometheus Oscillator

This oscillator is a tool meant to determine an up or down trend using a measure of volatility and what skews the market has.

Calculation
The first thing to do is normalize the price to have a 0 handle and be a decimal. The reason to do this is to get the 0 line for every asset.

After the source value has been normalized calculate standard deviation and skew.

Standard Deviation
To calculate standard deviation Prometheus uses Pinescript's built-in function.


Standard deviation is a decent and quick estimation of historical volatility over a period of time specified by the user.

Skew
Skew is calculated as follows:


Skew is a value used to determine how far on one side of a distribution a value is. When the market is aggressively moving higher the skew will be a bigger positive number. When it is moving lower, a negative number. When the values are small, still either positive or negative, is when the market is moving calmly in either direction.

Adding these two values together provides us with our oscillator.

Trade Examples
A simple way to use this tool is to use 0-line crosses as bullish or bearish alerts

https://www.tradingview.com/x/a9IcpnEY/

Step 1: Cross above 0 line, long alert. The price proceeds to move up.

Step 2: Cross below 0 line, short alert. The Price moves down.

Step 3: Cross above 0 line, long alert. The price chops then the price proceeds to move up.

0 line crosses can work but may not always be reliable.

https://www.tradingview.com/x/OGJGOBGI/

Step 1: Cross above 0 line, long alert. The price proceeds to move up.

Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, but then continues to sell off.

Step 3: Cross above 0 line, long alert. The price chops at the high and then reverses.

Step 4: Cross below 0 line, short alert. proceeds to move down.

Step 5: Cross above 0 line, long alert. The price proceeds to move up.

Not every alert will be perfect, we encourage traders to use tools as well as their own discretion.

Previous highs and lows may be a good tell if the alert will be true.

https://www.tradingview.com/x/DHv0OUY1/

Step 1: Cross above 0 line, long alert. The price proceeds to move up.

Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, false alert.

Step 3: Cross above 0 line, long alert. The price chops at the high and then moves up.

Step 4: Cross below 0 line, short alert. The price chops a lot with a false break to the upside, the oscillator itself does not move fast or high which could have been a sign it was false.

Step 5: Step 3's downtrend continues.

Step 6: Cross above the 0 line. A new up trend emerges.

The indicator has more than one use. Detecting false moves in a greater trend is advantageous to not get faked out.

https://www.tradingview.com/x/Ge69keu4/

Step 1: Price moves up, however, the oscillator does not break 0, and the trend remains bearish before a true break of 0 line and moves up.

Step 2: While the oscillator is below the 0 line the price moves up. The oscillator does not change its sign and the downtrend continues until a true break of 0 line and moves up.

Inputs:
Len: Lookback length for how many bars back to go to calculate the oscillator.

No indicator is 100% accurate, use them along with your own discretion.
Candlestick analysisCycles

Скрипт с открытым кодом

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

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


Мои профили:

Отказ от ответственности