VanHe1sing

Price Sextant

VanHe1sing Updated   
The provided Pine Script™ code is for a technical analysis indicator called "Price Sextant." This indicator helps visualize the price position relative to its linear regression and standard deviation levels. Here's a brief description:


Price Sextant Indicator:

  • Purpose:
    The Price Sextant indicator aims to show the current price's deviation from the linear regression line by dividing the price chart into different zones or sextants.

    Components:
  • Linear Regression: The script calculates a linear regression line based on the closing prices over a specified length (default is 50 bars).

  • Standard Deviation Sections: It then computes standard deviation levels from the linear regression, creating upper and lower sections around the regression line.

  • Scoring: Each section is assigned a numerical score, and labels with corresponding scores are displayed on the chart.

  • Arrow and Midline: An arrow is drawn to indicate the current price's position in relation to the regression line and standard deviation bands. It changes color based in what section it is:
    orange section shows a ranging price, below orange section -1 arrow turns red and show down trend and if arrow above +1 section it turns green and show strong up trend of price.
    A midline is plotted to mark the position of the linear regression line.

Sextant Description:
In navigation, a sextant is an instrument used to measure the angle between two visible objects.
In the context of this indicator, the term "Sextant" is likely used metaphorically to describe the division of the price chart into six sections or zones based on the linear regression and standard deviation bands.

This indicator can help traders identify potential overbought or oversold conditions, as well as assess the strength and direction of the trend.


Please note that the effectiveness of the indicator depends on various factors, and it's advisable to use it in conjunction with other analysis tools for a comprehensive trading strategy.
Release Notes:
+ Bar Color
Release Notes:
Update of chart
Release Notes:
Visual Update


Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?