NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Reply
 
Thread Tools Display Modes
Old 03-10-2008, 07:23 AM   #1
Nick88
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 39
Thanks: 1
Thanked 0 times in 0 posts
Default Prevent NT to round EMA value to integer

Hello,

Does anybody know how to prevent NT to round off EMA values to an integer?

NT does this rounding for instance when an EMA is calculated on YM, an instrument that has its OHLC in integer values. When calculated on NQ, which has its OHLC in a multiple of .25, everything is ok; EMA values such as 1738.69 are plotted in a chart.

I wonder if this rounding also happens in Strategy-code because that could lead to wrong trading decisions....

Thanks!
Nick88 is offline  
Reply With Quote
Old 03-10-2008, 07:26 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Its only rounded for display purposes. In indicators and strategies, the actual double value precision is maintained.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-10-2008, 07:42 AM   #3
Nick88
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 39
Thanks: 1
Thanked 0 times in 0 posts
Default

Hi Ray,

Thanks for your quick response. As I said, this can lead to wrong decisions. For instance, when I buy because the Close Crossed Above my EMA, in reality it could be that this cross happened bacause the EMA was rounded down. Is there a way to always see the unrounded EMA value?
Last edited by Nick88; 03-10-2008 at 08:08 AM.
Nick88 is offline  
Reply With Quote
Old 03-10-2008, 08:39 AM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

This is not supported at this time but is on our list to be changed later this year.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent the data box from always being in the foreground? henry.omd Charting 1 02-13-2008 10:52 PM
Rounding off to an integer? Burga1 General Programming 1 01-02-2008 10:20 PM
error combining ema with an integer Thomas Strategy Development 3 08-16-2007 05:40 AM
Round to Nearest Tick tquinn General Programming 2 01-30-2007 07:20 AM


All times are GMT -6. The time now is 07:01 PM.