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 zstheorist, Today, 07:52 PM
          0 responses
          3 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          149 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          5 views
          0 likes
          Last Post tkaboris  
          Working...
          X