Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotStyle

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

    PlotStyle

    In a strategy, I am trying to display an indicator with a PlotStyle of Square. In the Initialize method I have:

    LinReg(Close,lr_length).Plots[0].PlotStyle.Square;
    Add(LinReg(Close,lr_length));

    I get compiler errors relating to PlotStyle. What am I doing wrong?

    #2
    Do you want to do this?
    LinReg(Close,lr_length).Plots[0].PlotStyle = PlotStyle.Square;

    Comment


      #3
      That gives me "The name 'PlotStyle' does not exist in the current context"

      Comment


        #4
        Please try this:
        LinReg(Close,lr_length).Plots[0].PlotStyle = Gui.Chart.PlotStyle.Square;

        Comment


          #5
          That did it. My OO is rusty. Thanks Dierk.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, 04-18-2024, 08:16 AM
          5 responses
          22 views
          0 likes
          Last Post trilliantrader  
          Started by Davidtowleii, Today, 12:15 AM
          0 responses
          3 views
          0 likes
          Last Post Davidtowleii  
          Started by guillembm, Yesterday, 11:25 AM
          2 responses
          9 views
          0 likes
          Last Post guillembm  
          Started by junkone, 04-21-2024, 07:17 AM
          9 responses
          70 views
          0 likes
          Last Post jeronymite  
          Started by mgco4you, Yesterday, 09:46 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X