I'm trying to create a script that could notify me whenever the difference in price between an ATM call and an ATM put was above a certain percent of the price of the underlying. I would also need it to be able to calcualte the percentage based on the time to expiration and convert it to a yearly percentage rate.
i.e.
Current price of XYZ = $200
Strike $200
Call $14
Put $10
Expiration 182 days
Spread of Call/Put is 2% of underlying with half a year until expiration which would be about 4.04% expressed as a yearly percentage.
Would be great if the script can also account for Strike prices that are slightly OTM or ITM.
I'm completely new to thinkscript and don't yet know what it is capable of. As such I was wondering if this is at all possible to do with thinkscript.
1. Is this soemthing achievable with ThinkScript?
2. If indeed it is possible, any resources that would help with writing such a script.
Thank you.
i.e.
Current price of XYZ = $200
Strike $200
Call $14
Put $10
Expiration 182 days
Spread of Call/Put is 2% of underlying with half a year until expiration which would be about 4.04% expressed as a yearly percentage.
Would be great if the script can also account for Strike prices that are slightly OTM or ITM.
I'm completely new to thinkscript and don't yet know what it is capable of. As such I was wondering if this is at all possible to do with thinkscript.
1. Is this soemthing achievable with ThinkScript?
2. If indeed it is possible, any resources that would help with writing such a script.
Thank you.