• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DownHillRyder

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

    DownHillRyder

    Hi

    Can you tell me if FirstTickOfBar is valid only for the primary bars object or is it valid for other BarArray ? i.e

    protectedoverridevoid Initialize()
    {
    Add(Instrument.FullName ........); // Instrument 1
    Add(Instrument.FullName ........); // Instrument 2

    .....

    protectedoverridevoid OnBarUpdate()
    {
    if (FirstTickOfBar == true) // Valid for base instrument

    if(BarsInProgress !=0)
    {
    if (BarsInProgress ==1)
    {
    If (FirstTickOfBar == true) // Is this valid for Instrument 1
    {


    if (BarsInProgress ==2)
    {
    If (FirstTickOfBar == true) // Is this valid for Instrument 2
    {


    Thanks for any help


    #2
    Downhillryder, welcome to our forums here - FirstTickOfBar would work in any bars series context.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pstrusi, Today, 09:06 AM
    0 responses
    1 view
    0 likes
    Last Post pstrusi
    by pstrusi
     
    Started by vpzdcv, Today, 02:31 AM
    0 responses
    8 views
    0 likes
    Last Post vpzdcv
    by vpzdcv
     
    Started by YevhenShynkarenko, Today, 01:22 AM
    0 responses
    18 views
    0 likes
    Last Post YevhenShynkarenko  
    Started by ttodua, Today, 12:52 AM
    0 responses
    7 views
    0 likes
    Last Post ttodua
    by ttodua
     
    Started by ttodua, Today, 12:50 AM
    0 responses
    6 views
    0 likes
    Last Post ttodua
    by ttodua
     
    Working...
    X