• 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 ketoproplus, Today, 05:08 AM
          0 responses
          1 view
          0 likes
          Last Post ketoproplus  
          Started by asmmbillah, Today, 03:55 AM
          0 responses
          1 view
          0 likes
          Last Post asmmbillah  
          Started by cmarkb, Today, 12:04 AM
          0 responses
          4 views
          0 likes
          Last Post cmarkb
          by cmarkb
           
          Started by supernova0219, Yesterday, 07:48 PM
          0 responses
          7 views
          0 likes
          Last Post supernova0219  
          Started by qwfxny, Yesterday, 07:20 PM
          0 responses
          10 views
          0 likes
          Last Post qwfxny
          by qwfxny
           
          Working...
          X