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 NullPointStrategies, Yesterday, 05:17 AM
                    0 responses
                    62 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    134 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    75 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    45 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    50 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X