Login Page - Create Account

Support Board


Date/Time: Fri, 24 Jan 2025 05:12:37 +0000



Post From: Inaccurate back tests results

[2018-12-19 18:38:16]
Sierra Chart Engineering - Posts: 104368
We would never test something like this using users code. And really it surprises us that you do not even pay attention to the section of documentation we linked to. It takes time to understand your code and what you are doing. This is not part of our support offerings. And our offer to look at this at 100 USD per hour is contingent on our available time. We do not have that time. Maybe we do not get to this until a year from now. Or two years or three years.

Use the below code at any replay speed when using the Replay Mode to Calculate at Every Tick and you will get a consistent result of the log messages every time. We verified that.

SCSFExport scsf_TestFunction6(SCStudyInterfaceRef sc)
{

  if (sc.SetDefaults)
  {
    // Set the configuration and defaults

    sc.GraphName = "Test Function 6";

    sc.AutoLoop = 1;


    return;
  }

  if (sc.IsFullRecalculation)
    return;

  SCString VolumeMessage;

  VolumeMessage.Format("Bar Volume at Index %d is %f", sc.Index, sc.Volume[sc.Index]);
  
  sc.AddMessageToLog(VolumeMessage, 0);


}

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: 2018-12-19 18:39:36