However, I did some some more investigation. Here's the symptoms...then I have several questions:
With the chart set to 1 tick it shows there's a burst of a lot of ticks in a row that are 119 to 120 pips lower than the last market price. Then it jumps back instantly to the previous market price.
This all happens in less than one second!
Below you can see the Output window of print statements where it shows the BarsInProgress and Close[0] for the entire first minute. The strategy has 5 minute data for the primary bars and 1 tick for secondary bars.
So tick filtering failed because it assumes bad ticks only come 1 or 2 at a time. It appears more realistic they can last several milliseconds
Here's the data logged showing all the ticks within the 1st minute of 8 am.
The forum denied the amount of data here as too big for the post --greater than 10,000 bytes. Anyway, just trust me on this. Or I can post it as an attachment.
Questions:
1. Any opinion of whether a huge burst of "out of band" data that lasts only milliseconds (less than a second) can be good data? It certainly goes against any common sense.
2. On printing the data above, I tried showing Time[0].Millisecond but it only returned 0 for every one. Does that mean NinjaTrader never stores the milliseconds with tick data?
3. Maybe the built in tick filter should be enhanced in the future to allow a configuration of how many bad ticks in a row become considered "good" or a configurable millisecond timer. Otherwise, at least if they all occur in the same second. Something more flexible to cover situations like this.
4. How to handle bad ticks in live real time production? It appears that I can simply write my own tick filter since my strategy ignores the BarsInProgress = 0, 5 minute data and only trades using the BarsInProgress = 1, or 1 tick data. I can ignore ticks I don't like.
5. But what about stops in historical? I assume I have to write my own custom fill strategy right? Will it work if I add in the tick filter with a timer or whatever I want?
6. And what about stops in real time? Since this data is from eSignal, I assume the data from the broker, MB Trading, will instead be accurate? Will I ever have a "real live" stop get hit with a weird 119 pip loss on spurious ticks like this? Any thoughts are appreciated, I don't expect any guarantees.
Sincerely,
Wayne

Comment