Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MultiTimeFrame Indicator

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

    #16
    Roberto,

    Indicators cannot read things like PnL. There is no such concept. The way StrategyPlot() works is not in a way accessible for indicators either. StrategyPlot() is a blank indicator that is just a place holder that allows you to set values to from a strategy. An indicator does not necessarily process after the strategy and as such the StrategyPlot() instance it sees is not what you set it to from the strategy.

    If you want to work with things like PnL you have to do it all from the strategy context. There is just no such concept for indicators.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      Thanks Josh... I think you entered the thread a little late and got a bit confused regarding the issues we have been discussing with Bertrand. I am successfully using the StrategyPlot to plot results in my charts as you can see in the attached screen file. The lower panel shows the unrealized profits/loss of every trade. In the upper left hand corner you will see a Stats Box. The chart on the panel is created with StrategyPlot.

      Now, I need to plot an indicator that gathers data from a secondary time frame. My problem is that I don't know if I need to create StrategyPlot(3,4, and 5) for this new indicator to be plotted or not. If I do, three empty panels appear on the chart. If I don't, and use the StrategyPlot(0,1,2) used by the abovementioned, I will see the indicator plotted but will lose the information from my PlotResults() method.

      Roberto
      [IMG]file:///C:/DOCUME%7E1/PERSONAL/CONFIG%7E1/Temp/moz-screenshot.png[/IMG]
      Last edited by rperez; 10-06-2010, 04:32 PM.

      Comment


        #18
        Josh, I managed to get everything I need as I need it. So, thanks for your assistance. Roberto

        Comment


          #19
          Bertrand, Is it possible to recognize the arrows painted on the chart by a 3rd party concelead indicator, in order to test the indicator with a strategy I design, before purchasing the 3rd party indicators? As I don't have any access to the code, therefore, to the setup conditions, the only available information are the painted arrows on the screen, which I would like to use as my triggers in my strategy?

          Tks,
          Roberto

          Comment


            #20
            Hi Roberto, this is unfortunately not possible - you would need to access the conditions that create those arrows, perhaps check with the 3rd party vendor if there perhaps a different version that would allow access to signal states programmatically.

            Comment


              #21
              Thanks Bertrand.... that's going to be tougher...RP

              Comment


                #22
                Bertrand, I apologyse for insisitng, what would be needed to recognize a drawn object on a chart from a strategy? If the platform does not allow it by any means, could it be programmed by the development team as a feature?

                Comment


                  #23
                  Roberto, are you on NT 6.5 or NT7?

                  Comment


                    #24
                    Bertrand, On NT7

                    Comment


                      #25
                      rperez,

                      The way NT works is any 3rd party developer can create whatever it is they want. Depending on how exactly they decide to program their indicator determines if you can access those objects or not.

                      If they used regular NT provided Draw() methods then you can access them through checking the DrawObjects collection (NT7 only): http://www.ninjatrader.com/support/h...rawobjects.htm

                      If they used Plot() override routines to custom draw what they want then unfortunately you cannot access those drawings.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #26
                        Thank you , Josh, this should help. RP

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        647 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        369 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        108 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        572 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        573 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X