• 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

Strategies not executing trades

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

    Strategies not executing trades

    Hi,
    My strategies quit working on realtime testing as of last night. I even tested on a friend's Ninjatrader with same results. When I check to enable the strategy, it shows historical execution on the chart but no trades execute or show once checked (please see screenshot). My strategy is green in the console. I checked my trading hours settings and they all look good.
    Thanks for any guidance.

    #2
    Hello sciman,

    Thank you for your post.

    Do you see any errors related to the strategy in the Log tab of the Control Center?

    The first thing I would recommend would be to turn on the Order Trace function:

    Strategy Builder > Default Properties > More Properties > Trace Orders, or:

    if (State == State.SetDefaults)
    {
    TraceOrders = true;
    }

    Once you then recompile the strategy, you can open a new NinjaScript Output window under New > NinjaScript Output. This will print a log of any orders submitted by the strategy during while it's running, along with any ignored orders. You can then look through and see what may be occurring.

    Here is a link to our help guide that goes into more detail on tracing orders:
    https://ninjatrader.com/support/help...aceorders2.htm

    Trace orders alone may not give you the full picture of whether or not a trade should have been entered on a given bar, so adding prints to your strategy that will show in the NinjaScript Output window, with information on what the variables you're using for your conditions are on a particular bar, can be helpful.

    This forum post goes into great detail on how to use prints to help figure out where issues may stem from — this should get you going in the correct direction. You can even add these using the Strategy Builder.

    https://ninjatrader.com/support/foru...ns-not-working

    If you run into issues like we saw here, the above information will allow you to print out all values used in the condition in question that may be evaluating differently. With the printout information you can assess what is different between the two.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by odeifuor, Today, 09:05 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by jhontorres, Today, 12:16 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by KarstenKafl, 07-16-2020, 12:38 AM
    8 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DieSlower, Yesterday, 11:02 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by TomTownsend, Today, 11:35 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X