int to byte conversion - NinjaTrader | futures io social day trading
futures io futures trading


int to byte conversion
Updated: Views / Replies:616 / 2
Created: by ural01 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 90,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

Reply
 
Thread Tools Search this Thread
 

int to byte conversion

  #1 (permalink)
Elite Member
Colorado Springs, CO
 
Futures Experience: Master
Platform: NinjaTrader
Broker/Data: GAIN CAPITAL
Favorite Futures: Currency Futures
 
ural01's Avatar
 
Posts: 21 since Mar 2010
Thanks: 9 given, 0 received

int to byte conversion

Hello !!! have any one try to sped optimization with replacing private variables int with byte ?
any code examples how to convert int to byte

Reply With Quote
 
  #2 (permalink)
Elite Member
San Francisco, CA
 
Futures Experience: Advanced
Platform: SC, eSignal
Broker/Data: IB
Favorite Futures: Spreads
 
Posts: 46 since Jan 2015
Thanks: 44 given, 38 received

Answer
This post has been selected as an answer to the original posters question Answer


ural01 View Post
Hello !!! have any one try to sped optimization with replacing private variables int with byte ?
any code examples how to convert int to byte

False optimization usually. Modern 64-bit CPUs use a native 8-byte word w/ hardware support for 4-byte words. It's actually slower to use a 8-bit char/byte than a 32 or 64-bit int with one exception: storage or payload size. You're probably not dealing those latter issues here so stick to simple ints.

Reply With Quote
The following user says Thank You to i960 for this post:
 
  #3 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,859 since Jun 2009
Thanks: 480 given, 3,255 received

Answer
This post has been selected as an answer to the original posters question Answer



ural01 View Post
Hello !!! have any one try to sped optimization with replacing private variables int with byte ?
any code examples how to convert int to byte

 
Code
int x=5;
byte b = (byte) x;
byte c = (byte) 300; // error, a byte must be between 0 and 255
But like @i960 said, it's probably not going to help you much because of 32 or 64-bit word sizes in today's CPUs. It can help with file and database storage optimization though.

Reply With Quote
The following user says Thank You to shodson for this post:

Reply



futures io > > > > int to byte conversion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Double to Int Genshin NinjaTrader Programming 3 January 29th, 2014 02:18 PM
How to capture a double value for entry price and int value for entry bar kbaran Elite Automated Trading 3 October 10th, 2012 06:37 PM
Sharing Int values between indicators Eubie NinjaTrader Programming 4 May 8th, 2012 10:51 AM
dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" jmejedi NinjaTrader Programming 4 May 23rd, 2011 10:33 AM
Using negative numbers as private int MXASJ NinjaTrader Programming 2 September 9th, 2009 06:41 AM


All times are GMT -4. The time now is 09:48 AM.

Copyright © 2017 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
Page generated 2017-12-15 in 0.08 seconds with 25 queries on phoenix via your IP 54.221.76.68