Announcement

Collapse
No announcement yet.

problem with close() ??? in 2000V interval

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

  • problem with close() ??? in 2000V interval

    EFS specialists,

    It's not a good day at all for me!! When I test my efs using volume intervals, I found odd results during tick playbacks using relative small volume intervals e.g. 2000-5000V . Further testing revealed that data accessing function, close() , does not return price values the same as what displayed in esignal chart.

    The attached efs is just to return close prices using:

    1. close()
    2. getValue(, 0, 1, "$PLAYBACK,2000V")

    For AMZN of 10/28/03, the efs initially returned close values the same as the data given by esignal chart (1st chart). However, the returned close values later lagged esignal chart quite a lot (2nd chart).

    Please tell me which ones is correct - values returned by close() or values displayed in the esignal chart ?

    Dzung Nguyen
    Attached Files

  • #2
    chart 1
    Attached Files

    Comment


    • #3
      the example efs
      Attached Files

      Comment


      • #4
        Dzung,

        I had a similar problem with Tick playback and Renko, I would suggest tackling the problem in two steps. The first, combine the information from my other reply to you link with the test for barstate and see if it helps. If that does not, you will probably have to get the previous bar values every new bar.

        PHP Code:

        var nArray = new Array();//put this before preMain


        // with this step
        var nArray  getValueAbsolute"Close"0, -25 );//gets last 25 close values


        // or this step which also gets the last 25 values
        for (i=0;i<25;i++){
          
        nArray[i]= close(-i);

        I get the data and calculate any technical indicators with these values. It is kind of a workaround, but it solved any issues I had had with indicators on Renko charts "lagging". It seems that you are in a similar situation.

        hope this helps.

        Comment

        Working...
        X