Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Clarification on stops and targets

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

    Clarification on stops and targets

    Hi! I would like to know if I am testing a strategy using daily bars to govern entries and exits, if I put a profit target into the strategy would it only fill if the close of the next daily bar exceeds the target or will it fill on a touch? If it only takes the profit on a close, is there a way to build and test entering the trade on the close but exiting on an intraday touch of the potential profit target? Thanks!

    #2
    Hello BigNTDiggyD,

    Orders are separate from bars meaning they will fill with the markets granularity in realtime. Actions your script takes like submitting orders or moving targets would be at the rate of the daily bar close if that is the only series being used and you are using Calculate OnBarClose.

    In historical data tests you would need to submit orders to a secondary series if you wanted to test filling orders with more granularity while using a daily bar. An alterative would be to use a more granular series as the primary and then reference daily bar data from a secondary series.



    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello BigNTDiggyD,

      Orders are separate from bars meaning they will fill with the markets granularity in realtime. Actions your script takes like submitting orders or moving targets would be at the rate of the daily bar close if that is the only series being used and you are using Calculate OnBarClose.

      In historical data tests you would need to submit orders to a secondary series if you wanted to test filling orders with more granularity while using a daily bar. An alterative would be to use a more granular series as the primary and then reference daily bar data from a secondary series.


      Thanks! That is helpful

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      81 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      46 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