how to calculate level in option chain

Hoang888

New member
Hi all, I am trying to calculate level of trike price in option chain
ex: on the Call i try to find what is a strike price down 7 lines from the strike price ATM
or the Put what is the strike price goes back 7 lines from the strike price ATM

it looks like when you set top loss by select level instead % or +/-

what is a code to calculate a level in option chain?
this is a draft that I came up with

Code:
input level = 7 and -7;
input DTE = (default 14, 20, 30); #number of day of period

def Symbol = underfying;
def Strike = getstrike();

plot output = if (isput level = -7) and (level = 7) and (DTE = 14) then 1 else 0;

assignBackgroundColor(if ouput == 1 then color.GREEN else color.CURRENT);

Any advice and suggestions would be greatly appreciated.

 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Thanks, I did RTD in excel, it worked well. But now I try to use directly on TOS instead export or RTD on excel
this project that I build a custom column in option chain it show output whereas Delta = .20 - 25 and strike around 7 level down from strike ATM for Call and Put opposite Delta = -.20 - -.25 and strike around -7 level up from strike ATM
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
256 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top