Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetTrailStop in execution context?

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

    SetTrailStop in execution context?

    Having Trouble putting the NT8 SetTrailStop in the execution context and tying it together to the entry signals...any help?

    #2
    Hello rickyblah12,

    SetTrailStop() should be called before the entry order is placed (such as in OnStateChange() in State.Configure, or in OnBarUpdate() occuring before the entry is placed)



    For example:
    Code:
    SetTrailStop("longEntry1", CalculationMode.Ticks, 10, false);
    EnterLong("longEntry1");
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Ok thank you Chelsea...where it says
      "longEntry1" do I put the signal name or exit name there?

      Comment


        #4
        Hello rickyblah12,

        The fromEntrySignal of the exit order needs to match the signalName of the entry order.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          ok does it matter if theres space in between the strings or no? example a entry name is LongPostion and string name is "Long Position"

          Comment


            #6
            Hello rickyblah12,

            Yes, spaces are allowed in strings.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Its not working

              Comment


                #8
                Hello rickyblah12,

                What is not working?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  what if Im doing a limit order ?

                  Comment


                    #10
                    Hello rickyblah12,

                    Limit orders can also use a signal name and exit orders can use the from entry signal of that limit entry.
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Mindset, 04-21-2026, 06:46 AM
                    0 responses
                    90 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by M4ndoo, 04-20-2026, 05:21 PM
                    0 responses
                    137 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Started by M4ndoo, 04-19-2026, 05:54 PM
                    0 responses
                    68 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Started by cmoran13, 04-16-2026, 01:02 PM
                    0 responses
                    120 views
                    0 likes
                    Last Post cmoran13  
                    Started by PaulMohn, 04-10-2026, 11:11 AM
                    0 responses
                    69 views
                    0 likes
                    Last Post PaulMohn  
                    Working...
                    X