I have getgetcurrentbid and get current ask but sometimes it is neither, what are the other volume criteria. ?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 cre8able, Today, 01:16 PM
|
1 response
3 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
47 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Comment