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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X