Announcement

Collapse
No announcement yet.

Retrieving [Real Time] values from an array generated with efsInternal

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

  • Retrieving [Real Time] values from an array generated with efsInternal

    In my previous post we clarified:
    a/ that we can return an array with efsInternal and
    b/ how to generate series objects for each of the values returned by efsInternal.


    What is left unclear [for me, at least] is how to retrieve subsequent values [in real time] returned by the same efsInternal [which keeps executing every tick].

    Can we simple use getValue(0) [applied to already generated object series], or we must use the same two steps again [getSeries again to "extract" new values from the array] then use getValue(0)?

    If the latter is true, what is the correct syntax.

    Thank you.
    Mihai Buta

  • #2
    Re: Retrieving [Real Time] values from an array generated with efsInternal

    Mihai
    See my reply to you in this thread
    Alex



    Originally posted by mbuta
    In my previous post we clarified:
    a/ that we can return an array with efsInternal and
    b/ how to generate series objects for each of the values returned by efsInternal.


    What is left unclear [for me, at least] is how to retrieve subsequent values [in real time] returned by the same efsInternal [which keeps executing every tick].

    Can we simple use getValue(0) [applied to already generated object series], or we must use the same two steps again [getSeries again to "extract" new values from the array] then use getValue(0)?

    If the latter is true, what is the correct syntax.

    Thank you.

    Comment


    • #3
      Sorry Alex but it does not and that is why I opened a new thread, specifically, for real time.

      If you can, please provide those clarifications, here.
      Thank you.
      Mihai Buta

      Comment


      • #4
        Mihai
        Please post a sample script showing where it does not so that I or someone else can test it.
        Alex



        Originally posted by mbuta
        Sorry Alex but it does not and that is why I opened a new thread, specifically, for real time.

        If you can, please provide those clarifications, here.
        Thank you.

        Comment


        • #5
          Alex,

          There is nothing to post to get this issue straight [like was not needed for in previous post].

          The question is very simple: Does efs engine use OUR series objects [that we initiated with get series at ALLBARS time] to deposit new values in real time or not?

          If yes [which I doubt is the case] then the answer you provided in previous post applies to real time as well, meaning that we can retrieve new values, like the historycal values] using getValue FROM OUR SERIES OBJECT.

          If not, meaning that efsInternal continues to add new values to its array, then [I assume] we need the same two steps to access new, real time, values for each of the returned component. Those are: extract new values [from the array in our series objects] with getSeries, then use getValue to retrieve them.

          So, which one is it?

          Thank you
          Mihai Buta

          Comment


          • #6
            Mihai
            As I already explained in this post
            "As to retrieving real time values you just use the same getValue() method with a bar index of 0 on the same series [that you have already retrieved using getSeries() inside the bInit routine or at ALLBARS] which will return the value currently calculated by the called function or efs"
            Alex


            Originally posted by mbuta
            In my previous post we clarified:
            a/ that we can return an array with efsInternal and
            b/ how to generate series objects for each of the values returned by efsInternal.


            What is left unclear [for me, at least] is how to retrieve subsequent values [in real time] returned by the same efsInternal [which keeps executing every tick].

            Can we simple use getValue(0) [applied to already generated object series], or we must use the same two steps again [getSeries again to "extract" new values from the array] then use getValue(0)?

            If the latter is true, what is the correct syntax.

            Thank you.

            Comment

            Working...
            X