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
BarBrush on second data series
Collapse
X
-
Hello DanPrado,
"can a script draw / change properties on alternate panels? Meaning that if I place two data series in a chart, each on its own panel, can the script address the 2nd panel as well?" No, an indicator type script can add its own indicator panel and draw in that and a price panel but it could not draw in two price panels. A strategy can only draw in its primary price panel.
-
Good learning about BackBrushAll, although it won't help this specific requirement since the brush does not apply to both series.
Related question: can a script draw / change properties on alternate panels? Meaning that if I place two data series in a chart, each on its own panel, can the script address the 2nd panel as well?
Leave a comment:
-
Hello DanPrado,
Thanks for your reply.
You could try using BackBrushAll which would draw behind the bars on all panels,
Reference: https://ninjatrader.com/support/help...ckbrushall.htm
We can also leave this thread open for any forum member input who might have a creative solution.
Leave a comment:
-
Thanks for the quick reply.
As an alternative maybe I could try painting a region that overlaps the candle color on the alternate series (when sharing the same chart panel)... thoughts on that, maybe you can point to an example? Or any other creative ideas?
Appreciate your help!
Leave a comment:
-
Hello DanPrado,
Thanks for your post.
A script can only perform Barbrush actions on the primary series (which would be the primary series of the chart).
A script will only have knowledge of the primary series of the chart.
Leave a comment:
-
BarBrush on second data series
Hello,
I have a strategy that trades two instruments (using AddDataSeries() for the 2nd one), this works well.
When adding both the Master and 2nd instrument data series on the same chart, whether on the same panel or separate ones, the trade executions show up perfectly for both instruments. So far so good.
What I haven't been able to figure out is how use BarBrush to impact the 2nd data series, I can only get it to work on the master instrument. Thought maybe using "BarsInProgress == 1" would allow me to address but it did not work.
Is there a way to alter the properties of the 2nd data series on the chart?
Thanks in advance.
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rajendrasubedi2023, Today, 09:50 AM
|
2 responses
14 views
0 likes
|
Last Post Today, 10:48 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
4 responses
29 views
0 likes
|
Last Post
by geddyisodin
Today, 10:45 AM
|
||
Started by geotrades1, Today, 10:02 AM
|
2 responses
8 views
0 likes
|
Last Post
by geotrades1
Today, 10:43 AM
|
||
Started by ender_wiggum, Today, 09:50 AM
|
1 response
5 views
0 likes
|
Last Post Today, 10:10 AM | ||
Started by bmartz, Today, 09:30 AM
|
1 response
10 views
0 likes
|
Last Post Today, 09:48 AM |
Leave a comment: