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 Shansen, 08-30-2019, 10:18 PM
      24 responses
      938 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      3 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      2 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      27 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Working...
      X