Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using historical data for a live strategy
Collapse
X
-
Using historical data for a live strategy
I am trying to run my strategy while connected to a live feed. My strategy needs to use some historical data for calculations. I looked through the help file and saw an option for this, but when I put a strategy in the strategies tab, the option is not present. What options do I have to resolve this?Tags: None
-
"Running a NinjaScript Strategy from Strategies Tab" in the help file. Number 4 on that page is what I'm referring to. Aside from that, will it make a difference if I'm using multiple time frames? My main time frame will be 1 min or tick, and I need the Lows of the last two weeks. I have the data, but it does not seem to be accessing it. Does that make sense or should I give a more thorough description?
Comment
-
That option is available via the BarsRequired property I mentioned earlier. Just type BarsReequired = 100 or whatever you want inside the Initialize() method.
Also, the option should still be there when you run it from the Strategies Tab of the Control Center. The best way to check if your strategy performs as expected is to throw the strategy up onto a chart.Josh P.NinjaTrader Customer Service
Comment
-
Does the BarsRequired property refer to main data series? In my case I am using ticks or 1 min, so how can I determine how many bars I would need? And if I end up needing 20,000, would that require a lot of time before the strategy starts running? If so, would it be smarter to manually enter the lows of the last two weeks? That would remove my requirement for historical data.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
57 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment