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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
263 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
168 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
170 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
257 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
209 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment