Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 04:55:03 +0000



Post From: Minor bug in scsf_TimeAndSalesIterationExample in studies5.cpp

[2023-09-28 22:54:46]
User719512 - Posts: 264
Add this line the to code in scsf_TimeAndSalesIterationExample in studies5.cpp
LastProcessedSequence = TimeSales[TSIndex].Sequence;

Code Snippet


  // Loop through the Time and Sales.
  for (int TSIndex = 0; TSIndex < TimeSales.Size(); ++TSIndex)
  {
    //do not reprocess previously processed sequence numbers.
    if (TimeSales[TSIndex].Sequence <= LastProcessedSequence)
      continue;
      
    LastProcessedSequence = TimeSales[TSIndex].Sequence;
    
    //only interested in trade records