Can anyone help me?
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
AddDataSeries volume
Collapse
X
-
Hello bebbus,
Thanks for your post.
Just to clarify. Are you wanting to add a plot of 5 min Volume to a 15 minute chart? The AddDataSeries() function would only allow the script to use that series for calculations. If you wanted to plot the value or draw candles you would need to do that in your script as well. You would also need to assign the Volume value to the primary value of the indicator.
AddPlot() to add a plot to a script-- https://ninjatrader.com/support/help...s/?addplot.htm
Value is the indicators primary value series -- https://ninjatrader.com/support/help...-us/?value.htmJosh G.NinjaTrader Customer Service
-
bebbus,
You could work with a 5 minute series in your script by using AddDataSeries()
Code:else if(State == State.Configure) { AddDataSeries(BarsPeriodType.Minute, 5); }
Next, you can use a custom Series or the Value series to store the value of your summed volumes. Which one you use will depend on how you want to draw/plot the value on your chart. The Value series is the primary 'indicator' value that will be passed to your plot.
You can use AddPlot() to create a plot of the summed volumes or one of the "Draw" methods to put the volume as a text value on your chart.
The value you will want to store in the series can be obtained by using the 5 minute series you created as the input to the indicator. You would do this by using the correct Overload that has an ISeries input.
VOL(ISeries<double> input)[int barsAgo]Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, 03-12-2024, 06:12 AM
|
5 responses
32 views
0 likes
|
Last Post Today, 08:34 AM | ||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
13 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment