Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 00:13:53 +0000



Problem understanding overlay study

View Count: 810

[2017-06-18 14:57:24]
wwwingman - Posts: 185
Hi

I mix different bar types using the overlay study in containing mode.
I consider to get the data one bar "too early" and want to understand how to use the study properly.

In the enclosed-by image you can see a 5 mn chart overlayed on a volume bar chart.
The volume chart includes bars that start at #1 14:52:51 #2 14:55:01 ...
I expect to see the 5 mn 14:55 overlayed bar on bar #2 because it was not available during the start of bar #1. But it is overlayed on bar #1.
FWIW : when I do the test with ACSIL using sc.GetContainingIndexForSCDateTime of those same charts, it will draw as expected on bar #2 !!!
Which means I don't understand something, or use the overlay STUDY in a wrong manner. I indicated my settings.

Please advise.

-- W.
Private File
[2017-06-20 05:34:33]
Sierra Chart Engineering - Posts: 104368
The bar starting at 14:52:51 does contain 14:55:00. This is clear.

You will want to use a nearest match instead. Refer to the Study inputs:
Study/Price Overlay Study: Bar Time Matching Method
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-06-20 05:34:50
[2017-06-20 08:09:28]
wwwingman - Posts: 185
> The bar starting at 14:52:51 does contain 14:55:00. This is clear.

This is NOT CLEAR to me based on the #1 14:52 bar.
It may be considered clear when using the #2 next bar info (14:55:01), but this is *futur* information, so it cannot be used for backtesting.

I may be wrong, but when analyzing *closed* bar data, the only time available data is the start of the bar (sc.BaseDateTimeIn).

> nearest match instead
1. it will draw the same bar in this case.
2. it is the same problem as above, this leads in some cases to overlay bars that come from the "futur", so bad for backtesting closed bars.

Bottom line : My starting point is that you are right, and I am wrong. But the fact the sc.GetContainingIndexForSCDateTime draws the bar where I expect it (one later than the overlay study..) makes me thing the overlay study makes intentional choices that are not fully clear to me, or that lead to being useless for my backtesting.

FWIW : I can understand you decide this is beyond the scope os support and stop assistance here.

-- W
[2017-06-20 19:11:02]
Sierra Chart Engineering - Posts: 104368

It may be considered clear when using the #2 next bar info (14:55:01), but this is *futur* information, so it cannot be used for backtesting.
Future bar times are always calculated, set and known. You can see these with the Chart Values tool as you move the crosshair into the area of the chart after the last bar. Refer to:
http://www.sierrachart.com/index.php?page=doc/Tools.html#ChartValues

And refer to:
http://www.sierrachart.com/index.php?page=doc/WorkingWithCharts.html#TimeScale

But the fact the sc.GetContainingIndexForSCDateTime draws the bar where I expect it (one later than the overlay study..)
We really cannot comment on this because we do not know exactly what is being done with this function, and the particular Date-Times of the data being referenced and other details.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-06-20 19:12:04

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

Login

Login Page - Create Account