• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What determines when Plots start plotting on far left of chart?

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

    What determines when Plots start plotting on far left of chart?

    As the title suggests, what determines when Plots start plotting on far left of chart? Even if I have a SMA(2), the plot does not begin plotting until many bars later.

    It would make sense if I had a SMA(30), then it would need at least 30 bars, but that's not the case with something small like a SMA(2).

    Here is an example:
    GBPUSD (Daily): http://i.imgur.com/ZLyjaEY.png

    I can't seem to determine what is going on behind the scenes, since this is a mid-month and mid-week bar (so it's not as if it waits till the start of the first week/month, for example).

    There is similar behavior intra-day as well.

    I took a look at @SMA and nothing stood out.

    Is there a "Minimum bars to plot" setting somewhere? I couldn't find one in the chart properties, data series properties, or indicator properties (but I could be blind).

    What's also odd is that if I bring up the Data Box and hover over those non-plotted bars, there IS an SMA(2) value... it's just not plotted on the chart.

    Any help is greatly appreciated!


    EDIT: To answer my own question, it seems BarsRequiredToPlot is what I'm looking for. This seems to default to 20 (behind the scenes). It would be nice if the built-in objects would default this to 1 or 0. What is the rationale for it not being universally 0 or 1?
    Last edited by neoikon; 07-15-2016, 09:48 AM.

    #2
    Hello,

    Thank you for the post.

    It appears that you did locate the problem, the BarsRequiredToPlot.

    This property is simply to prevent Plotting until the number of bars has elapsed, but is not associated with the amount of Bars needed to process.

    This property would mainly be used if you did not want to display a visual until a point in time where the Visual aspect would be accurate.

    I.E., the script needs 20 bars of data processed to display the visual correctly, but it starts calculating immediately on bar 0. This may lead to a jagged start to the visual aspect which can be removed by using this property.


    I look forward to being of further assistance.
    Last edited by NinjaTrader_Jesse; 07-18-2016, 07:47 AM.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kokobeef, Today, 12:32 PM
    0 responses
    2 views
    0 likes
    Last Post kokobeef  
    Started by StevenNelson, Today, 12:23 PM
    0 responses
    4 views
    0 likes
    Last Post StevenNelson  
    Started by Jackrpo, Today, 11:14 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by DariusDeck, Yesterday, 04:22 PM
    7 responses
    49 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by laszlonagy, Today, 09:28 AM
    2 responses
    10 views
    0 likes
    Last Post laszlonagy  
    Working...
    X