Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

My strategy Stopped working after few changes, reverted them but cant find the mistak

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

    My strategy Stopped working after few changes, reverted them but cant find the mistak

    I am trying to come up with my own strategy, It worked up until last week. trying to workout some potential weaknesses, I made some changes that seemed to make it stop working. I tried to revert the changes but still cant find the error. I'm having no luck. Is there anyone here that could take a look at it and see if they have better luck?

    #2
    Hi Yandychang,

    I'd would be willing to take a look for you if you post the script.

    That said, the best way to debug your script to add prints to the code using the Print() command.

    If you are looking for where the script is halting, add prints every few lines and see where the prints stop.

    If you are looking at a particular branching command (if statements), then you can print all the values used in that branching command to see why the conditions evaluated the way they did.

    Prints will go to the Output Window. (Tools -> Output Window...)

    Below is a link to the help guide on Print().
    http://www.ninjatrader.com/support/h.../nt7/print.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks ChelseaB:
      I figured it out, Looked it up in the log screen, seems to be working now.... I will take a look at the print() command since sometimes I want to see the values of my variables and DataSeries....

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      69 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      312 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      306 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      147 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      111 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X