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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment