Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Setting different bar lengths
Collapse
X
-
Setting different bar lengths
When constructing a strategy, how do you set different bar lengths. for example, close of a 1 minute bar compared to the open of the current 30 minute bar, or day bar. Also, is the close of the current bar updarted at every tick?Tags: None
-
Hello,
When constructing a strategy, how do you set different bar lengths. for example, close of a 1 minute bar compared to the open of the current 30 minute bar, or day bar.
>>Please review this link:
Also, is the close of the current bar updarted at every tick?
>>Generally speaking yes if you have CalculateOnBarClose set to False:
http://www.ninjatrader-support.com/H...BarClose1.html
Note that if you are using multiple bar types this behaves a bit differently so you should review the previous multtimeframe link regarding this as well.DenNinjaTrader Customer Service
-
Thanks - another question
Sometimes I use PAR SAR as triggers, which can trigger anywhere in the bar, but are relative the the value of the last bar. Is there a way to have the value reported at trade in backtesting be relative the to PAR SAR value of teh previous bar?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
86 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
67 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment