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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    33 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    284 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    91 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X