TradingView
LonesomeTheBlue
15 ott 2021 15:52

LibraryCheckNthBar 

Cardano / TetherUSBinance

Descrizione

Library "LibraryCheckNthBar"
TODO: add library description here

canwestart(UTC, prd) this function can be used if current bar is in last Nth bar
Parameters:
  • UTC: is UTC of the chart
  • prd: is the length of last Nth bar

Returns: true if the current bar is in N bar
Commenti
Kanefire
What does this indicator do?
LonesomeTheBlue
@Kanefire, this is library (Library feature just came with Pine version 5). using this library in your scripts you can get the info if the current bar is in last Nth bar. for example real-time bar number is 20000 and you want your script to start running on the bar 19900 (last 100 bar) then you can include this library and call the function as canwestart(your_UTC, 100), 100 means last 100.
so, these libraries are useful if you are a Pine programmer :)
Hutmacher42
Nice one!!!
Altro