Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical data vs Time Period

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

    Historical data vs Time Period

    I am working on creating a smoothing indicator.

    Currently when indicators are added to the chart they are limited to the data series and time period of the chart.

    Meaning if I load a data series for 30 days on a 5 minute chart it takes a minute for the indicator to have enough bars to perform a calculation to plot. So it's not the most accurate. Especially when using those indicators in strategies.

    Is there a way to have the indicator calculate based on all historical data of the instrument versus being limited to the data series on the chart?

    P.S. I am not a developer so please explain like I'm a 5th grader.

    Thanks!
    ​​​

    #2
    Hello tjfintrade,

    Thank you for your post.

    The indicator script will only have access to as much historical data as you have loaded on the chart. So if you want more historical data, you will need to increase the Days to Load.

    Keep in mind the more days you have added to the chart, the more historical data your indicator needs to calculate before starting to calculate in real time.

    If you want the script to require fewer bars in order to start plotting, you can decrease the BarsRequiredToPlot setting. The default value is 20.



    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    600 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    346 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X