Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RC1 VolumeProfile Calculate

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

    RC1 VolumeProfile Calculate

    I see that you've added this code to the OnStateChange() State.Historical block:
    Code:
    if (Calculate != Calculate.OnEachTick)
                        Draw.TextFixed(this, "NinjaScriptInfo", string.Format(NinjaTrader.Custom.Resource.NinjaScriptOnBarCloseError, Name), TextPosition.BottomRight);
    I'm wondering why, since this indicator uses data from OnMarketData() to draw the profile in OnRender(), which would seem to disregard entirely the value of Calculate as OnBarUpdate() does not enter the picture.

    Am I missing something?

    #2
    All of our indicators which use volume had checks added for policy consistency. This is to serve as a reminder for anyone who might want to modify and use OnBarUpdate, that volume indicators can exhibit problems with OnPriceChange or OnBarClose.

    You are correct that setting does not affect Volume Profile in its current state, but since the indicator deals with volume - it was added.
    MatthewNinjaTrader Product Management

    Comment


      #3
      With what Matthew has said in mind, I have prepared an indicator that does not contain the if statement in question. This prints this message out.

      Example1566028 relies on bid/ask tick updates expecting Calculate 'On each tick'
      We can see that the content of the message only applies when CalculationMode does not equal "OnEachTick"

      Please let us know if there is any other way we can help.
      Attached Files
      Last edited by NinjaTrader_JessicaP; 09-02-2016, 01:32 PM.
      Jessica P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      650 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X