Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open[1]

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

    Open[1]

    Hi,

    I am new in C#.
    I try to print Open[1], it is not generate a value.( could be "not a value or something else)
    However, if I do Open[Bars.BarsSinceSession-388], where Bars.BarsSinceSession=389, then it works.

    Why?

    #2
    make sure do a no. of bars check

    in OnBarUpdate

    Code:
    if (CurentBar < 1) return;
    
    Print(Open[1].ToString());

    Comment


      #3
      Yes,

      However, I think that Open[1]=Open[Bars.BarsSinceSession-388], if Bars.BarsSinceSession=389.

      If Open[Bars.BarsSinceSession-388] works, then Open[1] should also works. Because they represent the same thing.

      Right?

      Comment


        #4
        Of course, if I print "CurrentBar", then it is 0 at this monent.
        How come the Open[Bars.BarsSinceSession-388] give the value that it should be.

        Comment


          #5
          you are only considering the bar #389. think what would be the case in case of barssincesession #387 or #5. then you will realize.

          Comment


            #6
            Yes,

            Thank you very much.

            Comment

            Latest Posts

            Collapse

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