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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment