Login Page - Create Account

Support Board


Date/Time: Tue, 18 Feb 2025 16:11:59 +0000



Post From: Color Bar Based on Alert error message

[2024-10-24 18:14:09]
User719512 - Posts: 298
How to prevent this message and/or write a formula that can lookback and compare previous bars?
I am guessing on bar index 0, it's looking for bar -1 and that is causing the below message in the message log.
Is there a way to reference "bar number > lookback period?"

This is a simpler version of a more complicated lookback formula I might want to use...thanks for taking a look.

Error: 
2024-10-24 11:00:00.624 | Chart #3 | Color Bar Based On Alert Condition ID: 0 SubGraphData Array0: Out of bounds array error at Index 0

Formula:
AND(ID6.SG1[-1]<ID6.SG2[-1],ID6.SG1[0]>=ID6.SG2[0])

ID6 is the MACD study