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 Mindset, Today, 06:46 AM
      0 responses
      8 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, Yesterday, 05:21 PM
      0 responses
      13 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      15 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      82 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      47 views
      0 likes
      Last Post PaulMohn  
      Working...
      X