Support Board
Date/Time: Sat, 23 Nov 2024 19:16:11 +0000
[Programming Help] - Open/Close is above POC Alert
View Count: 214
[2024-07-30 23:48:14] |
hdanng221 - Posts: 6 |
Hi, I wish I was better at coding. But I'm interested in using the Color Background Based on Alert Condition to give me an alert when the bar's Open/Close is greater than the POC and vice versa. I'm using Number Bars as well. Appreciate it. Thanks, Huy |
[2024-07-31 01:17:25] |
TriStar Trading - Posts: 142 |
I tried using SG2 of the numbers bars study but no luck. So, add the SC Volume Point of Control for Bars. SG1 is the subraph for the POC. Close GT POC -> =C>IDnn.SG1 (substitute your study number for nn) Open GT POC -> =O>IDnn.SG1 (substitute your study number for nn) Close LT POC -> =C<IDnn.SG1 (substitute your study number for nn) Open LT POC -> =O<IDnn.SG1 (substitute your study number for nn) Ask if questions or if it doesn't work. |
[2024-07-31 01:17:26] |
TriStar Trading - Posts: 142 |
I tried using SG2 of the numbers bars study but no luck. So, add the SC Volume Point of Control for Bars. SG1 is the subraph for the POC. If you want different alerts for each item you will need four studies. If you just want a GT and LT alert you combine the groups of statements with an OR statement. Formulas start with the "=" sign. Close GT POC -> =C>IDnn.SG1 (substitute your study number for nn) Open GT POC -> =O>IDnn.SG1 (substitute your study number for nn) Close LT POC -> =C<IDnn.SG1 (substitute your study number for nn) Open LT POC -> =O<IDnn.SG1 (substitute your study number for nn) Ask if questions or if it doesn't work. Date Time Of Last Edit: 2024-07-31 01:30:23
|
[2024-07-31 01:32:23] |
hdanng221 - Posts: 6 |
Thanks for the reply. But maybe I should be more clear with what I'm looking for. See attached. I'm using footprint(Number Bars) and I would like to set a bar alert condition when a green bar opens/closes above the POC and vice versa. |
Attachment Deleted. Screenshot 2024-07-30 212615.png / V - Attached On 2024-07-31 01:31:16 UTC - Size: 46.61 KB - 44 views |
[2024-07-31 02:26:17] |
TriStar Trading - Posts: 142 |
The more I think about it, a bar cannot open above the POC because on the opening tick it is the POC. So you can really only deal with closes above/below the POC. Even though the numbers bars are being used, I did not see a way to access the POC value from the numbers bar study. That's why I thought to use the SC Volume Point of Control for Bars. I have done this in the past. You could use the numbers bars calculated values study but I think there is more overhead in that study. Do you want know if, at close, the POC is above/below the Open? Otherwise the close being GT or LT the POC is relatively straightforward. Maybe we need to determine the conditions first? POC GT Open? POC LT Open? Close(Last) GT POC? Close(last) LT POC? How did I do? |
[2024-07-31 08:13:43] |
User431178 - Posts: 541 |
I'm using footprint(Number Bars) and I would like to set a bar alert condition when a green bar opens/closes above the POC and vice versa. Example attached. |
OCabPOC.Cht - Attached On 2024-07-31 08:13:39 UTC - Size: 5.11 KB - 127 views |
[2024-07-31 14:16:09] |
hdanng221 - Posts: 6 |
Amazing!! Thank you kind sir!
|
To post a message in this thread, you need to log in with your Sierra Chart account: