Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit long and entry short at same time in strategy

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

    exit long and entry short at same time in strategy

    After some testing of the strategy, when there is a LONG position, but didnt met Profit nor Stop Lose, then a SHORT condition is true, the strategy will exit the LONG and Enter Short at the same time by 1 LOT(for sample).

    Is it what will happen exactly in real situation?
    The strategy will submit 2 orders at 1 LOT each, so first order is close LONG position, then second order will open SHORT position at same time or it will wait for the long to confirmed it is indeed exited before enter the short OR the strategy system will simply enter a SHORT position 2x size of the order.

    #2
    An existing position will be closed as you cross over to the opposite side of the market. Did you by chance rip through our strategy tutorial to understand the concept of NinjaScript strategies/position management? Help guide->NinjaScript->Develop custom strategies.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Lumbeezl, 01-11-2022, 06:50 PM
    31 responses
    816 views
    1 like
    Last Post NinjaTrader_Adrian  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    5 responses
    13 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by swestendorf, Today, 11:14 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_Kimberly  
    Started by Mupulen, Today, 11:26 AM
    0 responses
    6 views
    0 likes
    Last Post Mupulen
    by Mupulen
     
    Started by Sparkyboy, Today, 10:57 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X