Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 13:06:37 +0000



Post From: how to re-color every x bars?

[2020-11-26 16:40:05]
Sawtooth - Posts: 3993
Is there a way to put an arrow on every nth bar?
Try this:

Add the Bar Numbering study, and set the 'Number Every N Bars' to 1, and Hide this study.

Add the Spreadsheet Formula study, use a formula like this in the Formula field, and Hide this study:
=FLOOR(ID1.SG1,10)
-where the Bar Numbering study is ID1; edit as needed.
This numbers every 10th bar; edit formula as needed.

Add the Color Bar Based On Alert Condition study, and use a formula like this on the Alerts tab:
=ID2.SG1<>ID2.SG1[-1]
-where the Spreadsheet Formula study is ID2; edit as needed.
To place an arrow instead of coloring the bar, follow these instructions:
Color Bar Based on Alert Condition: Drawing Arrows/Text or Other Styles at the High or Low of Bars
Date Time Of Last Edit: 2020-11-26 16:41:52