The KeltnerBandUp function in ProBuilder language is used to calculate the upper line of the Keltner Channel, a popular technical analysis indicator. The Keltner Channel consists of three lines: a middle line which is a moving average of the typical price, and two outer bands (upper and lower) which are based on the average true range.
Syntax:
KeltnerBandUp[period]
Where period specifies the number of days over which the calculations are performed.
Calculation Details:
- The middle line is calculated as a simple moving average (SMA) of the typical price over the specified period. The typical price for each day is the average of the high, low, and close prices: (high + low + close) / 3.
- The upper line, which this function calculates, is derived by adding the SMA of the daily range (high – low) to the middle line. This addition adjusts the channel width based on the daily price volatility.
Example Usage:
myUpperKeltner = KeltnerBandUp[14]
This example calculates the upper line of the Keltner Channel using a 14-day period for both the moving average of the typical price and the average true range.
Additional Information:
The Keltner Channel is useful for identifying potential breakout points. If the price moves above the upper line, it may indicate a bullish trend, while a move below the lower line might suggest a bearish trend. However, it’s important to use this indicator in conjunction with other tools and analysis to confirm trends and signals.