Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Additional position during reversal

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

    Additional position during reversal

    Hi, I created one strategy with strategy builder. It has sets
    1) Long entry conditions
    2) Long exit conditions
    3) Short entry conditions
    4) Short exit conditions

    Short exit and long entry conditions are almost same with minor differences. Usually both occurs at the same bar close.

    At the time of short exit and long entry, short position should be closed and long position should be open. System should take 2 long position, one to cover short and another to create a new long. But to my surprise, system took 3 long positions as stated below.

    1) buy to cover
    2) close position
    3) buy

    So now After closing of short position, now I have 2 long open positions instead of one.

    Seniors, please help.

    regards,
    Sid

    #2
    Hello sprithiani,

    Thanks for your post.

    Do not call Enter and Exit methods at the same time, as this is what causes the additional order to be submitted.

    If you want to reverse, call EnterShort when Long and EnterLong when Short.

    If you want to see if the strategy is long or short, please see below on how to make position checks.



    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X