Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not working on live

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

    Strategy not working on live

    I've a strategy that when I enable it I see all the previous trades that met the conditions in the chart. However, those trades do not get triggered when I run the strategy on a live chart.

    Any idea what could be the issue?

    #2
    It's hard to say without seeing code.. I have a few strategies running ok..

    Did you use the Strategy Builder? if so ..it should be fine.. Just check in Control Center/Strategies(TAB) that the box is ticked for that chart.

    If so might be something to do with how the OnBarUpdate() Method is initially set up.

    things like..


    if (BarsInProgress != 0)
    return;

    if (CurrentBars[0] < 20)
    return;


    Maybe add some Print() statements to see where the code flows too...look at the Output Window ..

    Regards
    traderkawk

    Comment


      #3
      Hello ark321,

      Thanks for your post.

      Is the strategy yellow in the Strategies tab of the Control Center and using the Wait Until Flat start behavior?

      If the strategy is green in the Strategies tab of the Control Center then it would be allowed to place trades.

      When a strategy is yellow (or orange on some monitors) in the Strategies tab of the Control Center, this means that the strategy entered a historical (theoretical) position in the historical data that has been loaded. It also means that you have "Wait until flat" selected for the 'Start behavior' option in the strategy parameters. All positions must be flat before real-time orders will begin.

      See the help guide documentation and forum thread below for more information.
      Strategy vs. Account Position — https://ninjatrader.com/support/help..._account_p.htm
      Start Behaviors — https://ninjatrader.com/support/help..._positions.htm
      Forum thread - https://ninjatrader.com/support/foru...ion#post811541

      Are you seeing the order submission methods being hit when using debugging prints in the strategy?

      If you enable TraceOrders, does TraceOrders report any ignored orders?

      Below is a link to a forum post that demonstrates how to use prints to understand behavior.
      https://ninjatrader.com/support/foru...121#post791121

      I look forward to assisting 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


        #4
        thanks for your pointers. I will review and get back if I need help. Thanks!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        65 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X