Login Page - Create Account

Technical Studies Reference


Automatic Trendlines


Description

This study will draw a line along the highs and a line along the lows over the Length bars at the end of the chart.

Inputs

  • Length: The number of bars at the end of the chart for this study to look at to identify the Highs and Lows to draw the Trendlines along.
  • Skip Last N Bars: The number of bars from the end of the chart that are ignored. If this is set to 2 and the Length is set to 50, then the study will look back 50 bars starting from the third bar at the end of the chart. The third bar will also be included.
  • Show Up Trendline: If this is set to Yes, the Up Line will be displayed.
  • Show Down Tendline: If this is set to Yes, the Down Line will be displayed.
  • Number of New Bars Before Auto-Adjustment: If this is set to 0, the Lines will automatically readjust at every chart update. If it is set to a number greater than 0, then the Lines will only readjust after the specified number of new bars are added to the chart.
  • Forward Project Automatic Trendlines: When this is set to Yes, then the trendlines will be drawn into the Forward Projection Area, otherwise, they will only be drawn to the last bar in the chart.
  • Input Data High: This specifies the data that is to be used as the High values for the calculation of the Automatic Trendlines.
  • Input Data Low: This specifies the data that is to be used as the Low values for the calculations of the Automatic Trendlines.
  • Ignore Zero Values: When this Input is set to Yes then if the data for the Input Data Low contains zero values, those zero values will be ignored in the calculation of the Up Trendline. Otherwise when this Input is set to No, any zero values will be included in the calculation for the Up Trendline.

Basing Automatic Trendlines on a Study

It is possible to create trendlines for a study rather than the Main Price Graph. To do this, follow these instructions:

  1. Add the study to the chart for which the Automatic Trendlines will be based.
  2. Add the Automatic Trendlines study to the Chart. Go to the Settings for the Automatic Trendlines
  3. Set the Based On Input to the study for which the Automatic Trendlines will be created.
  4. Set the Input Data High and the Input Data Low to the appropriate Subgraphs of the study which the Automatic Trendlines is based. These Inputs can be set to the same value if there is not separate High and Low data.
  5. If the study that the Automatic Trendlines will be based on contains non-continuous data (there is not data at every bar) or if the data contains zero values that should be ignored, then set the Input for Ignore Zero Values to Yes.

*Last modified Wednesday, 08th May, 2024.