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 usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        603 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        21 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Working...
        X