Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entries Per Direction - Long and Short

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

    Entries Per Direction - Long and Short

    I currently have a crossover as an entry signal and have my entries limited to one per bar but would like to have the possibility of two per bar, but only if one is long and one is short.

    For example, if there is a crossover that puts me in a long position, and it is stopped out (leaving me flat) and then another crossover occurs within the same bar which meets the criteria for me entering short. I, however, do not want to allow two long entries or two short entries per bar.

    Is this possible using the managed approach?

    Thanks


    #2
    Hello thaboushca,

    Thank you for your post.

    Yes, this is possible. I would recommend you use an integer as counter. On each order increment the counter. Require the counter be less than 2 to place a new order. Reset the counter to 0 on the first tick of a new bar. You can have two counters, one for long and one for short.



    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 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
    118 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