PRTBANDSDOWN

Category: Indicators

PRTBANDSDOWN is a function in the ProBuilder language used to retrieve the lowest band of the PRT Bands, a technical indicator. This function is typically used in trading strategies to identify potential sell signals when the price of an asset crosses below this lower band.

Syntax:

PRTBandsDown

Example Usage:

The following example demonstrates how to use the PRTBANDSDOWN function to plot a downward arrow above a candlestick when the closing price crosses under the lowest band of the PRT Bands:


a = PRTBandsDown
if close crosses under a then
    drawarrowdown(barindex, high + averagetruerange[14] / 2) coloured(255,0,0)
endif

Explanation:

  • The variable a is assigned the value returned by PRTBandsDown, which represents the lowest band of the PRT Bands.
  • The if statement checks if the closing price of the asset crosses under the lowest band.
  • If the condition is true, a red downward arrow is drawn above the candlestick. The position of the arrow is determined by the bar index and a slight offset above the high price of the candlestick, calculated using half of the 14-period average true range.

This function is useful for traders who use channel-based trading strategies and want to automate the detection of potential breakout points on the lower side of a trading channel.

Related Instructions:

  • PRTBANDSMEDIUMTERM indicators
  • PRTBANDSSHORTTERM indicators
  • PRTBANDSUP indicators
  • Logo Logo
    Loading...