Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy shows I'm in a position but I shouldn't be

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

    Strategy shows I'm in a position but I shouldn't be

    My strategy is showing that I'm in a position but I'm not. Usually happens at beginning of the day. How do I reset the strategy at beginning of day maybe? Or any other thoughts?

    Thanks.

    Attached Files

    #2
    Hello elcowen,

    Thank you for your post.

    When a strategy is yellow (or orange) in the Strategies tab of the Control Center, this means that the strategy entered a historical (virtual) position in the historical data that has been loaded and that you have "Wait until flat" selected for the 'Start behavior' option in the strategy parameters.

    When a strategy is enabled, it processes historical data to determine trades that the strategy would have made on the data that is already on the PC/chart and to determine what position the strategy is in. (Strategy positions are separate from actual Account positions).

    Once the strategy has finished processing the historical data and has transitioned to real-time, 'Wait Until Flat' will wait until there is a real-time order submission that will cause the strategy to become flat. All positions must be flat before real-time orders will begin.

    If you do not want the strategy to calculate a position from processing historical data, you could add if (State == State.Historical) return; to the top of your strategy logic so historical processing is skipped. The strategy will then always start from a flat position because it has not calculated any orders.

    Please see the help guide links below for more information about Start Behavior and Strategy vs Account Position.

    Strategy vs. Account Position — https://ninjatrader.com/support/help..._account_p.htm

    Start Behaviors — https://ninjatrader.com/support/help..._positions.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X