Might have cracked it. Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Signals from the previous day triggering trades
Collapse
X
-
It was too good to be true.....
It seems I thought I had cracked it as it worked when 'minimum bars required' was set to 0.
I reloaded the strategy today and it would not let me enable with min bars set to 0 so I set it to 2 and the same old problems resurfaced.
Any idea why this would be? Firstly why it wouldn't let me enable the strategy with min bars set to 0 and why this would have any effect on the code. Esspecially since the IF(Historical) statement is still in there?
I could just try and set min bar to 0 but I want to make sure the code is working absolutely 100% correctly as i'm trying start trading this live with a reasonable amount of contracts.
Cheers
Mark
Comment
-
I can't remember to be honest Bertrand. I think I enabled it before the open on Monday and it worked fine. It did not process any historcial bars. I couldn't enable it today without changing the min bar lookback to 2 but then some signals from yesturday where processed at the open. I unenabled it and tried again and it was processing the historcial signals from today as well. The IF (Historcial) statement is at the top if my OnBarUpdate section and seems to work if min bar required is 0.
I'm just puzzled as to why this happens.
I'll see if I can enable it tomorrow with min bars 0 but in the meantime, if you could explain the relationship of min bars required to how the strategy operates, I would be grateful.
Many thanks
Mark
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
670 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment