Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Way to delay entry?

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

    Way to delay entry?

    Hello, maybe this is simple and I’m overthinking it but is there a way to delay the entry of a position when I hit buy or sell? For example- on a 10 minute bar, the bar has 4 minutes left until the bar closes and the new one opens. I decide to go long 4 minutes before the bar closes but do not want to enter the trade until the instant of the next bar open price, not at the current price. Thank you

    #2
    Hi Brandon, thanks for posting.

    Your strategy will need to use boolean flags to mark an entry variable, then if that variable is true on the first tick of the next bar, call the entry method. You can check if the tick is the first tick of the bar with IsFirstTickOfBar, and I have also linked a publicly available page on C# booleans:

    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    The idea is to detect your entry condition, set the boolean to true, and if the boolean is true on the next bar, enter the trade at that time.

    Best regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X