Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi Time Frame BuySellDifference
Collapse
X
-
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.Tags: None
-
Kate, thanks for your reply.Here's a clearer example of what I'd like: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.
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
-
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
- Likes 1
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment