Announcement

Collapse
No announcement yet.

getMostRecentTradeSize

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

  • getMostRecentTradeSize

    I"m in playback mode and getMostRecentTradeSize always returns -1 (Esig 7.7). getMostRecentBidSize always returns null.

    Is this an artifact of playback mode, or do these functions just not work? Playback file is ES.

  • #2
    cashcarewins
    See this thread. FYI I found it by running a search using getmost* replay as the keywords
    Alex

    Comment


    • #3
      Thanks Alex. Here's a workaround if anyone else ever asks:

      if (nState == BARSTATE_NEWBAR)
      {

      prevTradeSize = 0;
      }
      var vol = volume();
      //var size = getMostRecentTradeSize();
      var size = vol - prevTradeSize;
      prevTradeSize = Number(vol); // prevTradeSize is global scope

      Comment

      Working...
      X