Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Plot Formating Help

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

    Indicator Plot Formating Help

    I'm having trouble matching my variable (a double) when ploted on a chart.

    ZB is charted as "116 8/32"

    my variable charts as "116.25000"

    How and where should i convert my variable to display in fractions as well?

    #2
    Unfortunately there is no way to format a plot's value based on the display formatting of the underlying price.
    RayNinjaTrader Customer Service

    Comment


      #3
      Since I can't match the formating of the underlying, is the formating of ZN exposed so I can hard code the same?

      In an older post I seen -
      PriceDisplay=Bars.Instrument.MasterInstrument.Form atPrice(High[1]);

      Not sure if this applies nor could I get it to work.

      Comment


        #4
        There is a method that will format a price to a string for use with the Print() method or any other custom drawing you might do.

        Instrument.MasterInstrument.FormatPrice(double priceValue)

        Something like this would work for example:

        double myCustomCalculation = // Some price
        Print("Formatted price is " + Instrument.MasterInstrument.FormatPrice(myCustomCa lculation));
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        561 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        325 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
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X