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

MTF: can primary serie be same as secondary serie?

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

    MTF: can primary serie be same as secondary serie?

    Hello.

    Tell me please, can primary data-serie (in multy-timeframe indicator or strategy) be same to one of the secondary series?

    For example, if I want to make indicator, wich values must be independent of primary serie.

    My practice evidence, this can cause unstable results.
    Last edited by fx.practic; 05-18-2011, 01:32 AM.
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Are you talking about the same exact instrument with the same exact timeframes? If so, what is the secondary data series for? If you are using different timeframes, everything should work fine. Can you please post the evidence you've seen that shows unstable results?
    AustinNinjaTrader Customer Service

    Comment


      #3
      As I see now, my problem not in same time frames, but, I still need help.

      I made indicator, that calculates direction of trend at current bar (Mono.cs) and write it on chart.

      Then I made another Indicator (Integral.cs), that call Mono.cs 4 times and write on chart direction of trend of 4 currency pairs (EURGBP, EURUSD, GBPJPY, USDJPY).

      When I started thread, both indicators changes values when scrolling chart from left to right. But Integral.cs did it only if primary dataserie wasn't one of secondary (EURGBP, EURUSD, GBPJPY, USDJPY).

      Now, Integral.cs stop change it's values if scrolling. Now it show only values for last bar on chart.

      Please look at attach - there are some sequential screenshots, that illustrate process of scrolling.

      Mono.cs (bottom) change it's values, Integral.cs - don't.
      Attached Files
      Last edited by fx.practic; 05-18-2011, 01:37 AM.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        I want to pay your attention, that, in first moment after applying Integral.cs to chart, it show values for last visible bar (as Mono.cs), but, in half-second, it show only values for last bar on chart.

        Please, look in attach - I made screen video and some screenshots of this video to illustrate this.


        Please, tell me: can I make Integral.cs to redraw eash bar (like Mono.cs do)? I need it for debuging - indicator is complex enough.


        P.S. Can I You please, change title of the thread to "Multy instrument indicator: redrawing DrawTextFixed() offline"
        Attached Files
        Last edited by fx.practic; 05-18-2011, 02:59 AM.
        fx.practic
        NinjaTrader Ecosystem Vendor - fx.practic

        Comment


          #5
          Thank you for the screenshots, fx.practic. Unfortunately I'm not sure what you are seeing or expecting to see. Can you please share a simple script and steps needed to see the issue? It looks like you are applying the script and then scrolling back.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            Yes. I am applying the script and then scrolling. But, I am scrolling forward.

            Mono-instrument indicator changes text when scrolls.

            Multy-instrument indicator doesn't change text when scroll.

            How cam I make Multy-instrument indicator change text when scroll?
            Attached Files
            Last edited by fx.practic; 05-22-2011, 11:26 PM.
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment


              #7
              Hello fx.practic, this is unfortunately a known limitation you've run into here as MultiSeries indicator will process all bars up to the most current / loaded bar (not depending on scroll position), which is different from single series ones.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Thank You.
                fx.practic
                NinjaTrader Ecosystem Vendor - fx.practic

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cmtjoancolmenero, Yesterday, 03:58 PM
                4 responses
                23 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Brevo, Today, 01:45 AM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by rjbtrade1, 11-30-2023, 04:38 PM
                2 responses
                74 views
                0 likes
                Last Post DavidHP
                by DavidHP
                 
                Started by suroot, 04-10-2017, 02:18 AM
                5 responses
                3,021 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by Stanfillirenfro, Today, 07:23 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X