Support Board
Date/Time: Mon, 25 Nov 2024 16:34:40 +0000
[User Discussion] - CBOAC: how to plot above high of previous bar?
View Count: 453
[2024-02-05 21:04:30] |
User656492 - Posts: 143 |
Hello! I'm trying to figure out how to use "Custom Output Value When True" to be the equivalent of h[-1]+ 1.00, which would allow me to place a star, dot, whatever, 1 point above the high of the previous bar. Is this possible to do using color bar based on alert condition? Thanks! |
[2024-02-06 03:03:37] |
User719512 - Posts: 264 |
Not with CBBOAC, but you can use Spreadsheet Formula study with =h[-1] as the formula to plot the high 1 bar ago. Use Study Subgraph Add on the Spreadsheet Formula study to add 1 to it.
|
[2024-02-06 04:50:24] |
Sawtooth - Posts: 4120 |
Use the Spreadsheet Formula study with this formula in its Formula field: =H[-1]+1 |
[2024-02-08 14:10:19] |
User656492 - Posts: 143 |
Actually, this. didn't work. I'm able to get the value of the high of previous bar, but I'm unable to plot above it. Using a Displacement of -1, I'm able to get the value displayed on the prior bar, but using offset, I'm unable to get that value displayed X ticks above that bar. Regardless of onset, it displays on the high of the previous bar.
|
[2024-02-08 14:38:07] |
Sawtooth - Posts: 4120 |
The attached pic uses this formula, =H[-1]+1, with a Displacement of -1 This plots a line 1 point above the previous High. Use this formula to reference ticks instead: =H[-1]+TICKSIZE*4 |
1 point above prev high.PNG / V - Attached On 2024-02-08 14:38:04 UTC - Size: 27.94 KB - 73 views |
[2024-02-16 14:14:23] |
User656492 - Posts: 143 |
Circling back to say thanks, Sawtooth! This is working as desired.
|
To post a message in this thread, you need to log in with your Sierra Chart account: