Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

analyze

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

    analyze

    i cant use the file that im using to code the bot in the analyze test
    Last edited by Adam5002; 10-17-2020, 04:13 AM.

    #2
    Hello Adam5002,

    Welcome to the NinjaTrader forums!

    Are you able to able to backtest the Sample MA Crossover included with NinjaTrader with the same data and see results in the Strategy Analyzer?

    Is the custom script able to compile without error?
    https://ninjatrader.com/support/foru...903#post540903

    Is the script code allowing orders to be placed in historical data or does the code require the State to be State.Realtime?

    If the strategy is applied to a chart, is there data with new bars appearing on the chart the Strategy is applied to?

    Is the strategy showing as enabled on the Strategies tab of the Control Center?

    If the strategy is in the Strategy Analyzer, is there data appearing on the Chart Display of the Strategy Analyzer?

    Are there errors appearing on the Log tab of the Control Center?


    If the strategy is getting data and the strategy is enabled or a backtest is run with no errors in the Log tab of the Control Center, then would likely indicate the logic conditions did not evaluate as true or orders are being ignored or cancelled.

    In order to better understand how the code is working, it will be necessary to use Print and enable TraceOrders to see how the conditions are evaluating and if orders are being submitted, ignored, or cancelled.

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

    Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders.

    Let me know if you need any assistance creating a print or enabling TraceOrders.

    Save the output from the output window to a text file and provide this with your next post.

    I'll be happy to assist with analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kenbun, Today, 12:21 PM
    0 responses
    7 views
    0 likes
    Last Post kenbun
    by kenbun
     
    Started by WNorton, Today, 11:23 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Spencer  
    Started by stafe, Today, 10:43 AM
    0 responses
    12 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by UltraNIX, Today, 09:13 AM
    3 responses
    18 views
    0 likes
    Last Post UltraNIX  
    Started by Tuxstuff215, Today, 06:32 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X