PINE LIBRARY

PubLibSwing

Library "PubLibSwing"
swing high and swing low conditions, prices, bar indices and range ratios for indicator and strategy development

sh()
  swing high condition
  Returns: bool

sl()
  swing low condition
  Returns: bool

shbi(occ)
  swing high bar index, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: int

slbi(occ)
  swing low bar index, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: int

shcp(occ)
  swing high close price, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float

slcp(occ)
  swing low close price, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float

shp(occ)
  swing high price, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float

slp(occ)
  swing low price, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float

shpbi(occ)
  swing high price bar index, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: int

slpbi(occ)
  swing low price bar index, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: int

shrr(occ)
  swing high range ratio, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float

slrr(occ)
  swing low range ratio, condition occurrence n
  Parameters:
    occ (simple int)
  Returns: float
statisticsstrategiestechindicator

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码发布为开源脚本库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。

免责声明