Hello! I am new at this (though I have experience with both C# and financial markets) and I'm having trouble getting this backtest to trigger an order. The code compiles fine (it's based on a couple of the example backtests), but I suspect that I've made some incorrect assumptions about how the API works. (Also, I'm a bit worried the code is a mess, because of incorrect assumptions...)
Can somebody please take a look at the code and tell me how to fix it? The algorithm is pretty simple: if GOOG goes down by 2.5% to 12.5% (say) in a day, buy a call contract. If I own calls, and they're worth more than 30% than I paid for them (total, including transaction costs), I liquidate.
For some reason, though, I can't get the order to trigger.