Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Send Order at a time Backtesting

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

    Send Order at a time Backtesting

    Hello,

    Is there possible to backtes a strategy based on sending orders at a specific time of day? I was using Strategy Analyzer but the order never was sent & execute.

    BR

    #2
    Hello federicoo,

    Thanks for writing in.

    Yes, this is possible to do with the Strategy Analyzer. Without the code I can only speculate on the issue, but you might want to make sure your are checking for time without checking for the specific date. You can use ToTime() to accomplish this.

    If you are not seeing your logic execute when back testing in the Strategy Analyzer, you will want to add Print() statements to your code to observe the variables that are used for your entry conditions. For example, using Prints() may tell you that you are comparing exact DateTime's which would explain while the logic would not execute.

    You may reference the information linked below to utilize Prints() to debug your code and to use ToTime() to detect certain times.

    Debugging NinjaScript code - http://ninjatrader.com/support/forum...ead.php?t=3418

    ToTime() - https://ninjatrader.com/support/help...nt7/totime.htm

    Please let me know if I may be of further help.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    5 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X