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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        115 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        225 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        411 views
        0 likes
        Last Post CaptainJack  
        Working...
        X