Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change number of decimal places of indicator plot value displayed in Market Analyzer

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

    Change number of decimal places of indicator plot value displayed in Market Analyzer

    Hi, I need help for controlling the number of decimal places in a value output by an indicator plot and displayed in the market analyzer column. I know that while developing a custom market analyzer column, I can use FormatDecimals​ field for this purpose. However, the problem here is that I'm not developing a custom market analyzer column. Instead, I'm developing a custom indicator whose plot value is shown in the market analyzer column. I open Market Analyzer window => Right click and from the list of MA Columns, I choose Indicator => From the indicator properties list, I choose my custom designed indicator and its specific plot to display value in the MA column.

    In the NinjaScript editor, under MarketAnalyzerColumns section, I tried to find the code for Indicator Market Analyzer column so that I can try to change the code somehow but it's not shown over there. As an example, I can see the code for Instrument Market Analyzer column/column base but none for the Indicator Market Analyzer column/ column base.

    Please help me how should I proceed further? My indicator is showing output values as 1.3408 and I have to show it like 1.34. Do I need to write a custom Market Analyzer column or column base? Is there any code available for Indicator Market Analyzer column which I can use as my baseline? Or another code which can help me serve the purpose?

    Thank you so much for your attention.


    #2
    Hello Mubeen Haider,

    Thanks for your post.

    With Indicators the decimal format can be set with FormatPriceMarker().

    See this help guide page for more information about FormatPriceMarker(): https://ninjatrader.com/support/help...ricemarker.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 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
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X