PINE LIBRARY
Updated

Library

73
Library "Library"

Personal library that is used in indicators created by traderrick86.
Release Notes
v2

Added:
isUpBar()
  isUpBar
  Returns: Boolean: true if the current bar is up

isDownBar()
  isDownBar
  Returns: Boolean: true if the current bar is down

lowestOfOpenClose()
  lowestOfOpenClose
  Returns: float: the lower value between the bar's open and close prices

highestOfOpenClose()
  highestOfOpenClose
  Returns: float: the higher value between the bar's open and close prices

barRange()
  barRange
  Returns: float: the range of the bar calculated as the difference between high and low

Removed:
fun(x)
  TODO: add function description here
Release Notes
v3

Added:
avgBarRange(period)
  avgBarRange
  Parameters:
    period (int): int: Number of bars to use for calculating the simple moving average of the bar range.
  Returns: float: The average bar range, computed as ta.sma(barRange(), period)[1].
Release Notes
v4

Added:
upBar()
  upBar
  Returns: Boolean: true if the current bar is up

downBar()
  downBar
  Returns: Boolean: true if the current bar is down

smallBarRange(avgBarRange, factor)
  smallBarRange
  Parameters:
    avgBarRange (float): float: The average bar range.
    factor (float): float: The multiplier factor for a small bar.
  Returns: float: The computed small bar range.

bigBarRange(avgBarRange, factor)
  bigBarRange
  Parameters:
    avgBarRange (float): float: The average bar range.
    factor (float): float: The multiplier factor for a big bar.
  Returns: float: The computed big bar range.

smallBar(barRange, smallBarRange)
  notSmallBar
  Parameters:
    barRange (float): float: The current bar range, computed using barRange()
    smallBarRange (float): float: The computed small bar range value
  Returns: bool: true if the bar range is greater than the small bar range

bigBar(barRange, bigBarRange)
  bigBar
  Parameters:
    barRange (float): float: The current bar range, computed using barRange()
    bigBarRange (float): float: The computed big bar range value
  Returns: bool: true if the bar range is greater than or equal to the big bar range

Removed:
isUpBar()
  isUpBar

isDownBar()
  isDownBar
Release Notes
v5
Release Notes
v6

Added:
notSmallBar(barRange, smallBarRange)
  notSmallBar
  Parameters:
    barRange (float): float: The current bar range, computed using barRange()
    smallBarRange (float): float: The computed small bar range value
  Returns: bool: true if the bar range is greater than the small bar range

Removed:
smallBar(barRange, smallBarRange)
  notSmallBar

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.