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 Barry Milan, Yesterday, 10:35 PM
        5 responses
        16 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        13 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        11 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        8 views
        0 likes
        Last Post nandhumca  
        Working...
        X