Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I need to Add() another Bars object to the same instrument

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

    I need to Add() another Bars object to the same instrument

    I need to add to the same instrument, another Bars object, where only changes "marketDataType".
    For example I want to add all bid data to the script. According to NT help guide, this should go like this: Add(PeriodType periodType, int period). The problem with this is that doesn't allow "marketDataType" , so I can't add what I want.

    How can I solve this?
    by Add(string instrumentName, PeriodType periodType, int period, MarketDataType marketDataType) and under instrumentName put the same?

    Is there other any way to Add a simple Bid series ?
    I'd like to know which is best way to do this.

    Thanks

    #2
    Hello,

    If you want to just add the Ask or Bid for the instrument you could use the following:

    Code:
    Add(Instrument.FullName, PeriodType.Tick, 1, MarketDataType.Ask);
    or a string name:
    Code:
    Add("ES 12-15", PeriodType.Tick, 1, MarketDataType.Ask);
    This would Add the instrument as 1 tick Ask series.

    You could do the same for Bid choosing any Period and Interval you need.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

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