Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent NT to round EMA value to integer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    Its only rounded for display purposes. In indicators and strategies, the actual double value precision is maintained.
    RayNinjaTrader Customer Service

    Comment


      #3
      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, 08:08 AM.

      Comment


        #4
        This is not supported at this time but is on our list to be changed later this year.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        5 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X