Laabh
BlogPricing
AlgoCodeDocumentation

Get started

  • Overview
  • Deploy a live script

Dovee

  • Language
  • Function reference

Live trading

  • Risk & exits
  • Examples
All documentation

Documentation/AlgoCode/Function reference

barssince

Bars since the condition was last true.

Reference/Math & comparisons/Function

barssince(condition)

0 on the bar it fires, then 1, 2, … until it fires again. na until the first true.

Parameters

NameTypeDescription
conditionbooleanA when-style condition or a series.

Return value

series

For developers
  • Pine ta.barssince / MQL5 BarsSince.

Example

plot barssince(rsi(14) is below 30) as "Since OS"

See also

  • abs
  • max
  • min
  • round
  • floor
  • ceil
  • sqrt
  • log
← replaceMissinghighest →
Laabh

Advanced algorithmic trading platform for the crypto market.

Product

  • Features
  • Pricing
  • API
  • Documentation

Company

  • About
  • Blog
  • Careers
  • Contact

Email: info@seeventicks.com

Address: 1057, sector-65, Faridabad

Subscribe

Get the latest news and updates from Laabh.

© 2026 Laabh. All rights reserved.

Privacy policyTerms of service