Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BarSpeed Multi-TF
Collapse
X
-
BarSpeed Multi-TF
Hi all, anyone know how to make this simple script that is attached, into a Multi-Data Series. I already added another DataSeries. i'm just wondering if I have to change the "Value" plot? or TimeSpan? how can I do this?Tags: None
-
Hello ginx10k,
Thanks for your post.
Is your goal that you want to have multiple plots to show multiple time frames, or you want the indicator to plot data based on your added data series?
For the former, you will need to add additional plots to the script and have your secondary data series update temporary variables which will then be assigned to the Values[][] of your new plots on BarsInProgress 0. You will want to update plots on BarsInProgress 0 because plots are synchronized to the primary data series.
For the latter, the same approach would be taken to assign temporary variables a value and then assign your plots on BarsInProgress 0.
I've attached an example that can demonstrate plotting information from a secondary data series.
If you have not done so, I would highly recommend reviewing the Multi Time Frame and Instruments documentation as it provides a complete guide for creating a multi time frame script. Help Guide information is publicly available.
Multi Time Frame and Instruments - https://ninjatrader.com/support/help...nstruments.htm
Please let us know if you have any questions.Attached Files
-
That just confused me. LoL.
How can I make this into Multi_TF.Please keep it simple if possible.Code:TimeSpan timer = Time[0] - Time[1]; Value.Set(Math.Min(timer.TotalMinutes, MaxBarTime)); //Bar speed is calculated with 'Value', if you can make 'Value' multi-Timeframe Array, the you have Bar Speed ;
Comment
-
Hello ginx10k,
Value is a series of data points used to display a plot. It sounds like you want to have the plot display a different value altogether rather than adding a plot based on a different time frame with a different study.
I could not offer further direction for modifying a study, which may be a task better suited for a NinjaScript Consultant. If you would like, I can have a representative of our EcoSystem reach out with more information.
If you are inquiring on a functionality of NinjaScript without modifying a study, could you clarify further on your goal so I can help further? Pictures can help where possible.
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
608 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
355 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment