NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-21-2012, 02:46 AM   #1
rsksmiles
Junior Member
 
Join Date: Dec 2011
Posts: 14
Thanks: 3
Thanked 2 times in 2 posts
Default 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!
rsksmiles is offline  
Reply With Quote
Old 04-21-2012, 12:08 PM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

rsksmiles,

I am happy you have resolved your issue,

Please let me know if I may assist further.
NinjaTrader_AdamP is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! when conditions are met,it will draw arrow,text & alert but does not play sound JC2000 General Programming 3 10-05-2011 07:50 PM
How to draw text above arrow? jrobert Version 7 Beta General Questions & Bug Reports 1 08-16-2010 04:14 PM
Draw Arrow if Bar Over Certain Pip Size pmn100 General Programming 2 09-07-2009 07:44 AM
Draw Text above the high of the bar Winnie Indicator Development 7 03-27-2009 08:28 AM
Can draw dot, arrow, etc. but cannot draw line cunparis Strategy Development 10 03-21-2009 01:44 AM


All times are GMT -6. The time now is 10:20 PM.