Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries Weirdness

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

    DataSeries Weirdness

    I am expecting the Print() statements below to output the exact same value, but they are not. It appears that an indicator created from a DataSeries behaves differently than the same indicator created using the default DataSeries. Can someone show me what I am doing wrong?

    private CCI ind1;
    private CCI ind2;
    private DataSeries dataSeries;


    protected override void Initialize()
    {
    ind1 = new CCI();
    ind2 =
    new CCI();
    dataSeries =
    new DataSeries(this);
    }

    protected override void OnBarUpdate()
    {
    dataSeries.Set(Close[
    0]);
    ind1 = CCI(
    12);
    ind2 = CCI(dataSeries,
    12);

    Print(ind1[
    0].ToString());
    Print(ind2[
    0].ToString());
    }

    Output:
    -116.870986573268
    -118.665114474188

    Last edited by CashCache; 09-04-2008, 07:47 PM.

    #2
    I got this worked out. Everything works great if you add the right value to the DataSeries

    Thanks...

    Comment

    Latest Posts

    Collapse

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