else if (State == State.DataLoaded)
{
StdDev1 = StdDev(Period);
// OBV1 = OBV();
Momentum1 = Momentum(MomentumPeriod);
Range1 = Range(Close);
SMA1 = SMA(Range1, Period);
// SMA2 = SMA(OBV1, ADXPeriod);
BOP1 = BOP(Close, BOP1Period);
BOP2 = BOP(Close, BOP2Period);
// ADX1 = ADX(ADXPeriod);
BOP1.Plots[0].PlotStyle = PlotStyle.Line;
BOP1.Panel = 2;
AddChartIndicator(BOP1);
BOP2.Plots[0].PlotStyle = PlotStyle.Line;
BOP2.Panel = 3;
AddChartIndicator(BOP2);
Momentum1.Panel = 4;
AddChartIndicator(Momentum1);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trouble adding multiple indicators to chart
Collapse
X
-
Trouble adding multiple indicators to chart
I would like to have two or more instances of an indicator within my strategy. If I use the close of a more granular data series, ie use 1 minute for my BOP2, I can get two BOP lines in one panel when I apply my strategy to a chart. However, if I want to use the 0 data series and adjust the smoothing factor to have two or more lines in the same panel, when applied it has no panel two and shares a panel with the data series. Any help would be greatly appreciated. Thank you.
Code:Tags: None
-
Hello zrobfrank,
I see that you are trying to set the panels yourself in code however that is not currently supported and may cause problems. Do you still see the problem if you only do AddChartIndicator and don't try to manipulate the panel?
Code:// remove this BOP1.Panel = 2; AddChartIndicator(BOP1);
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
55 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment