Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stop and reverse

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

    stop and reverse

    How does a stop and reverse scenario play out when running strategies? If I'm short and an order is sent out to go long 2 contracts will that result in being long 1 contract or being long 2 contracts? In other words, does the short need to be exited before a long order will be accepted or is the short exited when a long order is sent out or is the short offset by the number of long contracts filled? Basically, what is the most efficient way to get from being short 1 contract to being long one contract when i want to "stop and reverse" an existing short position?
    Last edited by gordongekko; 02-21-2018, 02:35 PM.

    #2
    Hello gordongekko,

    Thanks for your post.

    That is correct, if you are long and what to reverse, 1 short would close the long position and another short would leave you in a short position.

    The methods EnterLong() and EnterShort() will do reversing. You can see an example of use with the strategy SampleMACrossover in your NinjaTrader. There are only two conditions, there are only two entry orders needed.

    The EnterLong() and EnterShort() method determine if an existing position in the opposite direction exists and if so will place two orders one to close the opposite direction and one to put you in the new direction. Using these methods would be the most efficient as they use market orders that are filled immediately.

    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
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X