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

Arrow Size

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

    Arrow Size

    Can someone please tell me how to increase the size of an arrow. Got them to print correctly, color is no problem, can move the distance, but could not find anything on formatting the size of the arrow.

    This is for DrawArrowUp (Down). Would like to be able to make them 2x tick size.

    Thanks,

    phoenix
    Last edited by phoenix; 02-07-2010, 05:16 PM.

    #2
    phoenix, unfortunately not supported changing this programmatically, you could use DrawText and a symbol font such as Windings for more control.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks, Bertrand,

      Was just looking for a little help over the 'over-50' eyesight.

      phoenix

      Comment


        #4
        I understand phoenix...you could for example also try plotting two arrows above / below each other at different tick offsets...
        BertrandNinjaTrader Customer Service

        Comment


          #5
          That I can do...will give it a try.

          Thanks again.

          Comment


            #6
            Hey Bertrand,

            Tried several different ways to get it to print both arrows, but could only get it to print 'the latter line' in the program.

            if (CrossBelow(Value, 0, 1))
            {
            DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+2* TickSize, Color.OrangeRed);
            DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+5* TickSize, Color.OrangeRed);
            }

            and

            if (CrossBelow(Value, 0, 1))
            DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+2* TickSize, Color.OrangeRed);

            if (CrossAbove(Value, 0, 1))
            DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0] -2* TickSize, Color.Cyan);

            if (CrossBelow(Value, 0, 1))
            DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+5* TickSize, Color.OrangeRed);

            if (CrossAbove(Value, 0, 1))
            DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0] -5* TickSize, Color.Cyan);

            Also tried using '&&' with curly brackets, but would not compile...

            Looked through the Help Guides and learned a couple of things, but nothing to help me with this.

            Regards,

            phoenix

            Comment


              #7
              phoenix, you would need to use unique tags for each up dn arrow to be plotted, i.e.

              Code:
              if (CrossBelow(Value, 0, 1))
              {
              DrawArrowDown("MyArrowDown1" + CurrentBar, 0, High[0] + 2 * TickSize, Color.OrangeRed);
              DrawArrowDown("MyArrowDown2" + CurrentBar, 0, High[0] + 5 * TickSize, Color.OrangeRed);
              }
              Same for the bullish side of things...
              BertrandNinjaTrader Customer Service

              Comment


                #8
                BINGO!!!!

                So simple when you know what you're doing LOL

                Thanks for the help...Now even I can see those puppies.

                Regards,

                phoenix

                Comment


                  #9
                  Great it works now for you Phoenix!
                  BertrandNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by usazencort, Today, 01:16 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post usazencort  
                  Started by kaywai, 09-01-2023, 08:44 PM
                  5 responses
                  603 views
                  0 likes
                  Last Post NinjaTrader_Jason  
                  Started by xiinteractive, 04-09-2024, 08:08 AM
                  6 responses
                  22 views
                  0 likes
                  Last Post xiinteractive  
                  Started by Pattontje, Yesterday, 02:10 PM
                  2 responses
                  21 views
                  0 likes
                  Last Post Pattontje  
                  Started by flybuzz, 04-21-2024, 04:07 PM
                  17 responses
                  230 views
                  0 likes
                  Last Post TradingLoss  
                  Working...
                  X