Not looking for auto trading as I'm aware that ToS does not support that.
What I want to do is edit some strategies to use options instead of stock
I got this from ToS Tutorials:
With the default settings, it will simulate buying or selling 100 shares. Is there a way to make it but x number of Calls or put contracts ATM, at next expiry date, or 2 weeks out, or something similar. Since I only trade options, the existing strategies don't give me any useful info
What I want to do is edit some strategies to use options instead of stock
I got this from ToS Tutorials:
Code:
input price = close;
input length = 20;
def avg = Average(price, length);
AddOrder(OrderType.BUY_AUTO, price crosses above avg, open[-1], 100, Color.YELLOW, Color.YELLOW, “Buy”);
AddOrder(OrderType.SELL_AUTO, price crosses below avg, open[-1], 100, Color.RED, Color.RED, “Sell”);
With the default settings, it will simulate buying or selling 100 shares. Is there a way to make it but x number of Calls or put contracts ATM, at next expiry date, or 2 weeks out, or something similar. Since I only trade options, the existing strategies don't give me any useful info