Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TrailStop on Market if Touched

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

    TrailStop on Market if Touched

    I have a strategy which enters the market with market order and has target limit order and stop loss order. I want to enter a trailing stop order and cancel stop loss order if profit touched 18 ticks.
    Is it something to possible to do in NT both for backtests? In live I can use tick updates but for backtests the logic needs to be built using MFE.

    #2
    Hmm, I guess you MFE should read MIT, correct? Those orders are unfortunately not supported by NT.

    For stoploss trailing aspect, you could code this out yourself with the concept demonstrated here -

    Comment


      #3
      I meant MFE. So during backtest you track mfe and exit poistion at certain offset below MFE instead of bar close price. Like you do for SetTrailStop but only difference is that TrailStop should trigger after Pnl touches x points.

      I have implemented this strategy in live using tickupdate just need to set it up for backtests.

      Comment


        #4
        Unfortunately backtesting just doesn't have tick granularity. I am not sure how you actually have the logic programmed though.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Same as SetTrailStop but the only difference is trailstop will activate only after MFE crossed above certain level.

          Comment


            #6
            To simulate this is backtesting, you would need to work then with lower granular data (fast tickcharts) and then simulate your higher time frame conditions on this chart as a replacement for the unknown intrabar tick formation of your higher frame.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            83 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            66 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X