I have getgetcurrentbid and get current ask but sometimes it is neither, what are the other volume criteria. ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
GetCurrentBid vs GetCurrentAsk on T&S AND OTHER
Collapse
X
-
Hello ballboy11,
Thanks for your post.
What do you mean by "sometimes it is neither"? Are you not getting values for those methods in some cases?
There is also no volume criteria for these methods that I am aware of. Even when volume is low there should be a current ask/bid price.
I look forward to your reply.Josh G.NinjaTrader Customer Service
-
Basically i check if the block volume is greater than my parameter then i do this condition. the weird thing i thought it would only give ask or bid but sometimes it gives neigher and i have to print just volume. check the picture below
if(Close[0] == GetCurrentBid())
{
// print bid volume
}
else
if(Close[0] == GetCurrentAsk())
{
// .print ask volume
}
else
{
// print volume
}Last edited by ballboy11; 04-11-2018, 10:05 AM.
Comment
-
I see the same thing. I think what's happening is Ask/Bid is changing in between getting a Last price. You may be able to compare these values more accurately by storing them as variables.
I also recommend take a look at the code for the NinjaTrader built-in VolumeProfiles indicator. It uses sorted dictionaries to accomplish what I think you are looking for.Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
651 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment