Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 FilesJimNinjaTrader Customer Service
-
That just confused me. LoL.
How can I make this into Multi_TF.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.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
41 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
1 response
11 views
0 likes
|
Last Post
by bltdavid
Today, 02:44 PM
|
||
Started by port119, Today, 02:43 PM
|
0 responses
7 views
0 likes
|
Last Post
by port119
Today, 02:43 PM
|
||
Started by Philippe56140, Today, 02:35 PM
|
0 responses
7 views
0 likes
|
Last Post Today, 02:35 PM | ||
Started by 00nevest, Today, 02:27 PM
|
0 responses
7 views
0 likes
|
Last Post
by 00nevest
Today, 02:27 PM
|
Comment