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 cmoran13, 04-16-2026, 01:02 PM
          0 responses
          43 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          26 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          163 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          98 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          158 views
          2 likes
          Last Post CaptainJack  
          Working...
          X