NinjaTrader Support Forum  

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 07-12-2012, 03:40 PM   #1
billr
Senior Member
 
Join Date: Apr 2010
Location: San Antonio, Texas
Posts: 315
Thanks: 31
Thanked 2 times in 2 posts
Default Strat/Indicator wont draw arrows

I have a very simple strategy that I want to draw an arrow when conditions are met. When I set the strategy (using wizard) to draw an arrow or triangle, nothing happens. When I change that action to change color background, it works.

Are there some conditions that prevent certain drawing actions? Also I should mention this is on historical data, not live or replay.

thanks.
billr is offline  
Reply With Quote
Old 07-12-2012, 03:41 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi billr,
Most commonly this is the Y value where it's drawn. Check attached screenshot for an example.
Attached Images
File Type: gif WizardDraw.png (49.8 KB, 15 views)
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-12-2012, 05:29 PM   #3
billr
Senior Member
 
Join Date: Apr 2010
Location: San Antonio, Texas
Posts: 315
Thanks: 31
Thanked 2 times in 2 posts
Default

Thanks Ryan, I'm sure that's the problem. On another note, I used the strategy wizard to create what is really an indicator. How difficult is it to convert a strategy into an indicator?

Thanks.
billr is offline  
Reply With Quote
Old 07-13-2012, 07:24 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Code should be identical -- just have to copy over each section into an indicator. The one thing that's different is that strategies typically have a 20 bar "minimum bars required" that's not in indicators. This means if you ever index past value with, then you need to handle this separately in your indicator code. More details on this item are available here:
http://www.ninjatrader.com/support/f...ead.php?t=3170
NinjaTrader_RyanM 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
Draw arrows on first condition only djkiwi General Programming 16 02-29-2012 07:31 AM
Draw Arrows not displaying on chart anymore, USED TO WORK! Now it doesn't! dennho Indicator Development 8 01-03-2012 04:55 PM
Draw arrows on multiple charts macprogrammer Charting 1 11-04-2010 02:35 AM
Help o CrossAbove/below with arrows indicator RitaPacheco Indicator Development 6 06-27-2010 09:04 PM
Problems learning to change line plot color & draw arrows once only cclsys Indicator Development 39 03-29-2009 03:00 PM


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