Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 (B11): Format Indicator's Double Values in Market Analyzer

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

    NT8 (B11): Format Indicator's Double Values in Market Analyzer

    Hi

    I'm using an indicator's double series to plot price values on market analyzer as column.

    However, issue is the precision of these double type price values is not same as that of ticksize for a given instrument. Most of the time values get displaced with either 2 or 3 digits after decimal, while the corresponding instrument's prices (Bid, Ask, etc.) display with higher precision (say 5 digits after decimal for EURUSD).

    Is there a way to enhance precision of double values sent from indicator to MA?

    Kind Regards
    Vivek

    #2
    Originally posted by engrvivs View Post
    Hi

    I'm using an indicator's double series to plot price values on market analyzer as column.

    However, issue is the precision of these double type price values is not same as that of ticksize for a given instrument. Most of the time values get displaced with either 2 or 3 digits after decimal, while the corresponding instrument's prices (Bid, Ask, etc.) display with higher precision (say 5 digits after decimal for EURUSD).

    Is there a way to enhance precision of double values sent from indicator to MA?

    Kind Regards
    Vivek
    It got resolved using:

    // FormatPriceMarker method of a custom indicator
    public override string FormatPriceMarker(double price)
    {
    // Format price marker values to ticksize
    return Bars.Instrument.MasterInstrument.FormatPrice(price);
    }

    Thanks to NT Support team's answers in previous posts!

    Comment


      #3
      Thank you for your update, engrvivs,

      You can find the details on FormatPriceMarker at the following link: http://ninjatrader.com/support/helpG...ricemarker.htm

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X