Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Outline Color DrawArrowUp and DrawTriangleUp or down

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

    Outline Color DrawArrowUp and DrawTriangleUp or down

    How do I change the outline color of the arrows and triangles generated by DrawArrowUp, DrawArrowDown and the DrawTriangle equivalents in code.

    The methods only allow me to control the color of the object but when it draws on the chart it has a blue outline (i.e if I use transparent I still see a blue outline arrow)

    Thanks

    #2
    Cnecorp,

    Unfortunately this is currently not supported with the arrows. With the triangle, please try the following :

    DrawTriangle(string tag, bool autoScale, int anchor1BarsAgo, double anchor1Y, int anchor2BarsAgo, double anchor2Y, int anchor3BarsAgo, double anchor3Y, Color color, Color areaColor, int areaOpacity)



    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Hi Adam

      Suspect I did not explain it properly, the method you pointed me to did not help,
      tried it already.

      I am not trying to put an outline on the triangle painted by the DrawTriangleUp/Down Method. Rather, I am trying to get rid of it.

      The marker drawn is automatically outlined blue, questions are:
      1. Is this the default?
      2. Can I change it e.g. to transparent?


      Thanks for your help.

      Comment


        #4
        cnecorp,

        The draw triangle up and draw triangle down methods call DrawTriangle(), which has the ability to set both the fill color and the outline color. What I am seeing is the attached when I set to transparent color using DrawTriangleDown().

        Do you perhaps have a screen shot, or can you take one, of the behavior you are wanting to change?
        Attached Files
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Suspect this is going to be a "Feature".
          Attached is the screen capture of what is on the screen,
          Outline only is the one with colour set to transparent
          the other colour set to red

          Thanks
          Attached Files

          Comment


            #6
            cnecorp,

            This is a default, there is no way to change it in DrawTriangleUp or DrawTriangleDown. You can however use DrawTriangle() to do this, and specify your own triangle objects that are the same size, then change the colors to whatever you want.

            Please let me know if I may assist further.
            Adam P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            160 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            307 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            245 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            348 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            178 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X