• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to close a position without breaking the strategy

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

    How to close a position without breaking the strategy

    I built this strategy that places me in a position either short or long. It also sets my stop loss and profit target. Very kewl. If I choose to stop the order, all I need to do is click on the <Stop> button. However, it breaks the execution of the strategy.

    Is there a way I can add logic so that I can have a <Stop> button that get's me out of the situation?

    Thanks!

    #2
    Hello morrnel,

    Thanks for your post.

    You can add buttons to your strategy that can call ExitLong/ExitShort to close the strategy position from manual intervention. As the orders will be coming from the strategy, the strategy position will stay in sync with the account, and the strategy will not disable when the button is clicked

    Please see the example from our User App Share below for how you can add buttons to a strategy.

    https://ninjatraderecosystem.com/use...bar-buttons-2/

    For NinjaTrader 7, see below.

    https://ninjatraderecosystem.com/use...olbar-buttons/

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    We look forward to assisting.
    Last edited by NinjaTrader_Jim; 07-14-2020, 02:39 PM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by webus, Today, 12:02 AM
    0 responses
    1 view
    0 likes
    Last Post webus
    by webus
     
    Started by jeronymite, Yesterday, 09:26 PM
    0 responses
    6 views
    0 likes
    Last Post jeronymite  
    Started by ttodua, 08-08-2020, 06:45 AM
    2 responses
    17 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by franco12364, Yesterday, 08:08 PM
    2 responses
    11 views
    0 likes
    Last Post franco12364  
    Started by smcllr, Yesterday, 06:10 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X