Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Arrow and Draw Text on same bar

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

    Draw Arrow and Draw Text on same bar

    Hello,

    I am developing and indicator which identifies candle patterns.

    (I am new to NT and script, but not new to c#)

    I have written the following in the OnBarUpdate method:


    if(BDoji){
    if (Open[0] == Close[0]){
    DrawArrowDown("Doji", 0,High[0]+TickSize, Color.Blue);
    DrawText("Doji","Doji",0,High[0]+TickSize*2,Color.Blue);
    }
    }

    I only get the text drawn and not the arrow. If I draw the text before the arrow then the arrow is drawn. .i.e only the last draw is taken into account. Is this correct?

    I am using NT7 on Win 7.


    Edit: Okay I am being daft - the problem is the same tag names ! SIlly me!

    #2
    rsksmiles,

    I am happy you have resolved your issue,

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 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
    547 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