Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Condition Builder - Subtracting Indicator Values
Collapse
X
-
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. JimTags: None
-
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.
There is no absolute value indicator.RayNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment