TradingView
alexgrover
15 juil. 2022 01:56

Andean Oscillator 

Bitcoin all time history indexINDEX

Description

The following script is an original creation originally posted on the blog section of the broker Alpaca.

The proposed indicator aims to measure the degree of variations of individual up-trends and down-trends in the price, thus allowing to highlight the direction and amplitude of a current trend.

Settings

  • Length : Determines the significance of the trends degree of variations measured by the indicator.
  • Signal Length : Moving average period of the signal line.


Usage



The Andean Oscillator can return multiple information to the user, with its core interpretation revolving around the bull and bear components.

A rising bull component (in green) indicates the presence of bullish price variations while a rising bear component (in red) indicates the presence of bearish price variations.

When the bull component is over the bear component market is up-trending, and the user can expect new higher highs. When the bear component is over the bull component market is down-trending, and the user can expect new lower lows.

The signal line (in orange) allows a more developed interpretation of the indicator and can be used in several ways.

It is possible to use it to filter out potential false signals given by the crosses between the bullish and bearish components. As such the user might want to enter a position once the bullish or bearish component crosses over the signal line instead.

Details

Measuring the degree of variations of trends in the price by their direction (up-trend/down-trend) can be done in several way.
The approach taken by the proposed indicator makes use of exponential envelopes and the naive computation of standard deviation.

First, exponential envelopes are obtained from both the regular prices and squared prices, thus giving two upper extremities, and two lower extremities.

The bullish component is obtained by first subtracting the upper extremity of the squared prices with the squared upper extremity of regular prices, the square root is then applied to this result.

The bearish component is obtained in the same way, but makes use of the lower extremities of the exponential envelopes.
Commentaires
PineCoders
LucF
Great stuff dear Wizard, as usual.
Onofrelio
What time period do you recommend?
And in which markets are they quite useful? THANK YOU!
paramasivan200567
@Onofrelio, any time period
Sukolvka
After a short time testing this out I noticed three things.
1. If neither line is above the signal line then it could be a choppy market.
2. If one line is almost on top of the signal line or barely above it then it could also be chop and sometimes it lasts a little while. Waiting until it is clearly above the signal line might work better.
3. If a position is taken and the bull/bear line goes below the signal line then it could be used as an exit. However it could also mean the market is going to have a bit of chop or slight retracement before continuing if the opposite line doesn't cross above the signal line.

So far it looks phenomenal
Sukolvka
Oh I forgot to add, if in a position and the line stacks on top of the signal line then it can be an exit or everything else I listed in point 3 of my previous comment.
Plus