• 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

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:
    https://www.youtube.com/watch?v=K8v_...tu.be&t=48m45s

    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 tecmisc1, Today, 09:57 AM
      0 responses
      2 views
      0 likes
      Last Post tecmisc1  
      Started by mbesha, Today, 09:26 AM
      0 responses
      1 view
      0 likes
      Last Post mbesha
      by mbesha
       
      Started by Brillo, Today, 08:58 AM
      0 responses
      6 views
      0 likes
      Last Post Brillo
      by Brillo
       
      Started by avrege, Today, 01:48 AM
      2 responses
      13 views
      0 likes
      Last Post avrege
      by avrege
       
      Started by markbb10, Today, 07:14 AM
      0 responses
      7 views
      0 likes
      Last Post markbb10  
      Working...
      X