• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 Mike3238, Today, 07:09 PM
          0 responses
          1 view
          0 likes
          Last Post Mike3238  
          Started by sambo81, Today, 06:57 PM
          0 responses
          3 views
          0 likes
          Last Post sambo81
          by sambo81
           
          Started by erichuff, Today, 04:53 AM
          1 response
          26 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by stevenev1, Today, 01:43 PM
          0 responses
          8 views
          0 likes
          Last Post stevenev1  
          Started by shinuvu, Today, 11:05 AM
          3 responses
          18 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X