Login Page - Create Account

Support Board


Date/Time: Tue, 04 Nov 2025 11:54:08 +0000



[Programming Help] - Alert condition with TICKSIZE

View Count: 1208

[2019-07-09 04:53:46]
User354816 - Posts: 22
Hello,
I am trying to display a very simple background condition.
The condition is true, when the VPOC is on the second place compared to the high or low.
I used the formula OR(ID2.SG42=H - 1*TICKSIZE, ID2.SG42=L + 1*TICKSIZE)but it doesn´t seem to work ?!

Thank you for your help !

Best regards
Hauke
imageScreenshot_45.png / V - Attached On 2019-07-09 04:51:55 UTC - Size: 50.64 KB - 315 views
[2019-07-15 17:15:36]
User354816 - Posts: 22
second try to get an answer...

Hello,
I am trying to display a very simple background condition.
The condition is true, when the VPOC is on the second place compared to the high or low.
I used the formula OR(ID2.SG42=H - 1*TICKSIZE, ID2.SG42=L + 1*TICKSIZE)but it doesn´t seem to work ?!

Thank you for your help !

Best regards
Hauke
imageScreenshot_45.png / V - Attached On 2019-07-15 17:14:58 UTC - Size: 50.64 KB - 333 views
[2019-07-15 17:50:36]
Sawtooth - Posts: 4285
Try this:
- Set the 'Value Format' of the Numbers Bars Calculated Values study to 0.01
- Use this formula:
OR(
MROUND(ID2.SG42,TICKSIZE)=MROUND(H,TICKSIZE) - 1*TICKSIZE,
MROUND(ID2.SG42,TICKSIZE)=MROUND(L,TICKSIZE) + 1*TICKSIZE)

The Value Format setting allows the formula to see the price to the penny.
The MROUND function rounds prices to the ticksize, removing any floating point errors.
Date Time Of Last Edit: 2019-07-15 19:40:37

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account