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 cmoran13, Yesterday, 01:02 PM
|
0 responses
30 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
22 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment