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 CarlTrading, 05-11-2026, 05:56 AM
                    0 responses
                    53 views
                    0 likes
                    Last Post CarlTrading  
                    Started by CarlTrading, 05-10-2026, 08:12 PM
                    0 responses
                    32 views
                    0 likes
                    Last Post CarlTrading  
                    Started by Hwop38, 05-04-2026, 07:02 PM
                    0 responses
                    195 views
                    0 likes
                    Last Post Hwop38
                    by Hwop38
                     
                    Started by CaptainJack, 04-24-2026, 11:07 PM
                    0 responses
                    356 views
                    0 likes
                    Last Post CaptainJack  
                    Started by Mindset, 04-21-2026, 06:46 AM
                    0 responses
                    275 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X