Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Nondisplaying Indicator?
Collapse
X
-
Nondisplaying Indicator?
Can I create an indicator that I use in a strategy that has no indication of any type on the chart it is added to. As if it were on Panel 0 - a nonexistent panel. If so - how do I remove all traces of the indicator from the chart? I still need the user to set properties for it!Tags: None
-
Hello,
Are you attaching this to a chart as you would for any indicator? When you attach the indicator delete the label field and change the indicator color to Transparent.
-
Not Diplsy Indicator
I suppose I could use a class and avoid standard indicator behavor but I need everything but the display so I want to see if I can remove waht I don't need from the display. I can make the indicator transparent - but is there a way to not reserve a panel for it (as if I set it to panel 0) and is there a way to not show the scale on the right axis?
Comment
-
-
Hi Bertrand,
I think I understand how to expose the values in the sample indicator you mention, but I'm not clear how I can access them from a strategy. (I'm sorry for the basic question)
I tried something like this in my strategy -
protected override void Initialize()
{
CalculateOnBarClose = true;
Add(SampleBoolSeries());
}
protected override void OnBarUpdate()
{
if (SampleBoolSeries().BullIndication == true)
Print("Bull");
}
But apparently, I am wrong and have no clue ...
Thanks for your help.
Comment
-
ZenMachine, that sample looks correct - you access the exposed BoolIndication series from the indicator - are you sure those values are getting set in the indicator as you would expect? Do the conditions for this trigger? Best might be to check first with the complete sample provided and then moving on accessing a custom series / variable.
Comment
-
If you don't want to display an indicator, simply don't call "Add" method.Originally posted by ZenMachine View PostHi Bertrand,
I think I understand how to expose the values in the sample indicator you mention, but I'm not clear how I can access them from a strategy. (I'm sorry for the basic question)
I tried something like this in my strategy -
protected override void Initialize()
{
CalculateOnBarClose = true;
Add(SampleBoolSeries());
}
protected override void OnBarUpdate()
{
if (SampleBoolSeries().BullIndication == true)
Print("Bull");
}
But apparently, I am wrong and have no clue ...
Thanks for your help.
if BullIndication is BoolSeries you have to add [0] at the end like:
protected override void OnBarUpdate()
{
if (SampleBoolSeries().BullIndication[0] == true)
Print("Bull");
}
Comment
-
That was it! Thank you!Originally posted by roonius View PostIf you don't want to display an indicator, simply don't call "Add" method.
if BullIndication is BoolSeries you have to add [0] at the end like:
protected override void OnBarUpdate()
{
if (SampleBoolSeries().BullIndication[0] == true)
Print("Bull");
}
I would also like to access these values from within Wizard. Is it possible, and how can I do so?
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
164 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
319 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment