Technical Studies Reference
The Auto Retracement/Projection study automatically calculates and displays retracement or projection lines based upon the High to Low price range for the specified time period.
The time period is set with the Time Period Unit and the Time Period Unit Length Inputs.
For each bar in the chart, the High and Low for the specified time period is determined up to that bar and not beyond, and the percentages specified with the Level 1-14 Percentage Inputs are used to calculate the retracement/projection lines for that bar.
When the Calculation Method is Retracement and the High is the reference value, controlled by the Calculation Reference Value Input, each of the percentages are multiplied by the High to Low price range and added to the Low to create the retracement levels.
When the Calculation Method is Retracement and the Low is the reference value, controlled by the Calculation Reference Value Input, each of the percentages are multiplied by the High to Low price range and subtracted from the High to create the retracement levels.
As the High to Low price range changes for the time period, then the retracement/projection levels will also change because the price range is changing.
When the Calculation Reference Value Input is set to Automatic, then in the case of either a Retracement or Projection calculation, the study looks at the opening price for the time period and compares it to the closing price of a bar to know whether the Retracement or Projection lines should be calculated from the High or the Low price.
In the case when prices are declining and the Calculation Method is Retracement, then the Retracement lines are calculated from the Low of the period. In the case when prices are rising and the Calculation Method is Retracement, then the Retracement lines are calculated from the High of the period.
When the Calculation Reference Value Input is set to Automatic, then during the time period for which the Retracement/Projection lines are for, if there is a change with the relationship between the Open price for the time period and the current Close/Last price at a bar, then this will cause at that bar a reversal of the calculations which are described in the prior paragraph.
For example, the Close was previously above the Open, but on the bar currently being calculated it is below the Open. This will cause a reversal of the calculation.
- Time Period Unit
- Time Period Unit Length
- Calculation Method: This Input sets the calculation method. This can either be Projection or Retracement.
- Level 1-14 Percentage: This Input specifies the percentages for the Retracement/Projection lines. .01 equals 1%.
- Calculation Reference Value: This sets the reference level for the retracement/projection line calculations to be either Automatic, or specifically from the High or the Low for the specified time period.
- New Period at Day Session Start When Using Evening Session: When this Input is set to Yes and Evening Session Times are defined in the Session Times, then the calculation will reset and there will be a new period at the beginning of the evening session. This only applies to Intraday charts.
- Round to Nearest Tick Size: When this Input is set to Yes, then the retracement/projection levels are rounded to the Tick Size setting in Chart Settings.
- Reference Single Subgraph: This Input is used when the Auto Retracement/Projection study is set to be Based On a study other than the main price graph. In this particular case, when this Input is set to Yes, then the first Subgraph that Auto Retracement/Projection study is set to be based on, will be used. This is necessary for this study to function properly.
When the Auto Retracement/Projection study is based on another study and that study has not set values in its Subgraph at each chart bar and those Subgraph values are at a zero value, then this will affect the output of Auto Retracement/Projection study at those chart bars causing it to display invalid values. While this is not the most ideal solution for this kind of condition, the solution to this is to set the Scale Range for the Auto Retracement/Projection study to Same as Region to prevent those invalid values from affecting the display of the study.
*Last modified Saturday, 26th August, 2017.