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 cmoran13, Yesterday, 01:02 PM
|
0 responses
30 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
22 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment