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
Help with plotting
Collapse
X
-
Help with plotting
I created a simple indicator to calculate and plot a series. The output shows as a line even though i call for a bar in the PLOT. Why is this? I want to be able to choose HISTOGRAM (Bar), Line, etc at the chart. Haven't had this problem with other plotting activities.
AddPlot(new Stroke(Brushes.DodgerBlue, 7), PlotStyle.Bar, "mySeries");Tags: None
-
Hello dmking,
This would be a change where you need to remove/re add the indicator for it to be reflected. Have you done that or re applied the indicator since updating that?
I would otherwise expect that to work as a bar plot, I would likely need more details about the other code in the file to see where the error may be.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello dmking,
Thanks for confirming that.
When you are back at it you may want to take a look at the VOL indicator, I believe that is the most simple example of a Bar plot being used so that could be referenced for comparisons to make sure you are coding similar.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Hello dmking,
Thanks for checking that, yes it must be related to something in that script. What state are you creating the plot in? I can't really think of any specific reason that would limit the plot to a certain type other than something code-wise affecting it or some other script you have applied affecting it.
If you are unable to find a solution and the script is something you can post I would be happy to take a look at the code to see if I can spot anything. The alternative would be to try and generate a new script and see if just setting Value[0] to the Volume[0] works, if not upload that and we can review that.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
21 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment