![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2010
Location: San Antonio, Texas
Posts: 315
Thanks: 31
Thanked 2 times in 2 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi billr,
Most commonly this is the Y value where it's drawn. Check attached screenshot for an example.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2010
Location: San Antonio, Texas
Posts: 315
Thanks: 31
Thanked 2 times in 2 posts
|
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. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |