• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Timeframe Function ?

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

    Multi Timeframe Function ?

    Hello,
    I'm new here.
    I've few questions:

    1. Is there function like TimeFrameSet(), TimeFrameRestore(), Timeframeexpand() in Ninjatrader?

    2. (Optional question) Is there function like Varset and Varget in NInjatrader?



    regards

    [Ninjatrader7 or 8 ]
    Last edited by fxtraders; 10-06-2016, 01:28 AM.

    #2
    Hi

    In NT7, You can use Add(PeriodType.Minute, 60); to add 60 min as additional timeframe.
    Or Add(PeriodType.Month,1); Add(PeriodType.Week,1); Add(PeriodType.Day,1);

    If you need help to develop custom scritps, I'm available.

    Thanks.

    Comment


      #3
      Here is a link of how to use MTF in 8

      http://ninjatrader.com/support/helpG...us/?editor.htm

      Comment


        #4
        Hello fxtraders, and thank you for your questions.

        Multi-time frame support is documented in this Help Guide page.

        http://ninjatrader.com/support/helpG...nstruments.htm

        To your second question, since Ninja is built on top of C# we may use C# methods to access a global scope.

        For NinjaTrader 7, this is very easy. We provide the files (My) Documents\NinjaTrader 7\bin\Custom\Indicator\UserDefinedMethods.cs and (My) Documents\NinjaTrader 7\bin\Custom\Strategy\UserDefinedMethods.cs . You can store global variables that will be included for all Indicators in this file. Make sure they are part of the Indicator class. For example,


        partial class Indicator
        {
        /// <summary>all the plots from all the indicators</summary>
        public static Plot[][] allThePlots;
        }



        NinjaTrader 8 will not have a similar file. I am including a publicly available link from the MSDN C# documentation which will guide you toward putting together a global scope file in NT8.

        https://msdn.microsoft.com/en-us/library/c3ay4x3d.aspx

        Whichever way you choose, you will want to add some logic surrounding your global objects.


        Please let us know if there are any other ways we can help
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Arkadiy_B, Today, 06:43 AM
        0 responses
        2 views
        0 likes
        Last Post Arkadiy_B  
        Started by leontancfa, Today, 06:09 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by soulfx, 12-01-2017, 08:44 AM
        3 responses
        1,019 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by Parmenides48, 04-09-2019, 03:32 AM
        10 responses
        53 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by NinjaCustomer, Today, 01:48 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_EricB  
        Working...
        X