Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 00:23:05 +0000



Post From: Chart - settings - Alert

[2016-03-14 12:27:49]
User553714 - Posts: 184
Hi,

1)
Can you please confirm that 3) above was implemented in version 1380 of SC; I believe it has.

2)
I have the following code (see below).
For some reason the sc.DataFile function is ignored for ALL but the final loop i.e. Symbols_NUM-40.
What ever I number I change this to is where the code seems to stop and run sc.DataFile?
I would like the reloading of the charts to occur on all of the loops from 1 to Symbols_Num (which is around 60.)
Shouldn't sc.DataFile be executed on every loop and what am I missing?

  // This loop reads the Symbols_NUM stored in the Symbols_array and prints them to MessageLog
  for (i = 0; i < Symbols_NUM-40; i++)
  {
    mystring1 = Symbols_array[i][1] + ".scid";
    stringstream(mystring1) >> char_array1;
    Buffer.Format("Pos integer = %s", char_array1);
    sc.AddMessageToLog(Buffer,1);
    sc.DataFile = char_array1;
  }


OUTPUT
Interactive Brokers | Using primary service for historical data for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21
Interactive Brokers | Using primary service for historical data for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21
Intraday data recording state for symbol DLX-CFD-SMART-AUD is set to download 'Pending'. | 2016-03-14 23:13:21
HD Request # 71 | Downloading Intraday chart data for DLX-CFD-SMART-AUD to the file DLX-CFD-SMART-AUD.scid. Service: ib | 2016-03-14 23:13:21
HD Request # 71 | Download start Date-Time: 2016-03-14 15:15:17.000 | 2016-03-14 23:13:21
HD Request # 71 | Requesting a total of 0 days and 33484 seconds. | 2016-03-14 23:13:21
HD Request # 71 | IB Backfill - Seconds requested: 33484. Seconds Remaining: 0. | 2016-03-14 23:13:21
HD Request # 71 | Requesting 33484 Seconds of data at 30 secs with ending Date-Time at 2016-03-15 00:23:21 for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21
HD Request # 71 | Processing historical data message from TWS | 2016-03-14 23:13:23
HD Request # 71 | Receiving Intraday data for DLX-CFD-SMART-AUD starting at 2016-03-14 15:05:30 | 2016-03-14 23:13:23
HD Request # 71 | Timestamp of first Intraday data file record written: 2016-03-14 15:15:30 | 2016-03-14 23:13:23
HD Request # 71 | Received 1113 records and wrote 111 records from 2016-03-11 13:03:30 to 2016-03-14 16:10:30. | 2016-03-14 23:13:23
HD Request # 71 | Received 1113 records from 2016-03-14 15:05:30 to 2016-03-14 16:10:30 (65.0 minutes) and wrote 111 records for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23
HD Request # 71 | Intraday download COMPLETE for DLX-CFD-SMART-AUD. Completion time: 2s. Unique request ID: 73 | 2016-03-14 23:13:23
Removed historical data download ID 73 | 2016-03-14 23:13:23
Real-time Intraday chart data file updates started for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23
Opened cached Intraday file: C:\SierraChart1\Data\DLX-CFD-SMART-AUD.scid | 2016-03-14 23:13:23
Intraday chart data file opened for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23


Regards