Right. Look, it's a highly hypothetical and highly simplified example that intentionally leaves a lot out. Of course what you bring up (and lots of other things) can't simply be glanced over in actual trading.
EDIT:
For the record though, I've coded up a non-commercial, open source position...