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!
See more
See less

Partner 728x90

Collapse

Dynamically change bar with on a chart?

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

    Dynamically change bar with on a chart?

    Is there a way to programmatically dynamically change the bar with for a specified bar(s) on a chart? Say I want to change the bar width on a bar 5 bars previously. Can I change the width on that bar only?

    Also, what about indicator plots? Can I change the width of an indicator plot at specified locations?
    Thank you.

    #2
    Hello higler,

    Thanks for your post.

    While it is possible to programmatically change the width of a plot, it is not possible to programmatically change the width of the bars on a chart.

    To change the width of the first added plot try:

    Plots[0].Pen.Width = 3;
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      If I add an indicator plot with a PlotStyle.Bar can I specify the lower portion of the plot. For instance, I don't want the indicator to plot all the way from zero. Perhaps from 3371 (low value) to 3375 (upper value) so that he indicator would plot a PlotStyle.Bar between 3371 and 3375.

      Comment


        #4
        Hi higler,

        This is not possible with NinjaTrader 7.

        However, I would be happy to submit a feature request in your behalf for this.

        When our development department gives me a tracking ID for this request I will be sure to update you with this so that you may look into this at a later time.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you but it is not necessary to submit a feature request. I found another way to do this which works fine.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Perr0Grande, Today, 08:16 PM
          0 responses
          2 views
          0 likes
          Last Post Perr0Grande  
          Started by elderan, Today, 08:03 PM
          0 responses
          5 views
          0 likes
          Last Post elderan
          by elderan
           
          Started by algospoke, Today, 06:40 PM
          0 responses
          10 views
          0 likes
          Last Post algospoke  
          Started by maybeimnotrader, Today, 05:46 PM
          0 responses
          12 views
          0 likes
          Last Post maybeimnotrader  
          Started by quantismo, Today, 05:13 PM
          0 responses
          7 views
          0 likes
          Last Post quantismo  
          Working...
          X