Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Flow Delta Bar data

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

    Order Flow Delta Bar data

    I'm building a strategy that detects if the latest order flow delta bar is over 1000. Since you cant access the order flow data directly, i made a SMA (1 period) of the delta bar. This works if my chart is updating per bar (Calculate.OnBarClose) but has trouble detecting it when my strategy is set to update "Calculate.OnEachTick" or "Calculate.OnPriceChange".

    My code is

    Code:
    if ((High[0] > High[1]) //entry
    &&
    (SMA1[1] > 1000))
    Any idea?

    Thanks!

    #2
    Hi Ousher, thanks for your post.

    If the Strategy Builder is being used to make the strategy then using the OrderFlow tools will not be possible because we require two things: a one tick series to be added using AddDataSeries(), which can be done in the builder, and to update the indicator on each tick of the 1 tick series; that can not be performed in the builder. There's a full code example using Cumulative Delta here.

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X