I'm trying to figure out if it's possible to create automated options strategies in thinkScript. Roughly speaking I'd like to create a script that
Are there any example strategies like this that you all are aware of? What I'm most concerned about is whether AddOrder can place orders for options. It looks like I might have to do something like
Is this roughly the right direction?
Thanks in advance
- Gathers data about market conditions for a given symbol
- Uses this data to set some criteria for options calls and puts
- Scans available options to find options that meet these criteria
- Places an order for the found options
Are there any example strategies like this that you all are aware of? What I'm most concerned about is whether AddOrder can place orders for options. It looks like I might have to do something like
input code = GetATMOption(myExpiryDate, optionType=OptionsType.PUT);
while put options criteria not met
input code = GetNextITMOption();
addOrder(code, type=OrderType.BUY_AUTO,...other order options)
Is this roughly the right direction?
Thanks in advance