Support Board
Date/Time: Fri, 07 Feb 2025 15:07:28 +0000
Reflecting Higher Time Frame MA Colors on Lower Time Frame Waves
View Count: 128
[2024-11-07 21:05:35] |
User871209 - Posts: 91 |
Hello, I would like to apply the slope color of a moving average (MA) from a higher time frame to a 34-period MA wave on a lower time frame (using the Study Price Overlay). My question is: How can I make the 34-period MA on the lower time frame reflect the color of the higher time frame's MA? Picture Attached. Any thoughts? Thanks, |
[2024-11-07 21:23:30] |
John - SC Support - Posts: 37808 |
To do this you would need to do the following: - On the Higher Time Frame chart use a Spreadsheet Study or a Spreadsheet Formula in order to calculate the Slope of the line at each bar. To do this, just take the difference between the value of the Moving Average at the current bar minus the value at the previous bar. This gives the slope since the bar step increment is a value of 1. - Overlay that Slope data for each bar to the lower timeframe chart using the Study/Price Overlay. - Use the Color Bar Based on Alert Condition study to color the Moving Average in the lower time frame when the slope is negative. Your Alert Condition would look like the following: =ID1.SG1 < 0 Where ID1 is the Study/Price Overlay and SG1 is the first subgraph from that overlay. Refer to the following: Working with Spreadsheets Study/Price Overlay Study Color Bar Based on Alert Condition 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: