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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    77 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X