Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Force indicator to plot in specific panel
Collapse
X
-
Thanks Tony, I would do the coloring then in one of your Add()ed indicators and drive to a desired panel as needed - http://www.ninjatrader.com/support/f...ead.php?t=3228
-
Hello,
thanks for you replies.
To answer in order of appearence;-)
koganam, this was an example. When I post here eg the MACD avg to plot in another panel and something is not correct or clear 100% (this can be very easy because I can not post the whole coding of an idea) then there will be discussion about the correct syntax. To avoid some misinterpreting and to focus on the core I took "kindergarden-background-coloring". Got me?
Bertrand with BackColorAll there will be the background of all panels colored, but not eg only panel2 (of 4 panels). How to select one (x) of more (y) panels please? (And I can not have any color more in my price-chart, already looks like Carneval-Rio-Indicator;-)
Best
Tony
Leave a comment:
-
Tony, were you perhaps using BackColorAll here instead in your scripts?
Leave a comment:
-
Originally posted by tonynt View PostBertrand,
I have done so, but as I work with different dataseries I´m faced with restrictions now.
Therefore I have the idea not to plot as indicator but in a strategy because of differnt dataseries I can add there (rangebars that will cause problems in the chart)
EG "&& (Rising(MACD(BarsArray[8],12,26,9).Avg) == true)
{BackColor=Color.LightGreen;}
But how to do for having backcolor in panel2 and not in panel 1?
Thanks
Tony
The behavior of BackColor is to color only the Panel in which the indicator is loaded. What am I confused about?
ref: http://www.ninjatrader.com/support/h.../backcolor.htm
Leave a comment:
-
Bertrand,
I have done so, but as I work with different dataseries I´m faced with restrictions now.
Therefore I have the idea not to plot as indicator but in a strategy because of differnt dataseries I can add there (rangebars that will cause problems in the chart)
EG "&& (Rising(MACD(BarsArray[8],12,26,9).Avg) == true)
{BackColor=Color.LightGreen;}
But how to do for having backcolor in panel2 and not in panel 1?
Thanks
Tony
Originally posted by NinjaTrader_Bertrand View PostRoland, you could unfortunately not dictate it in the same way when adding indicators to strategies here. Some members have reported success though with dynamically changing the DrawOnPricePanel property in OnBarUpdate to draw on price and non price panels from the same script.
For the main plots, you would need to set overlay to false in Initialize() to not have it drawing on price per default and 'scrunching' the scales.
Leave a comment:
-
Force indicator to plot in specific panel
As always, thanks Bertrand. I will give these ideas a run.
Leave a comment:
-
Roland, you could unfortunately not dictate it in the same way when adding indicators to strategies here. Some members have reported success though with dynamically changing the DrawOnPricePanel property in OnBarUpdate to draw on price and non price panels from the same script.
For the main plots, you would need to set overlay to false in Initialize() to not have it drawing on price per default and 'scrunching' the scales.
Leave a comment:
-
Force indicator to plot in specific panel
I have an indicator which puts arrows on the price panel.
But I would like to plot some other values unrelated to price in a separate panel
with that same indicator
As it stands now, regular plot now comes out in the price panel.
Because the values are not like prices, the price panel gets out of alignment
and I have to manually move the plot to a new panel when I load the indicator.
Is there a way in an indicator to say xxx.Panel=2 as when adding a plot to a strategy?
Thanks in advance.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
603 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
349 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
104 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
560 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Leave a comment: