Support Board
Date/Time: Wed, 27 Nov 2024 10:42:04 +0000
[Programming Help] - Paint arrow on simple moving average crossover
View Count: 312
[2023-09-11 17:15:15] |
Alex C Demosthenes - Posts: 50 |
Hi - I have a 40sma on a chart and would like to paint an arrow above or below a candlestick that opens on one side of the SMA and closes on the other side. The upward arrow that I am trying to paint is not painting on my chart. I have added the Color Bar Based on Alert Condition study, and am using the Alert Condition: =CROSSOVER(SG1, C). I have the Color Bar Subgraph set to Arrow Up Settings & Inputs are set to Output When Condition True: Use Input Data and Input Data: Last. I also have the Study Subgraph Reference Value When True set to <Main Price Graph> High (SG2). |
[2023-09-11 18:37:31] |
John - SC Support - Posts: 36309 |
=CROSSOVER(SG1, C) Means that it is using the first subgraph from the "Color Bar Based on Alert Condition" study. You need to set this parameter as IDx.SGy where 'x' is the ID of the study that has the subgraph you want (the moving average in this case) and 'y' is the Subgraph number (should be 1 for a moving average study). 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: