Placing hedge orders

Here is what I am looking to do (example situation only, of course):

On NQ, go long with 1 contract.
If the trade goes against me, automatically enter a short hedge on MNQ for 15 contracts AFTER a buffer zone (maybe 10 points but can be defined for each trade).
If the short hedge profit overtakes the original long entry loss, close both positions (in profit at this point because the hedge will gain at a faster rate than the original position loss).
If the trade goes back in my favor, close the hedge at break even and continue with the original long position.