NinjaTrader Support Forum  

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 10-12-2009, 09:33 PM   #1
paschall
Junior Member
 
Join Date: Dec 2008
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default referencing an empty value

I am trying to incorperate the bwAC indicator in a strategy. One of the features of this indicator is to calculate values in either the positive (increasing acceleration) or negative (decreasing acceleration) condition. these plot as red (negative) or green (positive). A copy of the data box values is below:

bwAC bwAC
bwAC (Negative) 0.0000806
bwAC (Positive)
bwAC 0.0000806

As you can see, in this instance, bwAC (Positive) is empty and a value of 0.000806 in the Negative category (i.e., decreasing acceleration). I an trying to find out how to access these values and NOT take a long trade when the bwAC (Positive) value is not empty (i.e., has some value). Thus, it is accelerating in a positive direction.

My question is how do I set a trade condition for "enter LONG when bwAC (Positive) has some value"?

Thanks!
Dwayne
paschall is offline  
Reply With Quote
Old 10-13-2009, 04:35 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

You would need to reference the 'positive' plot in the wizard and then compare to your numerical value (misc categotry) on the right side in the Condition Builder - http://www.ninjatrader-support.com/H...nBuilder1.html
NinjaTrader_Bertrand 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
Color.Empty not working any longer zeller4 Indicator Development 3 06-30-2009 05:03 AM
empty folders ckait Miscellaneous Support 15 04-27-2009 03:14 PM
Checking for Empty dataseries values richa61416 Strategy Development 2 03-19-2008 07:12 AM
Strategy list now completely empty henry.omd Strategy Analyzer 7 12-20-2007 10:07 PM
Empty Indicator List yimbot Charting 6 10-17-2007 10:27 PM


All times are GMT -6. The time now is 01:43 AM.