Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Dot

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

    Draw Dot

    Hello,
    Is there a way to make it so the...Color.Red...in this code can be made to be user definable...to choose any color you want when in the indicator settings portion of this indicator.

    // Paints a red dot on the current bar 1 tick below the low
    DrawDot("tag1", true, 0, Low[0] - TickSize, Color.Red);

    Thanks

    #2
    Originally posted by dwalls View Post
    Hello,
    Is there a way to make it so the...Color.Red...in this code can be made to be user definable...to choose any color you want when in the indicator settings portion of this indicator.

    // Paints a red dot on the current bar 1 tick below the low
    DrawDot("tag1", true, 0, Low[0] - TickSize, Color.Red);

    Thanks
    yes it's possible.
    create private Color myColor field, create public property for it and don't forget to serialize...

    Comment


      #3
      Thanks roonius, here is the tip for this topic - http://www.ninjatrader-support2.com/...ead.php?t=4977

      Comment


        #4
        Thanks for the help.

        After adding in the private Color borderColor and private Color fillColor fields and also adding them under Properties, I get this error message: No overload for method 'DrawDot' takes '6' arguments CS1501 - click for info 84 5

        DrawDot(
        "Up Dot" + CurrentBar,false, 0, SMA(trendperiod)[0], BorderColor, FillColor);

        I used this as an guide/example from the SampleColorInput:
        DrawRectangle("rectangle", 0, High[0], 5, Low[5], BorderColor, FillColor, 10);


        Any ideas?

        Thanks

        Comment


          #5
          Hi, please use this overload for the DrawDot - DrawDot(string tag, bool autoScale, int barsAgo, double y, Color color)

          There is only one color input for DrawDot, not two.

          Comment


            #6
            Ok, I got it now.

            Thanks for your help.

            Comment

            Latest Posts

            Collapse

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