![]() |
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
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |