My strategy (code below) writes the latest bar data for all symbols in a dataset to a text file. The dataset contains 6 symbols. Before running the strategy in Strategy Monitor I manually update the dataset via Data Manager. The objective: on 1-minute intervals, overwite the text file with the latest bar data. The Strategy Activation Settings are:
Account: PaperAccount1
Data Range: 1 Bars
Position Size: $5000 (RP)
Scale: 1 Minute
No boxes at bottom of Activation Settings are checked.
No alerts or autostaging are used (the strategy does not trade; it just downloads data each minute.).
My expectation was that the data would download within a few seconds. However, it takes approximately 1 minute to download the latest bar for 6 symbols, by which time of course the data is out of date.
The Strategy Monitor Action column typically displays, at each cycle, messages such as:
Entering mointor thread
Execute <symbol name> <strategy name> (lingers for ~5 to 20 seconds)
Update Completed(2) <symbol name> (5 symbols left) (lingers for ~5 to 20 seconds)
Leaving streaming filter monitor thread (lingers for several seconds)
This is not due to network connection speed. My speed is about 200 Mbps down, 11 Mbps up.
I have tried varying the Strategy Monitor settings but have observed no change.
In Data Manager, the data provider is Fidelity.
What, if anything, am I doing wrong?
Thanks in advance.
CODE:
Please log in to see this code.