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 ghoul, Today, 06:02 PM
                  3 responses
                  14 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  44 views
                  0 likes
                  Last Post jeronymite  
                  Started by Barry Milan, Yesterday, 10:35 PM
                  7 responses
                  20 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by AttiM, 02-14-2024, 05:20 PM
                  10 responses
                  180 views
                  0 likes
                  Last Post jeronymite  
                  Started by DanielSanMartin, Yesterday, 02:37 PM
                  2 responses
                  13 views
                  0 likes
                  Last Post DanielSanMartin  
                  Working...
                  X