Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 17:03:39 +0000



Post From: Chart Session Start Time

[2020-05-07 19:14:03]
CMG - Posts: 179
Tom, thanks again for your help.
I didn't see your response and I just posted the question again for sierra support as this post went to user discussion (it was not intended to.)

I only want one day because I am using the "% Change since Open" study (which on my opinion has some issues of its own but it will work with some twists) and my objective is to visualize just the current session and use its data for some intraday calculations. There is no problem for regular session hours (9:30 to 16:00) but when the night session is included, the prior day appears. The issue is with the starting time being greater than the finishing time (creating a reverse time as per SC terms) and that's why the solution is what you recommended.

Now that I went into mentioning the "% Change since Open" study, it has being programmed in SC to plot the graph only to begin in 0% if the input data for opening bar and current bar are the same (e.g. open, last, etc) thus creating the following problem:
In an 1 minute intraday chart for a regular stock session (9:30 to 16:00), if you want to get the exact % change since open during the session (as the study name suggests it is intended to do) you would need the open (open = fist price in the first bar) and the last of the current bar for the correct calculation. With this settings the chart does not begin at 0% (but returns the correct % change from open). The only way to have the chart begin at 0% is to either set opening bar to last and current bar to last, which would return an incorrect result as the calculation would be performed with the 9:30:59 price instead of the 9:30:00 price, or to set the opening bar to open and current price to open which would also return and incorrect calculation as the last price would be the opening price in the last bar and not the last. The discrepancies are even larger when a longer time frame is set. So the study actually changes results for "% change since open" with different time frames when the underlying stock has the same opening price and last price! For a more precise description, the study is really "% change since last of opening bar"

Of course, as with the session times you recommended for the original issue in this post, there are twists to get around it but creates a disorganized chart.

Have you had any issues/comments with this study? Any feedback is very appreciated.
Thanks again