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 CarlTrading, Yesterday, 09:41 PM
      1 response
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, Today, 02:41 AM
      0 responses
      6 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, Yesterday, 11:44 PM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      33 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      32 views
      0 likes
      Last Post CarlTrading  
      Working...
      X