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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      57 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      41 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      61 views
      0 likes
      Last Post PaulMohn  
      Working...
      X