Support Board
Date/Time: Tue, 26 Nov 2024 00:30:06 +0000
[Programming Help] - Hull moving average to change color based on slope
View Count: 1781
[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 |
[2019-11-14 16:56:04] |
Ackin - Posts: 1865 |
tomgilb wrote How, Look at: HULL-ALERTS | Post: 197476 Date Time Of Last Edit: 2019-11-14 16:56:53
|
[2024-01-19 17:27:17] |
User415649 - Posts: 9 |
I tried this, it didn't work for me. The whole chart would turn into to one thin line, candles and all.
|
[2024-01-19 18:04:12] |
John - SC Support - Posts: 36286 |
In general, refer to the following: Chart Studies: Preventing Study From Compressing Main Price Graph But it doesn't make any sense how the "Moving Average - Hull" can cause this, given that it should not have a very different range of prices. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: