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 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항