# Technical Studies Reference

### Swing High and Low

This study marks Swing Highs and Swing Lows on the chart by placing an arrow above the chart bar for a Swing High and below the bar for a Swing Low.

A Swing High is when the bars on both sides of a bar have a lower high than that bar. The Length Input specifies how many bars on either side of the bar to compare to. By default this is 1. If it is set to 2, then 2 bars on either side of a bar would need to have a lower high for there to be a Swing High. If the Allow Equal High/Low Bars Input is set to Yes, then the bars on either side of a bar can have an equal high.

A Swing Low is when the bars on both sides of a bar have a higher low than that bar. The Length Input specifies how many bars on either side of the bar to compare to. By default this is 1. If it is set to 2, then 2 bars on either side of a bar would need to have a higher low for there to be a Swing Low. If the Allow Equal High/Low Bars Input is set to Yes, then the bars on either side of a bar can have an equal low.

This study has a dependency upon the Price Display Format / Value Format for the main price graph in the in the chart for it to work properly. Therefore, the setting must be correct. The Price Display Format is set through Chart >> Chart Settings.

In the case where a study is set to display as the main price graph, then you need to adjust the Value Format for that study and this is set through the Study Settings window for that study.

A Swing High or Swing Low will never be identified on the last bar in the chart because it is not possible to determine that. Also, the most recent Swing High or Swing Low could change as the latest bar in the chart changes.

#### Inputs

• Arrow Offset as Percentage: This specifies the offset as a percentage that the arrows should be placed away from the High or Low of a bar. The offset is calculated by taking the range of the bar and multiplying it by the percentage.
• Length: The Length Input specifies the the number of bars to the left and to the right of a bar, not including the bar itself, to look for Swing High or Low patterns. The pattern must exist both to the left and to the right for the specified number of bars in order for there to be a detected Swing High or Low. For more details, refer to the description above.
• Allow Equal High/Low Bars: When this Input is set to Yes, then the bars on either side of a bar can have an equal High or Low for the pattern to be considered a Swing High or Low.
• Extend Swings Until Future Intersection: When this Input is set to Yes, then where there is the detection of a swing high or low, then from that high or low, a line will extend until it intersects with future price bars. The Line Properties Subgraph sets the color, style and with of that line.

When this Input is set to No, these line extensions are not drawn.