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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X