Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to "reset" or "stop managing a position" if it gets manually closed?

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

    How to "reset" or "stop managing a position" if it gets manually closed?

    Say my strategy takes a long and I manually exit the long. My strategy still thinks: Position.MarketPosition == MarketPosition.Long? Then when it "exits" my account is now short.




    #2
    Hello joejoeagogo,

    Manually closing a position will not update the strategy so it will at that point be out of sync. You would need to disable and re enable the strategy so it knows what the position is.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    9 responses
    66 views
    0 likes
    Last Post ETFVoyageur  
    Started by TheTradingMantis, 01-19-2023, 02:05 AM
    42 responses
    912 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by _Zero_, 04-10-2020, 03:21 PM
    144 responses
    7,893 views
    6 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Richozzy38, Yesterday, 01:06 PM
    7 responses
    28 views
    0 likes
    Last Post Richozzy38  
    Started by swjake, Today, 12:04 PM
    5 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X