• 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 Bionian, Today, 10:10 AM
          1 response
          10 views
          0 likes
          Last Post Emma1
          by Emma1
           
          Started by tonynt, Today, 10:47 AM
          0 responses
          8 views
          0 likes
          Last Post tonynt
          by tonynt
           
          Started by sgordet, Today, 10:01 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by D Trader, Today, 09:43 AM
          0 responses
          5 views
          0 likes
          Last Post D Trader  
          Started by rafaelabe1977, Today, 03:51 AM
          1 response
          10 views
          0 likes
          Last Post sledge
          by sledge
           
          Working...
          X