Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multiple timeframes and "Days to load"

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

    multiple timeframes and "Days to load"

    I am not sure this is the right forum, but it seems the closest one. This question concerns running a strategy, either from a chart, from the NT Strategies tab, or the Strategy Analyzer, and how to specify the amount of data to load.

    I have a multi-timeframe indicator that looks at a range of timeframes up to say 240min bars. Suppose I want to use that indicator within a strategy that runs on 1 second or 1 tick bars. In order for the indicator to get enough (say 200) of the 240min bars, it will need about 34 days of data. Does this mean my strategy has to work its way through 34 days worth of 1 second bars or 1 tick bars, just so it can run for an hour ?

    On a chart, I can choose whether to load data by days or bars. If I choose days, then a 1 second chart gets a lot of bars. OTOH, if I choose bars, a multi-timeframe indicator gets the same number of bars for each timeframe (e.g. 400 240min bars and 400 1 second bars), but I am not sure that this does any harm, other than seeming odd. At least, it does not need 34 days of 1 second bars.

    When starting a strategy from the Strategies tab, I cannot see an option for loading data by number of bars, only "Days to load".

    The Strategy Analyser is different again (if I want to back-test on 1 second bars, then probably I have to accept that it will take a while).

    Please advise how best to specify the quantity of data to load when a strategy runs on very fast bars, and uses an indicator that needs much longer bars.

    #2
    splat, generally the amount of days loaded is set for all series involved by the primary series your strategy / script is using. So if one series requires a certain lookback to deliver the results seeked, the the other series would load this data as well - specifying this more granular programmatically is on our feedback list for consideration.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks. I think you are saying that it does not make much difference at present whether I specify number of bars to load or number of days to load.

      Comment


        #4
        Correct, as long as the data loaded is long enough to satisfy BarsRequired for all series and also for your calculations to initialize properly.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Gerik, Today, 09:40 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RookieTrader, Today, 09:37 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by alifarahani, Today, 09:40 AM
        0 responses
        5 views
        0 likes
        Last Post alifarahani  
        Started by KennyK, 05-29-2017, 02:02 AM
        3 responses
        1,284 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by AttiM, 02-14-2024, 05:20 PM
        11 responses
        186 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X