Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy does not plot trades on chart

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

    Strategy does not plot trades on chart

    Hello,
    I started experimenting with the strategy builder. I started with something very simple, if the candle closes above the 20 EMA go long. However, although I appear to have an open order, the chart, positions, and account information seem to be wrong (reference: StrategyShot02.png).

    All I really want is to be able to plot the strategy orders in the same way my ATM orders are plotted when I use the chart trader (reference: ChartTraderExample.png)

    The code from the strategy builder doesn't seem very complicated (reference: strategyCode.zip) so I'm a bit confused about what's going wrong and would appreciate any assistance.

    Thanks
    Attached Files

    #2
    Hello IndyScalper,

    Thanks for your post.

    When the 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.)

    The initial order you see when enabling the strategy atre historical (virtual) positions which is why they don't appear on the Positions tab of the Control Center. Once the Stop or Target order of the historically calculated strategy position is filled and we see a another entry order placed realtime, we see the order on the Positions tab of the Control Center, the Orders tab of the Control Center, and the Strategies tab of the Control Center.

    Instead of using the Start Behavior 'Immediately Submit', you could use 'Immediately Submit, Synchronize Account' so you could begin trading with your strategy immediately while not worrying about your Account Position prior to start. This option will have NinjaTrader submit an order to sync the account position to the position calculated by the strategy. This means the Strategy Position and Account position will be in sync.

    See the help guide documentation below for more information.

    Strategy Position vs Account Position: https://ninjatrader.com/support/help..._account_p.htm
    Synchronize Account Positions (Start Behavior): https://ninjatrader.com/support/help..._positions.htm

    <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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X