Login Page - Create Account

Support Board


Date/Time: Fri, 24 Jan 2025 05:06:47 +0000



Post From: Inaccurate back tests results

[2018-12-18 11:23:00]
UserZiltoid - Posts: 57
As I suspected. It seems that something is inocrrect in higher speed. I have printed each new second with it's volume and it is not correct.

504  981 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[1025.000000] - 12:36:24 | 2018-12-18 05:13:07
505  982 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[1114.000000] - 12:36:25 | 2018-12-18 05:13:07
506  983 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[1312.000000] - 12:36:26 | 2018-12-18 05:13:07

507  971 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[137.000000] - 12:36:12 | 2018-12-18 05:13:07
508  972 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[138.000000] - 12:36:13 | 2018-12-18 05:13:07

509  984 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[1428.000000] - 12:36:29 | 2018-12-18 05:13:07
510  985 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[1432.000000] - 12:36:30 | 2018-12-18 05:13:07

-------------------------------------------

534  1004 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[5915.000000] - 12:36:58 | 2018-12-18 05:13:07
535  1005 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[6210.000000] - 12:36:59 | 2018-12-18 05:13:07
536  1006 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[6443.000000] - 12:37:0 | 2018-12-18 05:13:07
537  1007 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[6694.000000] - 12:37:1 | 2018-12-18 05:13:07
538  977 Chart: Replay 80X: F.US.EPH19 1 Min #1 | Study: TEST Study | CHEKING | Index[1266], Volume[673.000000] - 12:36:18 | 2018-12-18 05:13:07


the order of the seconds is incorrect.

Attached is the full log.

The code that I use for this:
---------------------------------------
  auto currentTime = sc.GetCurrentDateTime();
  auto currentSecond = currentTime.GetSecond();
  int& lastSecond = sc.GetPersistentInt(persistentLastSecondTest);
  auto currentVolume = sc.Volume[sc.Index];

  if (currentSecond != lastSecond) {
    SCString test;
    test.Format("CHEKING | Index[%d], Volume[%f] - %d:%d:%d", sc.Index,
      currentVolume,
      currentTime.GetHour(), currentTime.GetMinute(), currentSecond);
    sc.AddMessageToLog(test, 0);

    lastSecond = currentSecond;
  }
Private File