thorsten_kanarski

Useful_lib_public

Library "Useful_lib_public"
Useful functions

CountBarsOfDay()
  count bars for one for the diffrent time frames
  Returns: number of bars for one day

LastBarsOfDay()
  Index number for the las bar for one day
  Returns: TRUE is that the last bar from day

isTuesday()
  TRUE is tuesday
  Returns: TRUE is tuesday else FALSE

Rsi(src, len)
  RSI calulation
  Parameters:
    src (float): RSI Source
    len (simple int): RSI Length
  Returns: RSI Value

CalcIndex(netPos, weeks)
  Index calulation
  Parameters:
    netPos (float): Source
    weeks (simple int): Length
  Returns: "COT Index"

RsiStock(src, len, smoothK)
  TRUE is tuesday
  Parameters:
    src (float)
    len (simple int)
    smoothK (int)
  Returns: RSI Stochastik

Offset()
  Use Offset for Day time frame
  Returns: Offset

PercentChange(Data, LastData)
  Calc different in Percent
  Parameters:
    Data (float)
    LastData (float)
  Returns: Change in percent
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

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.

Want to use this library?

Copy the following line and paste it in your script.