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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    308 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X