Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 23:38:32 +0000



Barssince Function in Alert Condition Formula

View Count: 1617

[2019-03-03 20:30:57]
jayn1321 - Posts: 4
I'm wondering if there is a "barssince" function, similar to TradingView, where you can get a count of the number of bars/candles since a condition was true.

Sorry in advance if I missed it within the help sections.

Jay
[2019-03-06 23:11:31]
Sierra Chart Engineering - Posts: 104368
This can be done by using the Spreadsheet Study:
Overview of Spreadsheet Studies

And specifically refer to:
Spreadsheet Example Formulas and Usage: Formula to Count Bars Since An Event
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account