Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 05:42:05 +0000



Post From: Saving Tick by Tick Data from a 256,000 Tick Chart

[2016-08-16 18:49:22]
User203925 - Posts: 40
Code below



SCFloatArray Chart256000;
sc.GetStudyArrayFromChartUsingID(4, 1, 8, Chart256000);

PPOFloat1 = Chart256000[sc.Index];
PPOFloat2 = Chart256000[sc.Index - 1];

PPO2[sc.Index] = PPOFloat1;

ofstream outFile;
outFile.open("ProjectDataV6.txt");

for (int i = 0; i <= sc.BaseDataIn[SC_LAST].GetArraySize(); i++)

{
Value = sc.BaseDataIn[SC_LAST][sc.Index - i];
PPOFloat1 = PPO2[sc.Index - i];
outFile << Value << "," << PPOFloat1 << endl;
}

      outFile.close();

      return;
    }