Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 05:34:18 +0000



Horizontal Line at Time

View Count: 341

[2023-02-28 02:31:28]
fish4trout - Posts: 99
I have several times marked on my chart. However, when I scroll back let's say to the day prior, I don't want these to be plotted looking back. So I only want them plotted for the current time and then extended into future by 24 hours. Is it possible to only plot them from current and forward 24 hours?
[2023-02-28 16:25:33]
John - SC Support - Posts: 36350
You could use a Color Bar Based on Alert Condition to check whether a bar is part of the current date and then set the color to what you want, and set it to the background color otherwise. Refer to the following:
Color Bar Based on Alert Condition


Or you could use the Spreadsheet Study and do the same thing by only displaying the data for the current using an IF statement. Refer to the following:
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#IF_Function

Spreadsheet Functions: Serial DateTime Values
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-02-28 16:36:22]
John - SC Support - Posts: 36350
You could use a Color Bar Based on Alert Condition to check whether a bar is part of the current date and then set the color to what you want, and set it to the background color otherwise. Refer to the following:
Color Bar Based on Alert Condition


Or you could use the Spreadsheet Study and do the same thing by only displaying the data for the current using an IF statement. Refer to the following:
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#IF_Function

Spreadsheet Functions: Serial DateTime Values


Or you could modify the source code so it only calculates the lines for today. Refer to the following:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-01 00:28:29]
fish4trout - Posts: 99
OK thanks, I'll give those suggestions a try!

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account