Login Page - Create Account

Support Board


Date/Time: Sun, 03 Mar 2024 22:55:21 +0000



sc.GetStudyArrayUsingID question

View Count: 1086

[2014-11-15 22:17:23]
test99 - Posts: 26
I have overlayed a study from another chart with different time frame using Study/Price Overlay unsynchronized.
Overlayed study data displayed correctly. Then I was pulling data from overlayed study using sc.GetStudyArrayUsingID function with low_prec_level set using sc.Index.

When transitioning from prev to new bar on main chart (sc.Index) I noticed that during the time of the transition I pull one bar prior data from ovelayed chart. It happens once on every main chart new bar.

It seems sc.Index loses indexing of overlayed chart data momentarily.
  sc.GetStudyArrayUsingID(BidvsAskChartStudyInput49mins.GetStudyID(),BidvsAskChartStudyInput49minsSubgraph.GetSubgraphIndex(),BidvsAskArray49mins);

SCString Buffer99;
Buffer99.Format("PrevBar = %4.4f and ThisBar = %4.4f", BidvsAskArray49mins[sc.Index-1], BidvsAskArray49mins[sc.Index]);
sc.AddMessageToLog(Buffer99, 1);

Please advise if that is a bug or I have to use other methods of pulling data from other time frames and not loosing correct indexing.
Thank you
[2014-11-16 07:16:56]
test99 - Posts: 26
1.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | PrevBar = -627.0000 and ThisBar = 28.0000 | 2014-11-15 23:09:58 *
Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | ********************BUY ORDER***************************** | 2014-11-15 23:09:58
2.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | PrevBar = -627.0000 and ThisBar = 40.0000 | 2014-11-15 23:09:58 *
3.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | PrevBar = 43.0000 and ThisBar = -627.0000 | 2014-11-15 23:09:59 *
4.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | ********************BUY ORDER***************************** | 2014-11-15 23:09:59
5.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | PrevBar = -627.0000 and ThisBar = 47.0000 | 2014-11-15 23:09:59 *
Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | ********************BUY ORDER***************************** | 2014-11-15 23:09:59
6.Chart: Replay 10.0X: AUDUSD/AUD/USD 5000 Trades #5 | Study: Bid Ask Delta Trading System | PrevBar = -627.0000 and ThisBar = 51.0000 | 2014-11-15 23:09:59 *

Here is a part of the log. Line 3 presents the issue. sc.Index pull data from one bar prior from overlayed chart once and then data is pulled correctly till the next new bar on the main chart.
Hope it helps.
[2014-11-16 07:21:29]
Sierra Chart Engineering - Posts: 104368
We think the solution is to enable Global Settings >> General Settings >> Use Controlled Order Chart Updating..

In general problems like these are rather complex and the best we can do is explain how things work and give you the ability to debug the issue on your own.

What we think is happening is that you are accessing data from another chart before it has been calculated.
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: 2014-11-16 07:21:48
[2014-11-16 07:31:20]
Sierra Chart Engineering - Posts: 104368

Also, we really do not recommend using the non-synchronized option with the Study/Price Overlay study. We recommend using synchronization and using the option to fill blanks with last value. See if that also helps.
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
[2014-11-17 01:57:57]
test99 - Posts: 26
Thank you guys for your help. Unfortunately, neither method gives the result I wanted. I made a workaround by filtering instances like these using persistent variables. Happy to be your customer! Your support is excellent!
[2014-11-18 03:59:32]
Sierra Chart Engineering - Posts: 104368
Is the source chart a different symbol? If so, then you may have this kind of problem sometimes.

Otherwise, it is hard to say what the issue is in your case without a lot of in-depth examination of your particular scenario.
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: 2014-11-18 03:59:48
[2014-11-18 07:05:31]
test99 - Posts: 26
The same symbol. I found workaround solution. Thank you guys.

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

Login

Login Page - Create Account