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 Rapine Heihei, Yesterday, 07:51 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kaywai, Today, 06:26 AM
    1 response
    6 views
    0 likes
    Last Post kaywai
    by kaywai
     
    Started by ct, 05-07-2023, 12:31 PM
    6 responses
    205 views
    0 likes
    Last Post wisconsinpat  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    118 responses
    2,780 views
    1 like
    Last Post kevinenergy  
    Started by briansaul, Today, 05:31 AM
    0 responses
    10 views
    0 likes
    Last Post briansaul  
    Working...
    X