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

How to set styleplot.bar width to "Match data series width"?

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

    How to set styleplot.bar width to "Match data series width"?

    In my indicator, I can set my bar width easily but I did not find a way to set the bar width, as easily as in the GUI where I can click a logic box to set my bar width to the data series width.

    Help will be greatly appreciated.

    Dan

    #2
    Hello Dan_D_Trader,

    Are you asking about the Data Series Bar Width property?


    From my understanding no Data Series information can be modified by a NinjaScript.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This exactly what I was looking for, unfortunately.
      Is there a way to obtain the actual chart bar width so it can be transfer to the AddPlot?

      Comment


        #4
        Hello Dan_D_Trader,

        I believe you are looking for the Plot's AutoWidth parameter.

        I.E.

        AddPlot(new Stroke(Brushes.Orange, 2), PlotStyle.Bar, "MyPlot");
        Plots[0].AutoWidth = true;

        Please let me know if this does not resolve your inquiry.
        Last edited by NinjaTrader_Jim; 08-07-2020, 10:58 AM.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        11 responses
        39 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by FrazMann, Today, 11:21 AM
        0 responses
        5 views
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        52 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        27 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X