Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
indicator plot
Collapse
X
-
Hello fiddy,
This can't be done from a single indicator. You would have to create two seperate indicators to accomplish plotting two values, where one is in the Price Panel and one is in the Indicator Panel.
Here is the DrawOnPricePanel Help Guide to assist you further.
-
shouldnt it be technically still be doable in a single indicator? ofc you would still have to apply the indicator 2 times to the chart. one time for each panel. so its basicly the same has having too diffrent indicators. but at least you could contain all the code in that one indicator file if you so wish to.Last edited by BigRo; 12-22-2015, 02:46 PM.
Comment
-
You can certainly do the latter. Pretty much that is what the first response said that you should do.Originally posted by BigRo View Postshouldnt it be technically still be doable in a single indicator? ofc you would still have to apply the indicator 2 times to the chart. one time for each panel. so its basicly the same has having too diffrent indicators. but at least you could contain all the code in that one indicator file if you so wish to.
Comment
-
how can u make a dataset within an indicator accessible to other indicators without plotting them.
below is what i currently have.
i can make StDevi accessible to other indicators by plotting them in the origin indicator. i would like to make it accessible but not have to plot Stdev in the original indicator. (i am plotting other datasets in the origin indicator which use StDevi set as part of the calculations)
protected override void Initialize()
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "StdDevi"))
protected override void OnBarUpdate()
StdDevi .Set(StdDev(trueRange, LookBack)[0]);
#region Properties
public DataSeries StdDevi
{
get { return Values[0]; }
}
Comment
-
You set it up as a DataSeries, not as a Plot.Originally posted by fiddy View Posthow can u make a dataset within an indicator accessible to other indicators without plotting them.
below is what i currently have.
i can make StDevi accessible to other indicators by plotting them in the origin indicator. i would like to make it accessible but not have to plot Stdev in the original indicator. (i am plotting other datasets in the origin indicator which use StDevi set as part of the calculations)
protected override void Initialize()
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "StdDevi"))
protected override void OnBarUpdate()
StdDevi .Set(StdDev(trueRange, LookBack)[0]);
#region Properties
public DataSeries StdDevi
{
get { return Values[0]; }
}
ref: http://ninjatrader.com/support/helpG...ries_class.htm
Comment
-
You must have its access level as public if you want to access it from outside. Let us see your sample code.Originally posted by fiddy View Postthanks Koganam for advice. i did try this but then when i created another indicator and refered back to the dataseries i got msg when i tried to compile
"is inaccessible due to its protection level"
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
586 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
341 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
555 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment