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 CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X