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

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 adeelshahzad, Today, 03:54 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by RookieTrader, Today, 07:41 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kujista, Today, 05:44 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by elderan, Yesterday, 08:03 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by samish18, Yesterday, 08:57 AM
    8 responses
    25 views
    0 likes
    Last Post samish18  
    Working...
    X