Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 pechtri, 06-22-2023, 02:31 AM
            10 responses
            124 views
            0 likes
            Last Post Leeroy_Jenkins  
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Yesterday, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Yesterday, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Yesterday, 03:01 PM
            2 responses
            22 views
            0 likes
            Last Post helpwanted  
            Working...
            X