Announcement

Collapse
No announcement yet.

Actual Bid/ask size

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

  • Actual Bid/ask size

    I looked a the various efs studies regarding bid/ask sizes and found the formulas were for trades.

    I would like a formula that would divide the
    ask size by the bid size. These are not trade sizes only the continuing bids and offers being displayed on the T&S

    If this is possible I'd appreciate it if you would include the formula.

    TIA,

    dom

  • #2
    dom
    You can use getMostRecentAskSize() and getMostRecentBidSize() as in the example shown below. Note that these functions only work in real time ie they do not return historical data
    For information on these and other Bid/Ask functions available in EFS see this article in the EFS KnowledgeBase.
    Alex

    PHP Code:
    var nAskSize getMostRecentAskSize();
    var 
    nBidSize getMostRecentBidSize();
    var 
    nAskBidSize nAskSize/nBidSize

    Comment


    • #3
      Hi Alexis:

      The definition of getmostrecentasksize states: "Returns the size traded at the most recent ask price....."

      I'm looking for the size offered not traded.
      For ex. the quote board or T&S will have
      bidsize 300, asksize 752. These are not trades.

      The word "traded" implies a transaction took place.

      dom

      Comment


      • #4
        dom
        I am not sure about the definition(s) provided in the Help document but as far as I can see the functions are returning the most recent Bid and Ask sizes. Scrolling through some of the symbols that in T&S have a Bid/Ask at this time I see the same values returned by the functions. For example ES U5 is returning a Bid size of 30 and an Ask size of 298. INTC 25 x 25 respectively for Bid x Ask sizes (see enclosed images).
        To get the values in the Formula Output window I just added the following to the example I showed earlier
        debugPrintln("Bid Size: "+nBidSize+" Ask Size: "+nAskSize);
        Alex



        Comment


        • #5
          Ok. Great! thx.

          dom

          Comment


          • #6
            Hi Alexis:

            I'm getting a wierd number 9.73. The current Bid size and ask size for ES #f is 46 x 31 which is 0.67.

            Here's my formula:

            function preMain(){

            setPriceStudy(false);

            setStudyTitle("Bid/ask ratio");

            setPlotType(PLOTTYPE_LINE);

            var nAskSize = getMostRecentAskSize();

            var nBidSize = getMostRecentBidSize();

            var nAskBidSize = nAskSize/nBidSize;

            }



            function main(){


            var nAskSize = getMostRecentAskSize();

            var nBidSize = getMostRecentBidSize();

            var nAskBidSize = nAskSize/nBidSize;

            return nAskBidSize;


            }

            Comment


            • #7
              dom
              In T&S for ES #F I am currently showing a BidSize x AskSize of 30x298 which would return 9.93 when dividing the Ask by the Bid. As to your script remove all the following from preMain as they are not required
              Alex

              PHP Code:
              var nAskSize getMostRecentAskSize();

              var 
              nBidSize getMostRecentBidSize();

              var 
              nAskBidSize nAskSize/nBidSize

              Comment


              • #8
                I did remove the extra variables.

                Must have been a glitch loading Esignal because I had 46 x 31 b/a.

                I restarted Esignal and now seeing 30 x 298.

                Thanks for your quick response.

                dom

                Comment


                • #9
                  Alexis:

                  I found one more thing. The formula does not update as the bid and ask size changes. I have to keep reloading.

                  Any ideas?

                  TIA,

                  dom

                  Comment


                  • #10
                    dom
                    That is because except on a Tick chart an efs executes only on a trade. If you run the same efs on a Tick chart you will see that Bid/Ask sizes will update concurrently to T&S even on Bid/Ask changes only
                    Alex

                    Comment


                    • #11
                      Thanks for the reply.

                      Is there anyway that the bid/ask size indicator results could be on the quote board instead of a chart?

                      TIA,

                      dom

                      Comment


                      • #12
                        dom
                        Not at this time. You may want to send in a request for an enhancement to [email protected]
                        Alex

                        Comment


                        • #13
                          Originally posted by Alexis C. Montenegro
                          dom
                          You can use getMostRecentAskSize() and getMostRecentBidSize() as in the example shown below. Note that these functions only work in real time ie they do not return historical data
                          For information on these and other Bid/Ask functions available in EFS see this article in the EFS KnowledgeBase.
                          Alex

                          PHP Code:
                          var nAskSize getMostRecentAskSize();
                          var 
                          nBidSize getMostRecentBidSize();
                          var 
                          nAskBidSize nAskSize/nBidSize
                          Alexis - I'm struggling to get to that KB article - please let me know if this is a problem at my end or global - thanks
                          Standing on the shoulders of giants.

                          Comment


                          • #14
                            wildfiction
                            I had inserted the wrong link and have now corrected it. You may want to try it again
                            Alex

                            Comment


                            • #15
                              Thanks Alexis - found the link but can't find the info that I'm looking for.

                              Is there an EFS function that will return the info that we see in the T&S window?

                              For example, I'd like to know the volume that has traded and if it was traded at bid or ask - just like we see on T&S if we look at the T&S window with trades only (not quotes)

                              Thanks!!
                              Standing on the shoulders of giants.

                              Comment

                              Working...
                              X