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

Creating an EntrySignal using CreateOrder in AddOns?

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

    Creating an EntrySignal using CreateOrder in AddOns?

    In AddOns, Account.CreateOrder seems to be the order of the day (pun intended). It allows specification of FromEntrySignal. However, it does not provide for creating an Order with an "EntrySignal". The only methods that allow that seem to be the EnterLong etc methods that are typically used in Strategies.

    How is FromEntrySignal in Account.CreateOrder intended to be used within AddOns? If one uses only Account.CreateOrder to create Orders, it would seem that none would have an "EntrySignal". Is one supposed to use the Enter-type methods? If so, it seems at odds with the overall approach of AddOn Order creation.

    I must be missing something obvious. Advice appreciated.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thanks for your post.

    Are you possibly referring to the OrderEntry parameter? This is used to specify if the order that your AddOn submits is a manual submission or an automated submission. There is no FromEntrySignal parameter in our documentation, or when I check with Intelliprompt. (Please note that our support team can only comment on documented NinjaScript code. Undocumented NinjaScript code is considered unsupported because it is not locked into documentation.)

    https://ninjatrader.com/support/help...reateorder.htm

    FromEntrySignal is also only used with the Managed Approach to tie Enter and Exit orders together. It would not be used for Unmanaged or AddOn Framework where we are merely creating and submitting orders. We can specify a name for the order for our own tracking, but there would not be anything internal to these approaches to tie orders together because we are working with the orders at a lower level where there is no order management layer like the Managed Approach. You can consider AddOn Framework code to be the lowest level for creating and submitting orders.

    Please let us know if you have any questions.
    Last edited by NinjaTrader_Jim; 07-24-2020, 08:45 AM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks for taking time to respond, Jim. Much appreciated.

      My apologies for creating some confusion in my post. To clarify, in an AddOn, if I create an Order using Account.CreateOrder, the Order (like all Orders) has an attribute FromEntrySignal, even though it is not set by CreateOrder.
      • Is use of that attribute supported in AddOns?
      • If so, how would one set an associated "EntrySignal".
      • Or is the use of "entry signals" only facilitated through the use of Enter and Exit methods?
      • And if so, presumably, in AddOns, one must facilitate an "entry signal protocol" of one's own.
      • Is the use of Enter and Exit methods supported within AddOns?
      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello jeronymite,

        Order.FromEntrySignal would be used specifically with Managed Approach Enter/Exit methods. These methods are specific to NinjaScript strategies and would not be used in an AddOn.

        You could write to this string before you submit your order, but drawing things on a chart like trade markers that connect executions together would have to use your own code. Trade pairing in the Trade Performance window will also follow FIFO.

        We look forward to assisting.
        JimNinjaTrader Customer Service

        Comment


          #5
          Thanks again, Jim. One clarification, if I may: FromEntrySignal checks the "entry signal" -- the string considered to be the "entry signal" is in fact the Name of the Order, is that right?

          Thanks.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Hello jeronymite,

            Yes, FromEntrySignal represents the Name of the entry order. Just to be clear, this is used for Managed Approach and would not offer much use in an AddOn. However, if you want to populate it for your own purposes, you may find use with it.
            JimNinjaTrader Customer Service

            Comment


              #7
              Thanks, Jim. Exactly what I needed to know. Much appreciated.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              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
              26 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