![]() |
|
|||||||
| Charting Support for NinjaTrader Advanced Charting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2008
Location: Netherlands
Posts: 39
Thanks: 1
Thanked 0 times in 0 posts
|
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! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Its only rounded for display purposes. In indicators and strategies, the actual double value precision is maintained.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2008
Location: Netherlands
Posts: 39
Thanks: 1
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
This is not supported at this time but is on our list to be changed later this year.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |