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:	981
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 charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              72 views
              0 likes
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              152 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              162 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 05-10-2026, 08:12 PM
              0 responses
              100 views
              0 likes
              Last Post CarlTrading  
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              288 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Working...
              X