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

Decimal point accuracy of Bollinger bands

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

    Decimal point accuracy of Bollinger bands

    Hi,
    I was looking to use Bollinger bands but notice that by default the values the Bollinger indicator method
    (eg Bollinger(IDataSeries input, double numStdDev, int period).Upper[int barsAgo] )

    returns are only to 2 decimal places (eg 122.11).

    I am used to values being returned, eg on esignal, to 6 decimal places.

    Is there a way to get the Bollinger values calculated/exposed to at least 3 or 4 decimal places?

    many thanks

    #2
    Update:

    I now see that the values are in fact calculated by the Bollinger method to 11 decimal places - more than enough.
    So my question is therefore a charting question, as on the chart if seems to plot in a linear way from one value to the next, with each value plotted at only 2 decimal places.

    Is it possible to make the chart more granular, and specify the number of decimal places to which I would like the Bollinger band values to be plotted?
    (eg 122.1132 and 122.1189, instead of 122.11 or 122.12)

    Comment


      #3
      Hi Pourleau,

      For price markers and the data box, the decimal format is based on the TickSize of the instrument. If you print the values, you can see them formatted to more digits.

      If you want to change the display of price markers to include more decimal points, can use this method:
      Ryan M.NinjaTrader Customer Service

      Comment


        #4
        That's perfect thanks v much.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        4 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        18 views
        0 likes
        Last Post Rikazkhan007  
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        12 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Working...
        X