Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
What timeframe (1min or 5 min) to Enable a Strategy having 1 and 5 min inside
Collapse
X
-
What timeframe (1min or 5 min) to Enable a Strategy having 1 and 5 min inside
What timeframe (1min or 5 min) to select to Enable a Strategy that has a 1 min Buy indicator and a 5 min buy indicator variables and together inside for better confirmation? To place automated order, how do I enable both data series for the strategy already built having 2 data series inside? Strategy on the chart screen does not allow to select 1min and 5 min to and together.Tags: None
-
Hello, thanks for writing in. If the script is adding a data series then all you need to do is select the primary data series, the series that you see on the chart. If the strategy already has added a 1 and 5 minute series you do not need to run the strategy on either of these charts and may be able to select a completely different kind of chart.
Kind regards,
-ChrisL
-
Hi Chris, Thanks for your reply. Please provide an example of how I can select a completely different kind of chart for the strategy using both both 1 and 5 minute series signals in it. Thank you.
Comment
-
In general, you're going to probably want to run it on the 1-minute chart if it's using AddDataSeries to just add the 5-minute series. One of several reasons to elect to do it this way (and not run it on the 5-minute chart but AddDataSeries the 1-minute series) is because, then back-testing fills will, by default, be using the 1-minute bars on the chart which are more granular than the 5-minute ones so you can more easily tell, for instance, whether a stop loss or profit target was hit first if they are close together, and so your order timestamps are 1-minute granularity and not 5-minute.
Comment
-
Hi, If you want to run your script on both a 1 minute and a 5 minute series, you will need to run the script on a 1 minute chart, and just use AddDataSeries() to add the 5 minute chart. There is an example in the Strategy folder of the NinjaScript Editor called "SampleMultiTimeFrame". Please also see the guide on multi time frame scripts here:
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment