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

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 arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          18 views
          0 likes
          Last Post traderqz  
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          48 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X