Announcement

Collapse
No announcement yet.

getMostRecentBidSize() issue

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

  • getMostRecentBidSize() issue

    Can any one tell me why the values displayed in the Cursor Window do not seem to agree with the values in the quote window.

    The Cursor Window format is supposed to be BidPrice.BidSize and AskPrice.AskSize

    Thanks.

    function preMain(){
    setStudyTitle("BidAsk");
    setCursorLabelName("ask", 0);
    setCursorLabelName("bid", 1);
    setDefaultBarStyle(PS_SOLID, 0);
    setDefaultBarStyle(PS_SOLID, 1);
    setDefaultBarFgColor(Color.red, 0);
    setDefaultBarFgColor(Color.red, 1);
    setDefaultBarThickness(1, 0);
    setDefaultBarThickness(1, 1);
    setPlotType(PLOTTYPE_DOT, 0);
    setPlotType(PLOTTYPE_DOT, 1);
    }

    function main(){
    return new Array((getMostRecentAsk()*100+getMostRecentAskSize ()/10000).toFixed(4), (getMostRecentBid()*100+getMostRecentBidSize()/10000).toFixed(4));
    }

  • #2
    ps - I use the ES Z3, T as the symbol

    Comment


    • #3
      Looks fine here now, I didnt have the cursor on the last bar

      Comment

      Working...
      X