If you do this with futures, and trade the same instrument and month in two different accounts under your control in opposite directions, you can be accused of the wash trade rule, and pay severe penalties. So stick with stocks. The SEC is overwhelmed and you can get away with washes, but the CFTC will catch you.