Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bars ago in Condition builder
Collapse
X
-
Bars ago in Condition builder
I'm new to NT and I've tried to use the Bars ago feature in condition builder of the Stategy wizard (applied on tutorial 1), but unfortunately this parameter has no effect on the generated code. Can anyone tell me how to solve this problem ?Tags: None
-
Master, welcome to the forums! Which condition did you try to model using the wizard and where / how would you expect the 'barsAgo' parameter to change the generated code?
This just refers to how many bars back you want a value ( price, indicator ) to be accessed - http://www.ninjatrader-support.com/H...mparisons.html
-
Bertrand, thanks for your reply. With some indicators, when I fill the Bars ago parameter the indicator translates into "indicator[Bars ago]", but with other indicators (like the SMA in the tutorial1 of the NThelp file) it translates only into "indicator" and the Bars ago parameter is skipped.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, Yesterday, 04:31 AM
|
0 responses
39 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
289 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
289 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
135 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
96 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment