Very important to consider that a fixed value for the volume threshold is going to have an extremely narrow focus and zero flexibility. Much better to apply it as a percent threshold above an average volume. Why? Stocks with very high volume are going to exceed your fixed value for the volume threshold every single bar during the trading session. Whereas extremely low volume stocks will never exceed your fixed value for volume threshold at all.
When constructing scans it's always best to design the specifications so the resulting solution has the widest possible utility and flexibility. Which ends up being the most robust solution. Since you did not do this, the solution below is configured to match your extremely fragile and very narrow specifications.
The following code includes three user inputs so you can adjust the various metrics without modifying the code.
input volumeThreshold = 10000;
input numberOfBars = 10;
input numberOfInstances = 2;
def volumeCondition = volume > volumeThreshold;
plot scan = Sum(volumeCondition, numberOfBars) >= numberOfInstances;