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 JonesJoker, 04-22-2024, 12:23 PM
                          6 responses
                          32 views
                          0 likes
                          Last Post JonesJoker  
                          Started by GussJ, 03-04-2020, 03:11 PM
                          12 responses
                          3,239 views
                          0 likes
                          Last Post Leafcutter  
                          Started by AveryFlynn, Today, 04:57 AM
                          0 responses
                          5 views
                          0 likes
                          Last Post AveryFlynn  
                          Started by RubenCazorla, 08-30-2022, 06:36 AM
                          3 responses
                          79 views
                          0 likes
                          Last Post PaulMohn  
                          Started by f.saeidi, Yesterday, 12:14 PM
                          9 responses
                          25 views
                          0 likes
                          Last Post f.saeidi  
                          Working...
                          X