HI, i have taken a equity and a option asset.I want to sell put or sell call based on the condition how equity is performing based on 1st 2 bar graph of 30 min each.

THe problem i am facing is that i can not able to use  both equity bar graph result and option contract.

I am attaching my code below.Any help/suggestion will be appreciated.

 

Author