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 Brevo, Today, 01:45 AM
        0 responses
        3 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        239 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        6 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X