Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script is Script is Script

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

    Script is Script is Script

    Seems like it would be easier if we simply had NTScript....

    Instead of seperate Indicators and Strategies.

    Would it not be a better world if all charts, instruments and methods were accessible though a single NTScript?

    How many man hours are spent working around:

    Trying to chart within a strategy?
    Getting multi-Instrument price data into an Indicator?


    Just a thought.

    #2
    This is certainly something that I've wished for.

    However, I've assumed that it must be architecturally very difficult for these two pieces of the product to be combined, or that it would create significant other problems if this were done, as otherwise I'd assume that this would be done.

    So, I'd like to add my own question: Is this something that we can expect in the future?

    Comment


      #3
      Thanks for your suggestion. We'll add it to the list of future considerations.

      Comment


        #4
        I'd like to second (or third) this idea of "unifying" the indicator and strategy NinjaScript constructs. The current bifurcation of functionality, as cited in the initial post, does require extra effort in the use of creative workarounds or exludes NinjaTrader from consideration for certain types of trading applications. It would be very useful if a generic NinjaScript module, with all of the current indicator functionality, could be given the ability to add additional instruments/timeframes as well as trade functionality implemented as an add-on attribute/property. When this property is selected, an additional dialog tab can be made available to collect strategy related inputs.

        No doubt, this would have far reaching architecture implications. But as someone famous once said . . . "tear down those walls" . . . will likely prove to be a more flexible design strategy in which to evolve the platform. Thanks for your consideration of this idea.

        Regards,

        Whitmark
        whitmark
        NinjaTrader Ecosystem Vendor - Whitmark Development

        Comment


          #5
          Fourth or fifth !

          Comment


            #6
            +1

            Definitely very high on my wish list.
            As a compromise, make a strategy be an indicator as well. So if we just want to draw some simple indicators, that fine.
            But for more interesting things, eg mult-instrument/timeframe indicators, we could build it as a strategy., and still be able to plot it. I don't even need to be able to access it from other indicators if that's the problem, I just want to have the indicator facilities as well, e.g. be able to plot it in a separate panel without too much hassle.

            Sometimes it's really funny... if you build a strategy where you calculate your own data series and try to pass it to an indicator and plot it, NT complains that you can only access your primary dataseries in indicators from a strategy. So NT knows exactly what I want to do, but actively refuses... ;-)

            redwoood

            Comment


              #7
              Next NT6.5 update will have a dummy indicator "StrategyPlot" for ad-hoc indicators in strategies. If I recall correctly Josh even wanted to provide a use case sample.

              Comment


                #8
                Very nice! . . . will we be able to plot equity curves? How about apply indicators to an equity curve dataseries and plot the result?

                Regards,

                Whitmark
                whitmark
                NinjaTrader Ecosystem Vendor - Whitmark Development

                Comment


                  #9
                  I suggest you'll give it a try as next NT6.5 rolls to experience what you can or can not do.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Dierk View Post
                    I suggest you'll give it a try as next NT6.5 rolls to experience what you can or can not do.
                    Thanks!

                    Is there an ETA for this release ?

                    Comment


                      #11
                      Early next week.

                      Comment


                        #12
                        Plot Session Equity Curve from Strategy

                        Thanks for the capability to plot values from a strategy and the useful reference example. Attached is a chart that plots realized and unrealized session equity curve for historical and realtime data. Keep in mind this will not plot when using the Strategy Analyzer.

                        Regards,

                        Whitmark
                        Attached Files
                        whitmark
                        NinjaTrader Ecosystem Vendor - Whitmark Development

                        Comment


                          #13
                          Originally posted by whitmark View Post
                          Attached is a chart that plots realized and unrealized session equity curve for historical and realtime data. Keep in mind this will not plot when using the Strategy Analyzer.

                          Regards,

                          Whitmark
                          That looks awesome!

                          Comment


                            #14
                            Very nice Whitmark
                            Care to share that piece of code?

                            Comment


                              #15
                              Sure thing Zoltran . . . here you go. It's just a proof of concept example that is a combination of the SampleMACrossover, SamplePnL, and the new SampleStrategyPlot reference examples and will only work with 6.5.1000.1. Enjoy!

                              Regards,

                              Whitmark
                              Attached Files
                              Last edited by whitmark; 04-07-2008, 08:43 PM.
                              whitmark
                              NinjaTrader Ecosystem Vendor - Whitmark Development

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Aviram Y, Today, 05:29 AM
                              4 responses
                              11 views
                              0 likes
                              Last Post Aviram Y  
                              Started by algospoke, 04-17-2024, 06:40 PM
                              3 responses
                              27 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by bmartz, 03-12-2024, 06:12 AM
                              3 responses
                              30 views
                              0 likes
                              Last Post NinjaTrader_Zachary  
                              Started by gentlebenthebear, Today, 01:30 AM
                              1 response
                              8 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by cls71, Today, 04:45 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X