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 spencerp92, 10-10-2023, 09:56 AM
        4 responses
        302 views
        0 likes
        Last Post flybuzz
        by flybuzz
         
        Started by samish18, Yesterday, 10:13 AM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_Eduardo  
        Started by Austiner87, Today, 05:02 PM
        0 responses
        5 views
        0 likes
        Last Post Austiner87  
        Started by tonynt, 05-21-2019, 06:27 AM
        10 responses
        530 views
        1 like
        Last Post fiendtrades  
        Started by awwenzovs, Today, 08:03 AM
        2 responses
        15 views
        0 likes
        Last Post NinjaTrader_Eduardo  
        Working...
        X