Sometimes when I run a Playback or Optimization, the results come out all zeros. I'm not sure if this is because my strategy generates no trades, or the data is missing. Where do Playback and Optimization get their data from? Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Confused on Databases
Collapse
X
-
Confused on Databases
Hi there, I'm not clear on what each of the subdirectories under /db should hold?
Sometimes when I run a Playback or Optimization, the results come out all zeros. I'm not sure if this is because my strategy generates no trades, or the data is missing. Where do Playback and Optimization get their data from? Thanks
Tags: None
-
Hello timmbbo,
Backtesting, Optimizing, and loading historical data on a chart is Historical data.
Playback uses Market Replay data which are recordings. When you first open a chart in Playback, the historical data loads on the chart. When you click play and the recording starts playing, that's market replay data.
Historical data comes from a connected data provider or broker.
Market Replay data can be downloaded from NinjaTrader's Market Replay servers directly or can be recorded from a real-time feed.
The most popular futures and forex instruments are recorded on our market replay server and will usually have up to 90 days worth of data available.
Below is a link to a video on Playback with Market Replay data.
You can confirm what historical data and what market replay data you have downloaded in the Tools -> Historical Data window on the Edit tab.
An easy way to know if you have data in a script, is to print the time of the bar at the top of OnBarUpdate().
If you see bar time stamps, you've got data. And you can tell how much.
If you can confirm there is data, debug the script.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by trilliantrader, 04-18-2024, 08:16 AM
|
4 responses
18 views
0 likes
|
Last Post Today, 10:33 PM | ||
Started by mgco4you, Today, 09:46 PM
|
1 response
7 views
0 likes
|
Last Post Today, 09:56 PM | ||
Started by wzgy0920, Today, 09:53 PM
|
0 responses
9 views
0 likes
|
Last Post
by wzgy0920
Today, 09:53 PM
|
||
Started by Rapine Heihei, Today, 08:19 PM
|
1 response
10 views
0 likes
|
Last Post Today, 08:30 PM | ||
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
10 views
0 likes
|
Last Post Today, 08:25 PM |
Comment