ThinkorSwim Bid/Ask Size Indicator

scriptorswim

New member
I'm trying to find a simple indicator that plots a line much like an oscillator that indicates Bid Volume - Ask Volume to be used on intraday trading. It seems a pretty simple thing to create but I can't find anything and am totally incapable of coding that. It would act similar to Bookmap, if you know what that is. Thanks for any help.
 
Last edited:
Solution
@scriptorswim

Code:
# Hui Heubel Liquidty Ratio

# Mobius

# Chat Room Request 05.26.2015

declare lower;

input n = 5;

def v = if isNaN(volume) then v[1] else volume;

def Pmax = highest(high, n);

def Pmin = lowest(low, n);

def sV = sum(v, n);

def AvgV = hullMovingAvg(v, n);

plot H_H = ((Pmax - Pmin) / Pmin) / (v / (sV * AvgV));

H_H.SetPaintingStrategy(PaintingStrategy.Histogram);

h_h.assignvaluecolor(if h_h > h_h[1] then color.green else if h_h < h_h[1] then color.red else color.white);

plot a = hullMovingAvg(h_h,13);
How would you chart this? Bid/Ask sizes a rather dynamic piece of info, as the are changing by the second, relevant information goes by pretty fast. 2 things I could think of how to use that info in a different format would be: a largest bid/ask size indicator maybe, something that will show you largest order filled for the day, then color coded to show either on Bid or Ask, and have that as a small data set in top left corner of chart???...... OR..... Create and utilize a tool like the Bull vs. Bear example I have here https://www.mql5.com/en/code/7053 , where it is a histogram and the positive and negative bars are generated as a battle by Bid/Ask spread, so for each candle the Bids generated higher total sizes, green bar up, Ask generates higher total sizes, red bar going down... Now in theory that would be a cool indicator so if someone knows how to access the Bid/Ask data for this, lets test it, but that is something out of my purview. Honestly though, you are probably better off just watch T&S and the Dom, but here are some ideas that immediately jumped out at me to get the ball rolling
 

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

@scriptorswim

Code:
# Hui Heubel Liquidty Ratio

# Mobius

# Chat Room Request 05.26.2015

declare lower;

input n = 5;

def v = if isNaN(volume) then v[1] else volume;

def Pmax = highest(high, n);

def Pmin = lowest(low, n);

def sV = sum(v, n);

def AvgV = hullMovingAvg(v, n);

plot H_H = ((Pmax - Pmin) / Pmin) / (v / (sV * AvgV));

H_H.SetPaintingStrategy(PaintingStrategy.Histogram);

h_h.assignvaluecolor(if h_h > h_h[1] then color.green else if h_h < h_h[1] then color.red else color.white);

plot a = hullMovingAvg(h_h,13);
 
Solution
thanks @codydog. That's unfortunate because it's an important factor in day trading. The icebergs are sitting there and it would be very helpful to be able to identify them to determine if a move up or down is being supported by volume. Volume itself is too slow to help on smaller time frames.
 
Hi everyone,

Is it possible to reach total bids and asks?

Say ROKU is trading at 330.87 and there are 2500 limit buy orders at 330.85 and 1500 limit sell orders at 330.88

Is this possible with thinkscript?
 
@Ates Bid and Ask are merely current Bid and Ask values which have no real correlation to actual trade prices... They change far more frequently than actual trades take place... I fail to see the merit in plotting them aside from seeing Bid/Ask spread... Aside from that, that's what Level II and Level III are for in the Active Trader Panel... They are real-time in Active Trader and in Watchlists, but would be 3 - 5 minutes delayed in a Watchlist if plotted using a Custom Column calculation...
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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