Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I see strategy names in NT

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

    How do I see strategy names in NT

    Hello, I have TS using the dll posting 3 strategies to NT. I want to see in the orders window, executions window positions window what strategy is responsible for what trade at a glance. How do I do this? Maybe in the log window but how do I do it programatically?

    Thanx
    Moog
    NinjaTrader Ecosystem Vendor - Portara Ninja

    #2
    If you are referring to TradeStation generated orders sent through our DLL interface...

    - If you pass in a user generated order id, check the "Name" column to see if the order id is passed through under this field. I don't recall with 100% certainty if this is the case
    - If yes, then just add some prefix to the user generated order id that would identify the strategy
    - If not, then its not supported
    RayNinjaTrader Customer Service

    Comment


      #3
      Update Ray

      Hi Ray, The name column in the executions window is all blank, it doesnt seem to be passing anything in. Its important for mew to determine what strategy is responsible for what execution, is there a temp workaround? If not could you include this vital piece of information in the next ninja build? Is there something that could be done before then?

      Thanks

      Arts
      Moog
      NinjaTrader Ecosystem Vendor - Portara Ninja

      Comment


        #4
        I was referring to the name column in the Orders tab. I will add this request to our list of possible future enhancements for adding this info per execution. At this time, there is unfortunately no workaround.
        RayNinjaTrader Customer Service

        Comment


          #5
          Thanks Ray, yes please do this as soon as

          Just checked and the orders window , name column is blank as well.
          Moog
          NinjaTrader Ecosystem Vendor - Portara Ninja

          Comment


            #6
            Everyone please help!! Still having a bad one

            I need to be able to focus on what the position logic is on a per strategy basis. I want to use the function NTStrategyPosition(). I have 3 systems in TS. I am trying to use NTCommand to send in the order to NT and to "try" and inform NT as to what strategy sent what order. Im thinking in this way that then I can call NTStrategyPosition().

            Is this the correct approach? Ive sent emails but no response?

            If not correct how does Ninja "Know" what strategy sent the order to Ninja? Im using the dll NOT the emailing method so Im presuming the workspace tab is now not relevant??

            Thanks
            Moog
            NinjaTrader Ecosystem Vendor - Portara Ninja

            Comment


              #7
              Guys, this is really what I need to do

              The real reason I posted before this post is a route into doing the following:

              I need to be able to close all the positions ON A PER STRATEGY BASIS and on a PER INSTRUMENT basis if TS and Ninja are out of phase in any way. In order to do that I need to pass in a strategyID to the function NTCommand(ClosesStrategy), however the input for this function, the only one required, is the strategyID.

              Soooo, the million dollar question is.... How do I send in the strategy ID to this function, how does NT "know" what the positions are from what strategy in realtime? and what do I do to send in the corect strategy ID to Ninja?

              Cheers
              Moog
              NinjaTrader Ecosystem Vendor - Portara Ninja

              Comment


                #8
                - You want to separate positions by TS strategy not a NinjaTrader ATM strategy

                If this is true, then what you wish to do is not possible. A Position through the DLL interface is account based, not strategy based.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Thanks Ray However why this?

                  You have functions in the TS dll specifically called I quote:

                  "int StrategyPosition(string strategyId)

                  Gets the position for a strategy. Returns 0 for flat, negative value for short and positive value for long."


                  If what you are saying is correct, I dont understand why this function and others is in the dll? Whats going on? Am I a blockhead or something, Im very confused??

                  Thanks
                  Moog
                  NinjaTrader Ecosystem Vendor - Portara Ninja

                  Comment


                    #10
                    Then this is for ATM strategy, not TS strategy position. The function will return the position of an ATM strategy. You pass in the strategyId through the use of the NTCommand() function. Its the very last parameter.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Thanks Ray

                      I think now you have said that you guys need to update the help files as that function is under Tradestation Functions withing Tradestation Integration in your help files!

                      Anyhow moving away from this, is there any way ninja can do the following without using strategies...

                      we have 3 startegies in TS that fire orders to NT, we need to monitor whether TS and NT have the same number of contracts due to bad ticks and a myriad of other potential dramas that may develop at any one time. If theres a problem on a specific instrument say in strategy A, how do we close that instrument using NT, by way of orderID or Account driven basis or other, please explain a viable option?
                      Moog
                      NinjaTrader Ecosystem Vendor - Portara Ninja

                      Comment


                        #12
                        Close - NTClosePosition() will close an account based position
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Possible Solution

                          Ray, this is what we are thinking of doing, please let me know if you think we are wasting time here pursuing this course of action

                          We tell the broker to setup 3 accounts (references only) where each one trades a separte TS strategy which all feed to and from the actual single fund below it. In that way we have got control of the strategies by proxy.

                          Is there anything in this method where we may hit another potential brick wall, it will be with PATS?

                          Cheers
                          Moog
                          NinjaTrader Ecosystem Vendor - Portara Ninja

                          Comment


                            #14
                            Not that I am aware of.
                            RayNinjaTrader Customer Service

                            Comment


                              #15
                              Ok ill try that

                              Thanks Ray

                              Cheers
                              Moog
                              NinjaTrader Ecosystem Vendor - Portara Ninja

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Brevo, Today, 01:45 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post Brevo
                              by Brevo
                               
                              Started by aussugardefender, Today, 01:07 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post aussugardefender  
                              Started by pvincent, 06-23-2022, 12:53 PM
                              14 responses
                              238 views
                              0 likes
                              Last Post Nyman
                              by Nyman
                               
                              Started by TraderG23, 12-08-2023, 07:56 AM
                              9 responses
                              384 views
                              1 like
                              Last Post Gavini
                              by Gavini
                               
                              Started by oviejo, Today, 12:28 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post oviejo
                              by oviejo
                               
                              Working...
                              X