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 rbeckmann05, Today, 06:48 PM
        0 responses
        4 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        52 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        8 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Working...
        X