Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
help with bars
Collapse
X
-
Hello,
I removed my first post as I misread your post.
One way to do it is to start monitoring CurrentBar to see if it is >= to the bar number you want to start trading again:
Give it a try and post your code for tips.Last edited by NinjaTrader_Ben; 06-19-2010, 09:31 AM.DenNinjaTrader Customer Service
-
-
Hello,
I think you have the idea, and I'm not 100% sure I understand what you want, but it seems like "counter" will always be greater than CurrentBar since:
counter = CurrentBar + X;
Make sure the above statement is only called once until the entire system resets. Otherwise the while block will not be called ever.DenNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment