Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 07:58:45 +0000



Post From: Hull moving average to change color based on slope

[2019-11-14 15:34:10]
Larsyy - Posts: 1
Hi,

Trying to have the hull change colors when bullish (green) vs. bearish (red). From what I get, I would use the Color Bar Based on Alert Condition study.

I used formula #8 from the list of alert formula examples on Study/Chart Alerts And Scanning: Alert Formula Examples

I added the Id number of my hull study (6) so the formula came out as follows: =OR(AND(ID6.SG1[0] > ID6.SG1[-1],ID6.SG1[-1] < ID6.SG1[-2]), AND(ID6.SG1[0] < ID6.SG1[-1],ID6.SG1[-1] > ID6.SG1[-2]))

Finally, I changed the draw style of SG1 to Line-skip Zeros to no avail.

Thanks

http://www.sierrachart.com/image.php?Image=1573745504544.png