Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Works when back testing but does not in forward testing

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

    Works when back testing but does not in forward testing

    Hi,

    I've been working on a strategy for a few months now, I think I might have over complicated it. When I add it into a historical chart, I can see that it's doing all the calculations, drawing the lines and places orders, uses dynamic stops etc.. but when I let it for forward test, it doesn't seem like functioning. I can see any error in logs either. Strategy seems to be still active as well. Any idea what might be the reason or an easy way to figure it out? Other wise I might have to start from scratch and add elements one by one to see what's causing the issue.

    Thanks
    M

    #2
    Hello mntemel,

    Thank you for your note.

    I would suggest analyzing where you would expected to have had your strategy take a trade in real time, then add prints to the script as a means of determining what the issue is.

    I’ve provided a link to a youtube video which covers an example of using prints to understand behavior:


    I’ve provided a link covering debugging which you may find helpful.
    Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418

    If you try the above and still unable to figure out the issue, please leave the print statements in the script and you can upload a copy and I'll take a look and see if anything jumps out.

    To export a NinjaScript from NinjaTrader 8 do the following:
    From the Control Center window select Tools -> Export -> NinjaScript...
    Click Add>Select the indicator>OK>Export.
    Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Alan, much appreciated!
      M

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      133 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 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
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X