Announcement

Collapse
No announcement yet.

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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X