Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What timeframe (1min or 5 min) to Enable a Strategy having 1 and 5 min inside

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

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

    Comment


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


        #4
        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.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          66 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          141 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X