Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ZB Price Display

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

    ZB Price Display

    Hi ... is there a way to access (for display) the ZB price as it's shown on the charts ... in divisions of '32' ... instead of it's actual decimal price?

    #2
    Hello pman777,

    Thank you for your note.

    Please see the following post a user uploaded a script which displays bonds in 32'nds.


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Alan for your quick reply. One question re: UserDefinedMethods ... how do I incorporate that into my indicator?

      Comment


        #4
        Hello pman777,

        Copy paste the code below into the editor as I have outlined in the attached screen shots.

        Code:
               public double Round2TickSize(double Price)
                {
                    return Instrument.MasterInstrument.Round2TickSize(Price);
                }
        
                public string FormatPrice(double Price)
                {
                    return Instrument.MasterInstrument.FormatPrice(Round2TickSize(Price));
                }
        
                public override string FormatPriceMarker(double Price)
                {
                    return FormatPrice(Price);
                }
        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        45 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by arvidvanstaey, Today, 02:19 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by mmckinnm, Today, 01:34 PM
        3 responses
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by f.saeidi, Today, 01:32 PM
        2 responses
        8 views
        0 likes
        Last Post f.saeidi  
        Started by alifarahani, 04-19-2024, 09:40 AM
        9 responses
        55 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X