I was trying a few methods to manually track the orders, but my issue is that the ordering system doesn't seem tied into the account.
So, if I say
if <some condition>:
order_target(sid, 100)
in handle_data, it will merrily purchase blocks of 100 into eternity, not watching my account balance
further, if I have code that says
if <some condition> and <money in account>
it will still blow through it since the orders never close and (thus?) never decrease my account value
In any case, I just running a modified version of the "Sample Algorithm For a Basic Strategy" that came with the system, but running it against minute data instead of dailies.