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

IsEntry vs. IsEntryStrategy

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

    IsEntry vs. IsEntryStrategy

    What's the difference between IsEntry and IsEntryStrategy?

    I've been checking both to see if my strategy in entering, at least until I found that IsEntry = true when I manually triggered an exit routine, which of course didn't make sense.

    #2
    Hello Traderpards,

    Thank you for your note.

    Would you provide more information on IsEntry and IsEntryStrategy? Are these part of a custom strategy? Where are you seeing these used? Would you be able to provide an example?

    I’m unable to find information in the helpguide regarding either.


    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      They aren't in the help guide, which is why I'm asking. They are publicly accessible objects that are members of the execution object. They are very handy for telling me if the execution is an entry or an exit and an improvement over NT7 for sure.

      I think all I need is IsExitStrategy and IsEntryStrategy but I'm really not sure. It seems to me if it's an entry, they both should be true but that isn't necessarily the case. That's where you come in! That's why I'm wondering what the difference is because if I'm going to use those guys, and I want to use those guys, I should probably know how to use them and what they are.

      You can just add a break point to any old OnExecutionUpdate() call and check it out.
      Attached Files

      Comment


        #4
        Hello traderpards,

        If not documented in the helpguide its considered unsupported and it’s not recommended for use.
        If you’d like to check whether an order is an entry or exit, I would suggest assigning your entry method a signal name, for example “EnterLong”, and then within OnExeuctionUpdate you can check whether the executed order is “EnterLong”.

        I have provided a sample strategy demonstrating how to do this.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Thanks - if you haven't gotten around to documenting it, then it's not recommended. Got it.

          So... What's the difference between IsEntry/IsExit and IsEntryStrategy/IsExitStrategy, respecitively?

          Comment


            #6
            Hello traderpards,

            We do not advise using unsupported code.

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment


              #7
              I do need further assistance... I would like to know the difference between IsEntry/IsExit and IsEntryStrategy/IsExitStrategy, respecitively?

              Thank you for your support.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by quantismo, 04-17-2024, 05:13 PM
              4 responses
              30 views
              0 likes
              Last Post quantismo  
              Started by love2code2trade, 04-17-2024, 01:45 PM
              4 responses
              31 views
              0 likes
              Last Post love2code2trade  
              Started by cls71, Today, 04:45 AM
              2 responses
              10 views
              0 likes
              Last Post eDanny
              by eDanny
               
              Started by proptrade13, Today, 11:06 AM
              0 responses
              5 views
              0 likes
              Last Post proptrade13  
              Started by kulwinder73, Today, 10:31 AM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_Erick  
              Working...
              X