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 geddyisodin, Yesterday, 05:20 AM
    8 responses
    49 views
    0 likes
    Last Post geddyisodin  
    Started by DayTradingDEMON, Today, 09:28 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by George21, Today, 10:07 AM
    0 responses
    9 views
    0 likes
    Last Post George21  
    Started by navyguy06, Today, 09:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X