Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding DataSeries Day Period to 5 minute primary...

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

    Adding DataSeries Day Period to 5 minute primary...

    Is it possible to add a Day period data series to a 5 minute chart? I have this code, and it prints out the values in the Output window but does not plot a line:

    In State.SetDefaults...
    Code:
    AddPlot(Brushes.White, "VWAP");
    In State.Configure...
    Code:
                    this.AddDataSeries(BarsPeriodType.Day, 5);
        ​
    In OnBarUpdate...
    Code:
    this.Vwap[0] = (Typicals[1][0] * Volumes[1][0]) / Volumes[1][0];
    Code:
    [Browsable(false)]
            [XmlIgnore]
            public Series<double> Vwap
            {
                get { return Values[0]; }
            }​

    #2
    Hello funk10101,

    Thank you for your post.

    I'm a bit unclear on what you are trying to do based on this code, are you trying to plot the "Vwap" plot and it is not showing up on the chart? Or are you asking why the added data series is not showing up on the chart?

    AddDataSeries() adds a Bars object to your script, this data series will not plot on the chart.

    If your indicator is not plotting, I would suggest as a first step to check the Log tab of the Control Center. Are you seeing any errors?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    589 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    342 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
    555 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X