Support Board
Date/Time: Sun, 15 Jun 2025 07:02:46 +0000
Vol by Price & Price Threshold v2 Studies
View Count: 234
[2025-05-29 02:41:24] |
Crtfyd - Posts: 287 |
I have used simple programming for a while, but cant figure out why I cant get my parameters to work now. I want to identify on my Range=2 bar chart when all three price levels are Bid dominant (I will do Ask dominant too) So I set up the following on my Range = 2 chart. I have Vol by Price study. I have Vol by Threshold Alert V2 set at "Ask Vol Bid Vol Difference", and the Volume Threshold set to "-1" As a visual, this identifies the levels correctly that are Bid Dominant with a Price Bar Dash. As I mentioned I want an Alert when all three Price levels are Bid Dominate. So I added a "Color Bar based on Alert Condition" I wrote the Alert Condition as follows: (Whereas the Threshold Alert is "ID3.SG1" =AND( L = ID3.SG1 , L+.25 = ID3.SG1 , H = ID3.SG1 ) But my arrows don't come up correctly, or at all! If I just put =AND( L = ID3.SG1), the arrow comes up correctly when the Low is Bid dominant. When I just put =AND( H = ID3.SG1) , No arrows come up at all. (btw=arrows denote when alert is true in my case) When I just put =AND( ID1.SG2 = ID3.SG1 ) (where ID1.sg2 is the POC of the Vol at Price) the arrow comes up correct on a POC Bid dominate price. If I combine any of them, no arrow! It seems pretty easy simple programing Im using. I check for commas,not periods, syntax errors, etc. Why does combined, and some parameters work, but not others? I cant find any consistent reason. If L=ID3.SG1, why wouldn't H=ID3.SG1 when both are Bid dominant? I don't know if there's a problem with the study, or a problem with me understanding the alert. Since Ive done plenty of them, it must be something simple I'm missing. It cant be that calling out the same Volume Alert several times in the Alert Condition is a problem, because using one parameter of the High didnt work either. What could it be, its just 3 studies being addressed. Thx |
[2025-05-29 08:14:11] |
User431178 - Posts: 711 |
So I added a "Color Bar based on Alert Condition" I wrote the Alert Condition as follows: (Whereas the Threshold Alert is "ID3.SG1" .... I cant find any consistent reason. If L=ID3.SG1, why wouldn't H=ID3.SG1 when both are Bid dominant? Change this: =AND( L = ID3.SG1 , L+.25 = ID3.SG1 , H = ID3.SG1 )
To this: =AND( L = ID3.SG1 , L+.25 = ID3.SG2 , H = ID3.SG3 )
Or this: =AND( L = ID3.SG1 , L+TICKSIZE = ID3.SG2 , H = ID3.SG3 )
Vol by Threshold Alert V2 outputs to subgraph for each price level where condition is met, starting from the bottom of the bar. If all three price levels in your bar are dominant, then the first three subgraphs will be used. Low >>> ID3.SG1 Mid >>> ID3.SG2 High >>> ID3.SG3 In your original comparison you are effectively writing this: =AND( L = L , L+.25 = L , H = L )
Now knowing how the output from Vol by Threshold Alert V2 works and knowing that you only have three price levels in your bar, you can simplify the alert to: =AND(ID3.SG1,ID3.SG2,ID3.SG3)
Which will alert when the first three subgraphs of Vol by Threshold Alert V2 are non-zero. |
[2025-05-29 19:29:42] |
Crtfyd - Posts: 287 |
Perfect! Yes, Thank you for your help. Much appreciated! |
To post a message in this thread, you need to log in with your Sierra Chart account: