• 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

Closed position manually and Strategy stuck now

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

    Closed position manually and Strategy stuck now

    So my strategy is working good and taking entries and closing itself like it is supposed to do. The problem is that I closed a trade manually and now the strategy is in Limbo because it thinks the trade is still open. Due to this, it will not take another trade because it is set to wait for flat.

    How do I clear this up so it trades again?

    I have tried everything including uninstall and reinstall and it is stuck.
    Shows stuck trade

    #2
    Hello casabella,

    Thanks for your post.

    Most strategies are intended to run without other trades occurring on the same instrument/account. By closing the account position (" I closed a trade manually ") the strategy would be out of sync with its virtual position and account position. The strategy will maintain its virtual position so while the account position is flat when the strategy reaches its next exit point (stoploss or profit target) it would have placed a real trade and instead of being flat you would have been in a position and still out of sync and the strategy would continue this way. As you can imagine this would not be desirable.

    Since you have stopped and restarted NinjaTrader, that is no longer the case. Now the strategy is following your direction to wait until it is flat before placing live trades and then it will be in sync. When you apply the strategy, it will perform historical trades according to your logic and according to the screenshot, the last historical trade was 1 short. Once the strategy reaches it's stop or profit target the last historical trade will then be flat, the account position will be flat, the strategy name will turn green and live trades will begin.

    If you want to manually interact with a strategy, you may want to consider using another type of strategy that is designed for manual interactions. An example of this exists in your NinjaTrader and is called SampleATMstrategy where it will place a trade and then an ATM strategy will take care of the profit and stop. You can interact with the active strategy when it is in position and can adjust the stops/targets manually if you wish. Once the position is closed, the strategy then resumes looking for the next entry. This type of strategy uses special Ninjascript methods to connect the strategy to an ATM, these methods can be found here: https://ninjatrader.com/support/help...gy_methods.htm



    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by genbrain9, Today, 10:30 PM
    0 responses
    3 views
    0 likes
    Last Post genbrain9  
    Started by lonechaos, Today, 07:02 PM
    0 responses
    11 views
    0 likes
    Last Post lonechaos  
    Started by YellingOption, Today, 03:25 PM
    0 responses
    17 views
    0 likes
    Last Post YellingOption  
    Started by 7robert, Today, 03:08 PM
    2 responses
    23 views
    0 likes
    Last Post 7robert
    by 7robert
     
    Started by ManTrader, Today, 03:00 PM
    2 responses
    9 views
    0 likes
    Last Post ManTrader  
    Working...
    X