Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 22:01:34 +0000



Post From: Persistent and Incrementing Variables

[2023-03-08 13:01:19]
Sawtooth - Posts: 3976
can these two formulas be translated using ID1.SG1 notation?
Yes.

Buy bar count:
=IF(SellAlert[0], 0,IF(OR(BuyAlert[0], ID1.SG1[-1] > 0), ID1.SG1[-1] + 1, ID1.SG1[-1]))
where ID1 is this Spreadsheet Formula study.

Sell bar count:
=IF(BuyAlert[0], 0,IF(OR(SellAlert[0], ID2.SG1[-1] > 0), ID2.SG1[-1] + 1, ID2.SG1[-1]))
where ID2 is this Spreadsheet Formula study.
Date Time Of Last Edit: 2023-03-08 15:59:24