Bid Ask Ratio Rate Of Change

Solution
Hi.

I'm looking to see if implementing this into thinkorswim as an indicator would be possible.

It is the acceleration of the bid/ask ratio from one minute to the next. So if the bid/ask ratio was 10-1 at two minutes ago, 20-1 at the previous minute (increase of 10 per min), and 100-1 at the current time (increase of 80 per min), then the rate of acceleration of the ratio would be 70 (80pm - 10pm). I would also like the calculation to only include the orders within a 5% range of the last price
example shown:


I've seen similar things done as studies except they were visual and I want a numerical representation for more precise observations. They also were not the exact calculation I want.

Also, I am new to thinkscript. I have...
Hi.

I'm looking to see if implementing this into thinkorswim as an indicator would be possible.

It is the acceleration of the bid/ask ratio from one minute to the next. So if the bid/ask ratio was 10-1 at two minutes ago, 20-1 at the previous minute (increase of 10 per min), and 100-1 at the current time (increase of 80 per min), then the rate of acceleration of the ratio would be 70 (80pm - 10pm). I would also like the calculation to only include the orders within a 5% range of the last price
example shown:


I've seen similar things done as studies except they were visual and I want a numerical representation for more precise observations. They also were not the exact calculation I want.

Also, I am new to thinkscript. I have not created my own thinkscript (I don't know how to write code yet). I have inserted the scripts of others to add new studies and indicators. So I apologize in advance if something like this already exists.

Is any part of this indicator possible to create?

your words say bid/ask.
your picture formulas imply bid SIZE / ask SIZE
do you want size? edit your post.

size is not a data that can be read by thinkscript, so it can't be done.

in excel, you could use some RTD() formulas and VBA, to read prices and keep some, in order to do this
 
Solution

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
703 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