Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot double as bar in panel2

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

    Plot double as bar in panel2

    Hello,

    after trying for days I still can not make it running in my indicator that the result (double value) from calculations each bar is plotted as a bar in a new panel below chart. I can print in output window and I can plot it in the chart above/below each bar but I dont understand how to plot it as a bar in a new panel with size/height from the double value (for each price bar in chart panel)

    Thank you!
    Tony
    Last edited by tonynt; 07-14-2021, 03:54 AM. Reason: translation error

    #2
    Hi Tony, thanks for posting.

    OnRender will need to be used to plot custom bars. There's an example here showing how to plot candle sticks in the OnRender method:
    https://ninjatraderecosystem.com/use...cators-sample/

    Kind regards,
    -ChrisL

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment


      #3
      Hello,

      thank you for your reply. My description was not correct, sorry about that, but this sample here is also interesting for new ideas.

      I meant with bars in a new panel plotting bars eg like volume.

      Thank you!
      Tony

      Comment


        #4
        Hi Tony, thanks for your reply.

        When you make your plot, specify the plot style as a Bar. e.g.

        AddPlot(new Stroke(Brushes.DodgerBlue, 2), PlotStyle.Bar, "VOLPlot"); //from the VOL indicator

        The plot value for each bar will be represented as a histogram, each bar starting from 0.

        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X