• 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.

    #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 login_dejavu, Today, 02:22 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Leeroy_Jenkins, Yesterday, 09:17 AM
    1 response
    51 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by chaitunt, 03-29-2020, 08:26 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by mbcmbc, Yesterday, 11:01 PM
    2 responses
    17 views
    0 likes
    Last Post mbcmbc
    by mbcmbc
     
    Started by Zuhier Dourgham, Yesterday, 03:55 AM
    1 response
    30 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X