Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to let strategy calculate again on a new day in back test?
Collapse
X
-
how to let strategy calculate again on a new day in back test?
[IMG]file:///C:/Users/b/AppData/Local/Temp/moz-screenshot.jpg[/IMG]Hi. I am trying to backtest the sample moving average system. as in the picture, the moving avgs cross because the bars on the left and the right are on different days. How can I set up so that the backtest doesn't enter trades based on different day's data?Tags: None
-
You can restrict the first entry from certain hour, you can make a 24H session and more. Some methods require programming. I don't know what is your MA's lengths and what time frame you have, but for example if you have 80 period MA and 5Min chart and you want the MA to relay on the current day price, you will have only one last bar to count on. (Each pit session has 81 bars and 80 period MA needs 80 bars!).
Baruch
-
Please check into this sample for a time filter to limit the trading hours of your strategy - http://www.ninjatrader-support2.com/...ead.php?t=3226
The same could be done in the Strategy Wizard -
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
640 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 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
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
572 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment