dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" - NinjaTrader Programming | futures io social day trading
futures io futures trading


dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int"
Updated: Views / Replies:3,591 / 4
Created: by jmejedi Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

 
 
Thread Tools
 

dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int"

 
Lilburn, GA
 
Trading Experience: Beginner
Platform: NinjaTrader
Broker/Data: VelocityFutures/TT
Favorite Futures: ES
 
jmejedi's Avatar
 
Posts: 62 since Jan 2011
Thanks: 13 given, 4 received

dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int"

alright ,,,,,, so ....... "GetCurrentBidVolume" and "GetCurrentAskVolume" ,,,,,,,,,,,,,, returns a "Long" . . . . . . . . . and I am wanting to do the following:

Get the difference between these two . . . and see if the difference is less than X [where is a "int"]


,,,,,,,,,,,,,,,,,,,,,,,,,,,,, wanted to get your recommendations on this (please) ? ? ?


{ want to see how best to deal with this . .


Also ,,,,, any idea why NT made these two return a "Long" instead of a "int" . . . . I would think that a "int" would be enough to account for the normal sizes seen on the Bids & Asks volumes ,,, take for example the ES ,,,,,,,

}




Thanks in advance ,

Jimmy M. Espana

Visit my Facebook
 
 
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
 
 Vendor: www.ninjatrader.com 
Denver, CO
 
Trading Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,466 since May 2010
Thanks: 176 given, 2,191 received


Is this what you are looking for?

if (Math.Abs(GetCurrentAskVolume(0) - GetCurrentBidVolume(0)) < x)
// Do something

Also, an "int" was not large enough in some cases for volume, specifically stocks.

 
 
Lilburn, GA
 
Trading Experience: Beginner
Platform: NinjaTrader
Broker/Data: VelocityFutures/TT
Favorite Futures: ES
 
jmejedi's Avatar
 
Posts: 62 since Jan 2011
Thanks: 13 given, 4 received

question about


Math.Abs( )


... does this return a "int" ?

furthermore, Math.Abs can deal with "long"s and "double"s .... right ??

for example:

Y = Y - Math.Abs(DOUBLE);

(where Y is a "int")



Thanks in advance,

Jimmy Espana

Visit my Facebook
 
 
Calcutta, India
 
Trading Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 265 received

int BidAskDiff = (int)(GetCurrentAskVolume() - GetCurrentBidVolume());

do note this may result in -ive value. if you do not want a -ive value then do use Math.Abs as Ray mentioned.


 



futures io > > > > > dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int"
Thread Tools



Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

September
 

The Spirituality of Trading w/Dr Brett Steenbarger

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
ICE Takes Further Steps To Protect Itself From "Parasitic" HFT Algorithms kbit Commodities Futures Trading 1 June 28th, 2011 01:20 PM
Book Review: "Complete Idiot's Guide to Technical Analysis" RM99 Traders Hideout 1 April 23rd, 2011 03:56 PM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 05:01 PM
"time"stop" codes for MC ptcm EasyLanguage Programming 1 September 2nd, 2010 12:57 AM


All times are GMT -4. The time now is 10:25 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts