OPEN-SOURCE SCRIPT

|AG| Previous Analysis

Updated
█ OVERVIEW

Analysis of previous levels is one of the best strategies in order to get good entries or take profits levels. This analysis involves Monthly and Weekly Previous Levels and One User Definition Option. So u could select any period like Daily or even hours according to ur trading style. The previous levels are High and Low. And the Current (NOT PREVIOUS) open level.

This script also includes one Fibonacci Selector that will calculate the Fibbo level between previous High and Low Levels of the user selection. Almost everything could be modified in the input panel.

Input Options
A detailed explanation of input settings:
 • # Of Previous
   • This option leads us to select the number of previous weeks, months, or the user selection back.
      • Example: If we select Previous High, Low WEEKLY so if # Of previous is one is going to be the past levels but if is 2 so consequently 2 previous levels.
      • In the case of 0 is going to be the actual levels
 • Fibbo & Label Selector
  Here we can select the period.
   • Monthly, Weekly, And User Definition is available.
      • Fibonacci Selector :
      • Here we could choose between different levels of Fibonacci or No_Plot Option
 • Label Offset
      • Here we select the amount of distance between label and actual price
 • Time Start
      • Here we could highlight one period START and END like one Week start day and end day.
      • User Definition Value in order to be more flexible.

Interesting Code Lines:
 • Fibonacci function



 • Exact Distance and % Distance
Release Notes
-> Adding new Fibonacci Levels that could be used as entries or targets
previoushighlowpreviousstructureTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer