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 gentlebenthebear, Today, 01:30 AM
        2 responses
        13 views
        0 likes
        Last Post gentlebenthebear  
        Started by Kaledus, Today, 01:29 PM
        2 responses
        7 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by frankthearm, Yesterday, 09:08 AM
        13 responses
        45 views
        0 likes
        Last Post frankthearm  
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by Conceptzx, 10-11-2022, 06:38 AM
        2 responses
        56 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Working...
        X