• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Odds values in VitVolume

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

    Odds values in VitVolume

    When running the VitVolume indicator, beyond the volumes for ask, bid etc, I noticed that huge values are often stored, like below (They equal the bar closing price).

    Please, can you explain me why such behaviour. Why they are not zero, instead?

    Code:
    UnknownAsk: 6958
    UnknownBid: 6958
    AtAsk: 2
    AtBid: -2
    AboveAsk: 4
    BelowBid: -3
    Difference: 1
    Attached Files

    #2
    Hello stefanodp,

    Thank you for writing in.

    UnknownAsk and Bid look to be calling an AddAndSum method, which logically may be adding values and summing values, giving the values you see.

    Regarding why, I would suggest reaching out to the author of the script whose info is at the top of the script.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      thank you for the reply.
      Yeah, I noticed that method, but the behavior is still odd, since also the other properties (BelowBid, AboveAsk etc.) have a small (and correct) value in most of the case. Those data I wrote respect the volume in a period of a second.

      You can see the same behavior not only on UnkownAsk and Bid.

      It seems that when volume is zero the bar's closing price is stored, instead.
      I will try to contact the author for more info.

      Comment


        #4
        Hello stefanodp,

        there are three possible ways, how volume can be assigned to "Unknown" series:
        • For Historical bars there is no tick-accurate ask/bid data, so the volume is distributed in equal parts into the two "Unknown" series.
        • When indicator is starting up and there is already volume for the currently running bar, it is partitioned into "Unknown" series, too. This is the odd case you describe. All volume afterwards is assigned to the better fitting series.
        • In turbulent times (e.g. NFP) ask/bid assignment can get out of sync and I have to assign the volume to the "Unknown" series, to not lose it.

        Regards,
        Vitalij

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by krofs, Today, 03:37 PM
        2 responses
        9 views
        0 likes
        Last Post krofs
        by krofs
         
        Started by kalalex, Today, 03:51 PM
        0 responses
        2 views
        0 likes
        Last Post kalalex
        by kalalex
         
        Started by bdelorm, Today, 12:26 PM
        5 responses
        26 views
        0 likes
        Last Post bdelorm
        by bdelorm
         
        Started by kalalex, Today, 02:23 PM
        0 responses
        3 views
        0 likes
        Last Post kalalex
        by kalalex
         
        Started by kevinenergy, Today, 01:43 PM
        4 responses
        19 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X