Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarBrush on second data series

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PaulH
    replied
    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.

    Leave a comment:


  • DanPrado
    replied
    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:


  • NinjaTrader_PaulH
    replied
    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:


  • DanPrado
    replied
    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:


  • NinjaTrader_PaulH
    replied
    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:


  • DanPrado
    started a topic BarBrush on second data series

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by ct, Today, 04:16 AM
1 response
12 views
0 likes
Last Post ct
by ct
 
Started by aeadon, Today, 02:27 AM
1 response
5 views
0 likes
Last Post NinjaTrader_Jason  
Started by op1031, Today, 01:52 AM
0 responses
1 view
0 likes
Last Post op1031
by op1031
 
Started by Aramunno, Yesterday, 10:11 PM
2 responses
18 views
0 likes
Last Post Aramunno  
Started by sdauteuil, Yesterday, 09:38 PM
0 responses
6 views
0 likes
Last Post sdauteuil  
Working...
X