Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help need with indicator coding

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

    Help need with indicator coding

    Hi,

    I found a custom indicator on-line which i am trying to modify.

    Add(new Plot(new Pen(Color.Blue, 3), PlotStyle.Dot, "VAH"));

    I would like to modify this line of code to specify the dashstyle as well, but I cannot figure out the formatting.

    Can you please help?

    Thanks,
    Last edited by renoschmitt; 10-05-2012, 06:34 PM.

    #2
    You need to be aware of how many lines you've plotted, but if this was the first (Plots[0]):

    // Set the pen used to draw the plot as a dashed line
    Plots[0].Pen.DashStyle = DashStyle.Dash;

    Courtesy of page 655 of NT7 Help Guide

    Comment


      #3
      Working great thanks a lot.

      Comment


        #4
        Glad it works. Can you click on the "thanks" button?

        Comment


          #5
          I thought i had done that, or maybe i thanked myself by mistake? lol
          Not used to forums posting the lasted post on top.

          Comment


            #6
            Originally posted by renoschmitt View Post
            I thought i had done that, or maybe i thanked myself by mistake? lol
            Not used to forums posting the lasted post on top.
            Change your display mode to make the fora threaded instead, or even hybrid.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            61 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            39 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            21 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            23 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            51 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X