Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 09:16:50 +0000



Post From: setting to designate bar at end of time period instead of beginning?

[2019-02-10 22:54:12]
Sawtooth - Posts: 3993
Is there a setting somewhere in SC (to shift the bars over by one) so that the
closing plotted for the 8:04 bar represents the closing
in force at 8:04am? This caught me up because with the defaults
I have "certain knowledge of the future"(!).
The SC 8:04 open-timestamped bar has the same OHLCVTAVBV data as a 8:05 close-timestamped bar.
It's just a matter of the timestamp's time.
There is no "certain knowledge of the future".

To create close-timestamped bars, (to shift the bars over by one) you can do this:
- Add the Spreadsheet Formula (Bar) study.
- Use these formulas:
Open: =O[-1]
High: =H[-1]
Low: =L[-1]
Close =C[-1]
- Check 'Display As Main Price Graph'

Or you can use the attached Study Collection.
attachmentClose-timestamped bars+.StdyCollct - Attached On 2019-02-10 22:50:00 UTC - Size: 9.45 KB - 253 views