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 > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 06-17-2008, 02:52 PM   #1
JT454
Junior Member
 
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy Condition Builder - Subtracting Indicator Values

When developing a condition for a strategy, is there a way to add or subtract the value of an indicator from the previous bar value? For example, CCI 14 period, subtract the current bar (0) CCI value from the previous bar (1)value. Also, is it possible to take the absolute value of this sum/difference? The only expressions I find are the comparative ones (<,>,>=,<=,etc). Is it something that needs to be coded? I have searched through the Help section to no avail. If you could point me in the right direction it would be very much appreciated. Thanks very much. Jim
JT454 is offline  
Reply With Quote
Old 06-17-2008, 03:15 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

You can try using an offset. Select "Price" as the offset type and offce CCI by CCI of 1 bar ago. This is done on the left side of the condition builder for example, then you would compare the difference to some value on the right side.

http://www.ninjatrader-support.com/H...ItemValue.html

There is no absolute value indicator.
NinjaTrader_Ray 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
'Stops & Targets' missing from the Condition Builder? Elliott Wave Strategy Development 3 06-15-2008 07:44 PM
Cannot seem to launch Condition Builder in NinjaScript Editor TapeReader Miscellaneous Support 3 04-01-2008 10:38 PM
Condition builder - Swing HH nico_p Strategy Development 2 03-12-2008 05:17 PM
Condition Builder OUFan Strategy Development 6 12-19-2007 02:05 PM
Condition Builder - Time Comparison Error davidfw1866 Strategy Development 4 10-30-2007 07:16 AM


All times are GMT -6. The time now is 02:51 PM.