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 Renorail, Today, 01:38 PM
      1 response
      6 views
      0 likes
      Last Post Renorail  
      Started by BrianARice, Today, 01:16 PM
      0 responses
      5 views
      0 likes
      Last Post BrianARice  
      Started by Ousher, Today, 09:08 AM
      0 responses
      6 views
      0 likes
      Last Post Ousher
      by Ousher
       
      Started by Unsuitable, Today, 08:41 AM
      0 responses
      14 views
      0 likes
      Last Post Unsuitable  
      Started by newdill, Today, 07:54 AM
      0 responses
      8 views
      0 likes
      Last Post newdill
      by newdill
       
      Working...
      X