Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame BuySellDifference

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

    Multi Time Frame BuySellDifference

    Hello, I've attached a small indicator I'm working on. I'd like to make it a MultiTime Frame. I already added a 20 tick Range bar for Index[1]. The goal is to put this indicator on a small range bar like 4 tick range, and be able to read the BuySellDiff (delta) from the 20 Tick range bar. I tried BarsInProgress == 1.It didn't work. How can I assign the buys - sells from the Index[1] so that it can be read from the 4 tick small range bar chart? I know that Volumes[1][1] works fine. This seems harder to do. please help.
    Attached Files

    #2
    Hello ginx10k,

    Thank you for your post.

    What exactly is the behavior you're seeing? I'm seeing this plot historically and in real time when Tick Replay is turned on on the chart:

    Click image for larger version

Name:	2021-12-28_11-09-23.png
Views:	129
Size:	53.3 KB
ID:	1183479

    What is the expected behavior vs what you're seeing?

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Kate, thanks for your reply.
      The goal is to put this indicator on a small range bar like 4 tick range, and be able to read the BuySellDiff (delta) from the 20 Tick range bar. I tried BarsInProgress == 1.It didn't work. How can I assign the buys - sells from the Index[1] so that it can be read from the 4 tick small range bar chart? I know that Volumes[1][1] works fine. This seems harder to do. please help.
      Here's a clearer example of what I'd like:

      1. Lets say, if you have a 20 tick Range bar chart open lets call it, Higher Range chart , and the previous HRC bar is an upbar with a BuyVol[1] of 30.

      2. Now, I open a 4 tick range bar chart lets call it Small Range chart. I want to lets say, Draw.Text(....."BuyVolume of HRC" + (hrcBuyVol).ToString()....)

      3. I want to directly be able to write on the Small Range Chart that the hrcBuyVolume of the very previous HRC Up bar is = to 30.

      Comment


        #4
        Hello ginx10k,

        Thank you for your note.

        Some things I'd like to point out here:

        First, plots are synced to the Primary data series only and cannot be synced to a secondary bar series, so you're actually chopping up that delta based on the primary series bar closes. I would use a custom series synced to the secondary data series to collect and hold your delta values.

        Secondly, OnMarketData will create a subscription for each series added, even if they are the same instrument. So you're actually getting duplicate updates for each tick that comes in. You'd want to divide the buys/sells by 2 before you assign them to your custom series when BIP = 1.

        I've created a simple example that illustrates creating a custom series synchronized to the added series to hold the delta information and printing the current and prior delta to the chart using Draw.TextFixed, this should get you going in the right direction.

        Please let us know if we may be of further assistance to you.
        Attached Files

        Comment


          #5
          That's awesome Kate. I'm going to play with this for a while. Thanks so much! Happy New Year!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X