Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Make line plot vary between dash and dot style

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

    #16
    Originally posted by NinjaTrader_PaulH View Post
    Hello catinabag,

    Thanks for your post.

    With a plot, you cannot change the PlotStyle or DashStyle in the same manner as the PlotBrush.

    The PlotStyle or DashStyle would be applied to the entire plot.

    You may be able to accomplish your goal by using multiple plots, each set to the DashStyle of your choice. I've attached a screenshot of a quick example.

    Click image for larger version

Name:	DashStylePlotExample.PNG
Views:	941
Size:	131.9 KB
ID:	1108664
    Hi Paul,

    I attempted to test your "quick example" script/codes in your post above but I'm not successful. Please, could you post the full working script/codes.

    Regards.

    Omololu

    Comment


      #17
      Hello Omololu,
      Here you get a sample EMA cross, it plots dash style when fast ema is above slow ema & dot style when fast ema is below slow ema. Hope it helps!
      SampleEmaCross.zip

      Comment


        #18
        Thanks s.kinra,

        The SampleEmaCross is a little different. I love to have Paul's script/codes.

        Omololu

        Comment


          #19
          Hello Omololu,
          Here you get it.
          PlotStyleExample.zip

          Comment


            #20
            Originally posted by s.kinra View Post
            Hello Omololu,
            Here you get it.
            [ATTACH]n1126624[/ATTACH]
            s.kinra,

            Great ... and thanks

            Omololu

            Comment


              #21
              Hello omololu,

              Thanks for your reply.

              It appears member s.Kinra has you sorted.

              The screesnhot I provided shows the code that I used.

              The only thing not shown was region properties, which I am posting below:

              #region Properties

              [Browsable(false)]
              [XmlIgnore]
              public Series<double> Test1
              {
              get { return Values[0]; }
              }

              [Browsable(false)]
              [XmlIgnore]
              public Series<double> Test2
              {
              get { return Values[1]; }
              }
              #endregion

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              573 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X