Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Multiframe indicator issue

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

    Multiframe indicator issue

    Hello,
    I am developing multiframe indicator that uses a lot of time frames – from ticks to yearly bars.
    I only need 100 bars for each frame for calculations (yearly sequence can be shorter, of course).
    My problem is, when I add all the timeframes, indicator becomes extremely slow. At the same time, if it runs on 15 min chart or below, Daily, Weekly and above history is too short.
    I suppose it may have to do with Bars to Load property of the chart. How can I set it programmatically for the indicator?
    Generally speaking, I’d like to request 100 bars (and no more, not to cause sluggishness) for each time frame.

    Thank you for your terrific platform.

    #2
    Hello,

    Thanks for the forum post and welcome to the NinjaTrader support forum.

    Unfortunately this is a limitation of NinjaTrader at this time. All scripts will run on the days to load of the primary series and will attempt to load all this data. The indicator will not start until all the data is loaded.

    Let me know if I can be of further assistance.

    Comment


      #3
      Brett,
      Thank you for the quick response.
      So there is no way to access chart’s settings from the indicator?
      If user manually right clicks chart, selects Data Series>Data and sets “Load data based on” =Bars and “Bars to load”=100, everything works. But I cannot do it programmatically due to NT limitations, correct?

      Comment


        #4
        Hello,

        This is correct and no problem.

        Let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by BarzTrading, Today, 07:25 AM
        2 responses
        12 views
        1 like
        Last Post BarzTrading  
        Started by devatechnologies, 04-14-2024, 02:58 PM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by tkaboris, Today, 08:01 AM
        0 responses
        3 views
        0 likes
        Last Post tkaboris  
        Started by EB Worx, 04-04-2023, 02:34 AM
        7 responses
        162 views
        0 likes
        Last Post VFI26
        by VFI26
         
        Started by Mizzouman1, Today, 07:35 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X