Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 10:57:44 +0000



How to Display Activity Between Session Times?

View Count: 401

[2023-04-29 14:59:28]
User688525 - Posts: 259
Hello Sierra Chart,
I am trying to achieve the following on a regular intraday candlestick chart. Note, I use the same chart to switch between RTH and Full (RTH + Evening) sessions:
1. Use a Cash/RTH session time of 09:30:00-15:59:59
2. Use an Evening session time of 18:00:00-09:30:00
3. Display activity that occurs between 16:00:00-17:59:59

Currently, due to the Cash/RTH and Evening session times above, activity between 16:00:00-17:59:59 isn’t displayed.

There are two reasons why I’m not specifying an Evening session start time of 16:00:00:
1. I have multiple studies on the chart that I require to only calculate based on a Cash/RTH time of 09:30:00-15:59:59.
2. When setting a bar period to a higher time frame such as 4hr, I require the bar to start at 18:00:00 (“New Bar At Session Start” is set to “No”). The above achieves this, however, if using a 4hr bar, then any activity from 16:00:00-17:59:59 is not displayed in the final 4hr bar that begins at 14:00, i.e., the final 4hr bar is incomplete.

I understand that I could create separate charts based on the different time frames, with Chart 1 configured as 09:30:00-15:59:59 with “Use Evening Session” set to “No”, and Chart 2 configured as 09:30:00-16:59:59 with the Evening session configured as 18:00:00-09:30:00, however, I would like to avoid creating and managing an additional chart.

Thank you
[2023-05-01 15:40:13]
John - SC Support - Posts: 36350
There is no built-in solution to what you are wanting to do, given the parameters you have put on it. You would have to use separate charts.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-01 21:34:13]
User688525 - Posts: 259
Hi John,
Ok, thank you for confirming.
[2023-05-02 08:32:44]
User688525 - Posts: 259
John,
On second thought, how would I go about creating a custom study that I can then link to a control bar button, that when clicked will change the session time values (Session Start Time, Session End Time, Use Evening Session, Evening Start Time, Evening End Time and New Bar At Session Time)? Is a sample study available to achieve this?
[2023-05-02 16:54:32]
John - SC Support - Posts: 36350
Refer to the following to get you going.

We do not see any examples that set the Session Times.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-02 23:33:18]
User688525 - Posts: 259
Hi John,
Can you please provide the reference?
[2023-05-03 14:20:01]
John - SC Support - Posts: 36350
Sorry. Here is the link:
ACSIL Interface Members - Variables and Arrays: sc.StartTime1
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:

Login

Login Page - Create Account