Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use Historical data when CalculateOnEachTick

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

    How to use Historical data when CalculateOnEachTick

    Hello Support,

    How can I plot using Historical data while CalculateOnEachTick?

    I use some volume code from your BuySellVolume, and would like to just process historical volume (like the Volume[]) before the realtime bar starts.

    How do I do this properly? What variable to test?

    I have tried googling this over the forum, nothing came out.

    Thank you.

    Mokaru Z.

    #2
    Hello Mokaru Zen,

    OnEachTick is a realtime only property.

    You can use tick relay to calculate BuySellVolume however that will only be an estimate and will not match how it works in realtime. BuySellVolume uses OnMarketData which is a realtime data override, with TickReplay that only shows the ask/bid prices at the time of the last event so it would not be the full ask/bid volume like it would be in realtime.

    Comment


      #3
      Hello Support,

      I just use "if (State == State.Historical)" , it works.

      Best regards,
      Mokaru Z.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X