Plz help me code this .
I want to plot the sum of Ce and Pe (only close price ) in a Line chart. Basically a straddle .
I want it to plot 3 different straddles. Like for eg. Banknifty straddle of 28000 blue line , 28100 red line and 28200 green line in a single chart.
But I want it to choose the strike ,expiry automatically.
Like for eg. if I select the 28000CE strike , it should automatically plot the 28000 straddle sum and also +100 points away which is 28100 straddle sum and further + 200 points away 28200 straddle sum in a single chart.
So basically I just need to select or open one strike and rest everything should be done .
I know its a bit complicated but I'm sure it can be done.
Experts please help. Attached a screenshot how it should look like.
I want to plot the sum of Ce and Pe (only close price ) in a Line chart. Basically a straddle .
I want it to plot 3 different straddles. Like for eg. Banknifty straddle of 28000 blue line , 28100 red line and 28200 green line in a single chart.
But I want it to choose the strike ,expiry automatically.
Like for eg. if I select the 28000CE strike , it should automatically plot the 28000 straddle sum and also +100 points away which is 28100 straddle sum and further + 200 points away 28200 straddle sum in a single chart.
So basically I just need to select or open one strike and rest everything should be done .
I know its a bit complicated but I'm sure it can be done.
Experts please help. Attached a screenshot how it should look like.
Attachments
-
70.6 KB Views: 154