Support Board
Date/Time: Sun, 05 Jan 2025 23:44:55 +0000
[User Discussion] - How to draw line connect every peak of slope
View Count: 152
[2024-12-13 08:31:01] |
User874889 - Posts: 4 |
When i use color bar base on slope i have chart like this, my input data is High of candle. Now i want to draw line connect every peak of slope look like attach image. How can I do this? After that, i can do this for Low of candle input data, right? |
high peak of slope example.png / V - Attached On 2024-12-13 08:30:33 UTC - Size: 40.72 KB - 38 views |
[2024-12-13 14:22:34] |
John - SC Support - Posts: 36980 |
What you are asking for is not straightforward. You would need to use the Spreadsheet Study to do this, but it gets complicated, as you need to find the beginning and end of where you want the line and then calculate the data points in between. We are not able to come up with a quick solution to this, so it is not something we can help with.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-12-13 15:03:11] |
Sawtooth - Posts: 4145 |
i want to draw line connect every peak of slope look like attach image.
If you want a line connecting every High, you don't need to reference the Color Bar Based On Slope study.Use the Spreadsheet Formula study, with this formula in its Formula field: =H (Set the Chart Region to 1) You could color the line based on slope on the Subgraphs tab >> Auto-Coloring >> Based On Slope. Add another instance of the Spreadsheet Formula study for the Low. Date Time Of Last Edit: 2024-12-13 15:04:15
|
[2024-12-13 22:31:53] |
User719512 - Posts: 285 |
If I understand your problem statement correctly, you want to connect all the Color Bar Based on Slope changes using High for input value. If this is correct, then set that study to output +1 or -1 for the slope. Use a spreadsheet formula to detect changes: AND(ID1.SG1[0]=-1,ID1.SG1[-1]<>-1)
(current bar is -1 and previous bar is not -1)Use Color Bar Based on Alert Condition (CBBOAC) to convert this signals (non-zero values) to High price by alerting on ID4.SG1<>0
Output When Condition True | Use Input Data, and Input Data | High Similar process for the Low. AND(ID2.SG1[0]=1,ID2.SG1[-1]<>1)
(current bar is 1 and previous bar is not 1)You can also signal on any change and use HL Avg with: OR(AND(ID2.SG1[0]=1,ID2.SG1[-1]<>1),AND(ID1.SG1[0]=-1,ID1.SG1[-1]<>-1))
and use similar CBBOAC condition as above.Use Color Bar Based on Alert Condition (CBBOAC) to convert the signals (non-zero values) to HL Avg price by alerting on ID5.SG1<>0
Pretty straightforward if you process each step in the workflow and generate signals, convert signal to something consumable, plot the converted signals. |
SierraSlopeChanges.png / V - Attached On 2024-12-13 22:22:19 UTC - Size: 104.17 KB - 21 views |
To post a message in this thread, you need to log in with your Sierra Chart account: