1. Check the volume of asks compared to volume of bids. If one is considerably greater than the other it should be easy for me to get a limit order filled going the opposite way. For example if there are more buyers than sellers, a limit order to sell would get filled but I would be in a crowded line as a buyer.
2. I would expect that if I check these volume conditions and only enter trades that I can easily get limit orders filled on with this logic ninja trader would behave in the following way.
A: In market replay if enforce immediate fills are checked or unchecked I would have virtually the same results, because checking the volume condition would ensure this.
B: The statistics from running this code over several days at 500x speed in market replay would produce more or less the same figures. In theory I would expect to see 50% winners and 50% losers because this is how I wrote the profit target vs. stop loss and I am using random entries.
However when I test this I see around 60% winners when enforce immediate fills are unchecked and around 40% winners when enforce immediate fills are checked. So I think something in my code must be off. If anyone could take a peak and provide some insight of where either my code if off or my thought process is off I would greatly appreciate it. If it helps.... I am testing this on ES with a 300 tick chart in 500x speed in market replay.
Thanks,
Ian Guthrie
Comment