Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawArrowUp/Down

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

    DrawArrowUp/Down

    I'm using DrawArrowDown and DrawArrowUp to paint arrows on an indicator.

    I'm using DrawArrowDown("tagName",1,ff1,Color.Red);

    Question. Since the value for "tagName" is a string value, is there an elegant way to change the "tagName" for each new bar ?

    The way its coded now, every time a new Arrow is drawn, the code erases the arrow before it, because the tag name is the same. I want all the arrows drawn to remain on the indicator.

    If tag was an 'int' not a 'string', I could just increment the value each time. But is there a way to do that with a string value, so each tag will be a different string ?

    Regards,
    R. C.

    #2
    DrawArrowDown("tagName" + CurrentBar,1,ff1,Color.Red);
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks !

      Comment


        #4
        Placing text under an arrow

        Is there any way to place text under an arrow?

        If I use DrawArrowUp(...) to draw an arrow, how would I place the letters, 'SL', underneath the arrow?

        Regards,
        R. C. Singleton

        Comment


          #5
          You will need to use DrawText() and place it at a y-value that is below your arrow.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X