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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,406 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    98 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X