Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 06:45:08 +0000



Problem with sc.GetOHLCOfTimePeriod function (v2586)

View Count: 320

[2024-01-17 17:16:37]
User264623 - Posts: 28
Issue: 'Open' price for this function is outputting the open price of the current/last bar within the Start/End time-frame. Instead of Open price for the entire time period specified in the parameters.

More specifically: seeing this occur when the the current bar is happening between the start and end times specified in the function parameters: (i.e. bar time = 12:00, start time = 09:30, end time = 16:00).
Note: the function High and Low output values do not take on the current bar values (they retain the High/Low of the period value), just the Open value of the current bar changes the period Open value on each new bar printed.
Date Time Of Last Edit: 2024-01-17 17:53:08
[2024-01-22 15:44:18]
Sierra_Chart Engineering - Posts: 17172
We are checking on this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-01-22 19:02:12]
Sierra_Chart Engineering - Posts: 17172
We are not observing a problem with that function. This study uses that function:
Previous/Period OHLC-Variable Period

If you can tell us how to configure this study to cause the problem, then we can understand why it is happening.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-01-22 19:02:19
[2024-03-19 01:55:56]
User264623 - Posts: 28
The root problem has been identified and resolved. The issue was on my end in how the function was being implemented.
SC, thank you for the great support and assistance that helped track down the solution.

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

Login

Login Page - Create Account