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

Why is the text is only drawn once?

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

    Why is the text is only drawn once?

    I am using strategy builder.
    my condition is
    High[0] > High [1]

    Under "Do the following" I am drawing a text
    Draw.Text(this, @"HighHigh Text_1", @"HH", 0, (High[0] + 6) );

    This will draw the text every time the condition is true, but later down the line, when a new condition is true, the text is gone and drawn on the new bar satisfying the condition.

    why is the text, only drawn once? or kept only once? I wanna see the text on top of the candle every time the condition is true.

    #2
    Hello AaronKoRn,

    Thanks for the post.

    Thats to be expected when using a non-unique tag, you are just updating the existing object to a new bar/price. If you want multiple objects you need to edit the tag.
    In the do the following section edit your drawing object action
    For the Tag click Set
    In the window that opens where you can type in strings for the tag, click Add to add a new line.
    Click Set
    In the window that opens select Misc -> Current Bar.

    That will append the bar index to the tag name so it cannot update the previous object.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      omg, magic, thanks that works

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      55 views
      0 likes
      Last Post samish18  
      Started by arvidvanstaey, Today, 02:19 PM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by jordanq2, Today, 03:10 PM
      2 responses
      8 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
      47 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X