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 WHICKED, Today, 12:45 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by samish18, Today, 01:01 PM
          0 responses
          5 views
          0 likes
          Last Post samish18  
          Started by WHICKED, Today, 12:56 PM
          0 responses
          8 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by Spiderbird, Today, 12:15 PM
          2 responses
          11 views
          0 likes
          Last Post Spiderbird  
          Started by FrazMann, Today, 11:21 AM
          2 responses
          8 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X