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
Data above or below bar using volumetric bars data order flow chart of NT8.
Collapse
X
-
Hello avrege,
Thanks for your first post in the forums!
You can access the Volumetric bar data through Ninjascript. Here is a link to the help guide which provides an example of accessing all of the available data: https://ninjatrader.com/support/help...tric_bars2.htm
To display the data, you could use the Draw.text() method: https://ninjatrader.com/support/helpGuides/nt8/?draw_text.htm
This would allow you to print above or below the bar, the text then will move as the bar moves on the chart.
Paul H.NinjaTrader Customer Service
- Likes 1
-
Originally posted by NinjaTrader_PaulH View PostHello avrege,
Thanks for your reply.
Can you provide an example of what you want to do? I am asking because I can read your question a couple of different ways and want to make sure I match up my answer with what you really want to do.
Comment
-
Hello avrege,
Thanks for your reply.
As previously advised in post #2 you can print the bar statistics on the chart where you wish using Draw.Text().
Regarding plots of those values, you can create an indicator that reads the Volumetric bar statistics through ninjascript as previously linked in post #2 and plot using the addPlot(): https://ninjatrader.com/support/help...8/?addplot.htm
I've created an example script of both using draw.text and plotting the min/max seen delta, using a volumetric chart as the input:
Paul H.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello avrege,
Thanks for your reply.
As previously advised in post #2 you can print the bar statistics on the chart where you wish using Draw.Text().
Regarding plots of those values, you can create an indicator that reads the Volumetric bar statistics through ninjascript as previously linked in post #2 and plot using the addPlot(): https://ninjatrader.com/support/help...8/?addplot.htm
I've created an example script of both using draw.text and plotting the min/max seen delta, using a volumetric chart as the input:
Comment
-
Hello avrege,
Thanks for your reply.
In that case then you would need to add Volumetric bars to your script using AddVolumetric() and segment your code for BarsInProgress. here is the same example as previous but adding volumetric bars to the script and segmenting the code as needed:
In both cases the help guide provide the references needed for using on a volumetric chart or using volumetric bars in a script for a non volumetric chart:
Paul H.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello avrege,
Thanks for your reply.
In that case then you would need to add Volumetric bars to your script using AddVolumetric() and segment your code for BarsInProgress. here is the same example as previous but adding volumetric bars to the script and segmenting the code as needed:
In both cases the help guide provide the references needed for using on a volumetric chart or using volumetric bars in a script for a non volumetric chart:
https://ninjatrader.com/support/help...tric_bars2.htm
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello avrege,
Thanks for your reply.
As in the previous case where you wanted Volumetric data displayed as text on standard bar chart you had to add volumetric data series to your script, you would do the same.
Comment
-
PaulH - This is really interesting and tried using the sample code you provided above to plot min/max seen delta using volumetric chart. But I'm getting MaxSeenDelta does not exist in the current context as error. Is it possible to provide the sample as a file for me to import and try?
Thank you very much
Comment
-
hi ,
You have to first declare it in the indicator class like this
private Series<double> maxDelta;
then inside OnBarUpdate method get the value inside it
maxDelta[0] = barsType.Volumes[CurrentBar].MaxSeenDelta;
*maxDelta is just a name ,you can name it your way.
try this hope it may help you.
thank you
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by yertle, Yesterday, 08:38 AM
|
7 responses
28 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
21 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
4 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
||
Started by gravdigaz6, Yesterday, 11:40 PM
|
1 response
8 views
0 likes
|
Last Post Yesterday, 11:49 PM | ||
Started by MarianApalaghiei, Yesterday, 10:49 PM
|
3 responses
10 views
0 likes
|
Last Post Yesterday, 11:33 PM |
Comment