Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Daily data 2nd series: requires 364-day 1-minute chart. Streamwrite = only solution?

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

    Daily data 2nd series: requires 364-day 1-minute chart. Streamwrite = only solution?

    Hello!

    Having some difficulty accessing daily data without engendering a very, very long one-minute chart, ie, instead of the usual "5 days" for a 1-minute chart, I need to go much longer in order to do any averaging of the secondary series daily data without getting the error message: "accessing an index with a value that is invalid since it is out-of-range." I have to go at least 364 days out.

    To be more specific, here's a simple example:

    Assuming the primary data series is 1 minute and the added series is 1 day:

    "(Closes[0][0] - Closes[1][1]) / StdDev(Closes[1], 20)[1]" ...

    ... just doesn't want to work.

    It seems possible to use a separate chart to streamwrite the necessary daily stats to a csv, then access that csv in the one-minute chart without concern about intraday changes to those figures (since daily stats from the day prior wouldn't change).

    Is there any easier way you could envisage here?

    Thank you!

    POSTSCRIPT
    For this particular example, I realized there is absolutely no reason for a second data series. That complication added nothing but surface the strange difficulty I encountered. This particular calculation can be made simply using Daily data. End of Inquiry. Thank you!
    Last edited by catinabag; 11-27-2020, 11:33 PM. Reason: Edited to reflect finding answer to specific question after posting

Latest Posts

Collapse

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