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

      Comment


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

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



        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.

        The C# namespace alias qualifier `::` is used to access a member of an aliased namespace. The `::` operator is often used with the `global` alias, an alias for the global namespace


        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 ageeholdings, Today, 07:43 AM
        0 responses
        7 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X