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

Tracing an indicator embedded in a strategy..

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

    Tracing an indicator embedded in a strategy..

    I'm embedding my indicator in my strategy.
    In the indicator I have Print(....) statement.
    My intention was to use Print to trace the indicator behaviour to inderstna internal computation sequence.
    However Print doesn't place anything in output window.

    Of course, the same Print works for this indicator used standalone.

    Could you suggest any way to trace, except of printing messages to file/stream ?

    #2
    My intention was to use Print to trace the indicator behaviour to UNDERSTAND internal computation sequence.

    Sorry

    Comment


      #3
      xTrader1, not sure I follow - did you put a Print statement in each method you use in the indicator so you can track the processing sequence? http://www.ninjatrader-support2.com/...ead.php?t=3418
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Bertrand View Post
        xTrader1, not sure I follow - did you put a Print statement in each method you use in the indicator so you can track the processing sequence? http://www.ninjatrader-support2.com/...ead.php?t=3418
        I placed "Print" in OnBarUpdate in the embedded indicator.

        Comment


          #5
          I see, then you would need to apply the indicator and open the output window to see the generated statements...if you want to trace the strategy calls to this indicator you have embedded, place a Print statement in your strategy as you call this to trace.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Bertrand View Post
            I see, then you would need to apply the indicator and open the output window to see the generated statements...if you want to trace the strategy calls to this indicator you have embedded, place a Print statement in your strategy as you call this to trace.
            I know about all above. What I need is to see in output window a sequence like:
            MyStrategy: CurrentBar=1 ,y=1
            MyEmbeddedIndicator1: CurrentBar=1 , x1=27
            MyEmbeddedIndicator2: CurrentBar=1 , x1=46
            MyStrategy: CurrentBar=2 ,y=1
            MyEmbeddedIndicator1: CurrentBar=2 , x1=33
            MyEmbeddedIndicator2: CurrentBar=1 , x1=46

            ....etc

            Would both Print statements (in the strategy and in the embedded indicator work, I would receive the sequence above.

            I you can assure me the Print statemnt works in the embedded indicator, I should check another possibility - that for certain reason the indicator is not invoked at all by the strategy.

            Comment


              #7
              Yes, just did a little test xTrader1, you should see the called sequence this way.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                It is RenkoType.

                My strategy is based on multiframe RenkoType indicators, provided by Roonius a few months ago.
                I'm using it succesfully in several proprietary indicators, but is it possible that the multiframe strategy cannot work with this Renko type and this is the reason I cannot see the indicator printouts ?

                Comment


                  #9
                  Might be xTrader1, I vaguely remember issues around this custom chart type as far as the OnBarUpdate() calls go, we'll provide a fully supported RenkoBars type per default with NinjaTrader 7 - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    I don't dare to ask when it will be released.

                    Comment


                      #11
                      NT7 is already in a closed beta which will be an open beta shortly. I don't have an ETA at this point in time though.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #12
                        What's the most recent version of this?
                        Can you perhaps give me a download link?
                        _____________________________________
                        Marius

                        Comment


                          #13
                          Hello Marius Titulescu,

                          Are you referring to Renko Bars or the Debugging resources at the following link?

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by trilliantrader, 04-18-2024, 08:16 AM
                          4 responses
                          18 views
                          0 likes
                          Last Post trilliantrader  
                          Started by mgco4you, Today, 09:46 PM
                          1 response
                          10 views
                          0 likes
                          Last Post NinjaTrader_Manfred  
                          Started by wzgy0920, Today, 09:53 PM
                          0 responses
                          10 views
                          0 likes
                          Last Post wzgy0920  
                          Started by Rapine Heihei, Today, 08:19 PM
                          1 response
                          10 views
                          0 likes
                          Last Post NinjaTrader_Manfred  
                          Started by Rapine Heihei, Today, 08:25 PM
                          0 responses
                          10 views
                          0 likes
                          Last Post Rapine Heihei  
                          Working...
                          X