Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time since entry

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

    Time since entry

    I am looking to trigger a breakeven stop after x minutes by adding multi time frame to a bars since entry but not sure exactly how to set it up...



    && BarsSinceEntry(BarsArray[1],"L1") >=1

    ie. entry on 5 minute but breakeven after 1 hour.

    Thanks.
    Last edited by brucelevy; 10-05-2016, 09:06 PM.

    #2
    Hello brucelevy, and thank you for your question.

    The easiest way to do this would be to set a stop loss well away from the current price in the Initialize section with SetStopLoss, and then to modify it in OnBarUpdate once the condition you mentioned has passed. If you can provide a more complete code sample, I can modify it directly to demonstrate what I mean.

    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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