Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 13:40:42 +0000



Last price of bar changes after refresh

View Count: 800

[2018-01-11 23:41:37]
onnb - Posts: 661
This is a bit hard to explain so hope its clear

Summary of issue
In replay, when the live bar closes, closing price is 13047.00 - I can see this in the log below and I can see this using the tool value window.
I then refresh the chart and the closing price for that same bar changes to 13046.00

This does not happen for all bars. But for some bars, it is very 100% consistent.


Log
The first row is printed when the bar closes
I then pause the replay and refresh the chart
The second print is from that

Chart: Replay 30X: DYH18 500 Trades #1 | Study: Test Close | Last: 13047.000000 | 2018-01-11 18:33:01
Paused 30X: DYH18 500 Trades #1 | Reloading chart. | 2018-01-11 18:33:38
Chart: Paused 30X: DYH18 500 Trades #1 | Study: Test Close | Last: 13046.000000 | 2018-01-11 18:33:38

Code Used (just for reference)

SCSFExport scsf_test_close(SCStudyInterfaceRef sc)
{
  SCInputRef str1 = sc.Input[0];
  SCInputRef str2 = sc.Input[1];

  if (sc.SetDefaults)
  {

    sc.GraphName = "Test Close";
    sc.StudyDescription = "";
    sc.AutoLoop = 1;
    sc.GraphRegion = 0;
    sc.FreeDLL = 1;

    return;
  }

  if (sc.Index == sc.ArraySize - 2)
  {
    SCString msg;
    msg.Format("Last: %f", sc.BaseData[SC_LAST][sc.Index]);
    sc.AddMessageToLog(msg, 0);
  }
    

}

[2018-01-14 23:19:37]
Sierra Chart Engineering - Posts: 104368
In general we are seeing something like this. We are working on it now. We did get your video by the Account Support Ticket.

Probably the exact cause is not what you would think but we will figure it out and resolve.
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
[2018-01-15 07:38:53]
Sierra Chart Engineering - Posts: 104368
This is now solved. This was simply an issue where when transitioning from the initial load to a replay, one record was being skipped.
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
[2018-01-15 16:09:23]
onnb - Posts: 661
Great, what version is it solved in?
[2018-01-15 17:25:16]
Sierra Chart Engineering - Posts: 104368
It has not yet been released.
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

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

Login

Login Page - Create Account