UniversalGoldmine
Junior member
- Messages
- 26
- Likes
- 0
When running this API code for IB to request historical data, it produces dublettes of each line for each symbol.
As I understand this has to do with += ?
I wonder if there is a way to reset the left side of the += after the first loop ?
As I understand this has to do with += ?
I wonder if there is a way to reset the left side of the += after the first loop ?
Code:
List<String> Fill = new List<String>();
Fill.Add("MSFT");
Fill.Add("IBM");
for (int i = 0; i < 2; i++)
{
Tws1.reqHistoricalData(i, Fill[i].ToString(), "STK", "", 0, "", "", "SMART", "usd", 0, "", "300 S", "1 min", "TRADES", 1, 1);
Tws1.historicalData += new AxTWSLib._DTwsEvents_historicalDataEventHandler(this.historicalData);
}
Last edited: