Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:
    [B]UnknownAsk: 6958
    UnknownBid: 6958[/B]
    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 MarianApalaghiei, Today, 10:49 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by XXtrader, Today, 11:30 PM
        0 responses
        3 views
        0 likes
        Last Post XXtrader  
        Started by love2code2trade, Yesterday, 01:45 PM
        4 responses
        28 views
        0 likes
        Last Post love2code2trade  
        Started by funk10101, Today, 09:43 PM
        0 responses
        9 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        37 views
        0 likes
        Last Post jeronymite  
        Working...
        X