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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X