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 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