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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-13-2010, 01:22 PM   #1
marcusplexus
Member
 
Join Date: Jan 2010
Posts: 73
Thanks: 11
Thanked 1 time in 1 post
Default Plotting Arrows via Strategy Analyzer

Hi,

Using Strategy Analyzer I am unable to print "up arrows" on the [Chart] tab. The goal is to help me quickly identify some market situations, not simulate entries and stops results. Is this achievable?

Conditions and Alerts, Set1, "When the following are true":
Line1: Low[2] > Low[1]
Line2: Low[1] > Low[0]
Do the following:
DrawArrowUP("My up arrow" + CurrentBar, false, 0,0, Color.Lime)

When I use "Order Management" actions instead of "DrawArrowUp" stuff does print on the Chart.

Thanks for your help.

- MarcusPlexus
marcusplexus is offline  
Reply With Quote
Old 07-13-2010, 01:45 PM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

MarcusPlexus, you can try adding Print() statements to your "Do the following" sections to make sure the code blocks are being executed. The Print() command can be found under the Misc section as "Print to output window".
NinjaTrader_Austin is offline  
Reply With Quote
Old 07-13-2010, 01:46 PM   #3
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Actually, try specifying a value other than 0 for the y location of the arrow, like Low[0] or something like that. I just noticed this after I posted my first reply. The arrow is being drawn, you just can't see it because it is at a price of 0 on the chart.
NinjaTrader_Austin is offline  
Reply With Quote
Old 07-13-2010, 01:53 PM   #4
marcusplexus
Member
 
Join Date: Jan 2010
Posts: 73
Thanks: 11
Thanked 1 time in 1 post
Default

That was it! Many thanks!
marcusplexus is offline  
Reply With Quote
Reply

Tags
plot, strategy analyzer

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
arrows from strategy on chart add000 Charting 3 06-03-2010 09:34 AM
Bug: Paint issues with strategy arrows when using Global cursor jdfagan Version 7 Beta General Questions & Bug Reports 7 03-18-2010 02:24 PM
Strategy arrows on chart thus no strategy is running poseidon_sthlm Strategy Development 2 01-15-2010 10:35 AM
Plotting SMA on Market Analyzer designer Market Analyzer 3 11-25-2008 06:30 AM
Strategy not showing arrows and audio alerts Viper3 Strategy Development 1 08-06-2007 11:16 AM


All times are GMT -6. The time now is 12:30 PM.