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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X