Login Page - Create Account

Support Board


Date/Time: Sat, 30 Nov 2024 01:53:30 +0000



Post From: formule divergence

[2023-01-06 17:13:01]
John - SC Support - Posts: 36350
From Google Translate:
I use the footprint in tick reversal, and I would like to show a bearish divergence when the bar is higher than the previous one but the volume is lower, and vice versa.

I put a formula in the "alert" part of "color bar based on alert condition", but I don't have to do it right, it doesn't always work

Here is the formula I put: =if(and(H>H[-1],ID1.SG1<>0,ID1.SG1=(H-ticksize)),1,0)

What study is ID1?

Also, since this is going into an Alert, you do not need the IF statement. The Alerts are always evaluated as True/False statements where 0 is false and any other value is true. So you could simplify it a bit by removing the IF portion and just having the following:
=and(H>H[-1],ID1.SG1<>0,ID1.SG1=(H-ticksize))
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing