PDA

View Full Version : Code->test/debug->change code->retest ... cycle process


bbarroux
10-02-2007, 07:31 AM
Hi,

I'm facing what is probably a beginner issue, i searched the forum and documentation, but i couldn't find the solution. Sorry if this issue has already been discussed.

I'm developping a quite basic strategy, which is quite easy, thanks to the good code editor and the good documentation. However, I'm not comfortable with the testing/debugging process. I'm testing whith the simulated data feed. i'm using the strategy tab to launch my strategy, and when i want to change something, i stop the strategy, go back to the editor, change my code, compile again. Then if i restart the strategy, i have the feeling that it is still the old one being launched.
If i create a new strategy, the strategy tab quickly becomes a mess, and at some point, all i can do is restart NT.
Also, i'm not quite clear about when the "initialize" method is triggered. I have the feeling that it may be triggered a multiple time. I also noticed that when I'm launching a new strategy (in strategies tab), all my strategies initialize functions are triggered, whatever strategy I have chosen in the strategy launch window. this is a bit confusing.

So could you please give me an insight about what would be the best practice for this code - test -change -retest process?

Thank you in advance.

B.

NinjaTrader_Dierk
10-02-2007, 07:40 AM
- Initialize() is called for any temporary strategy instance created.
- Restarting a strategy e.g. on chart will start a new version of your updated strategy.

bbarroux
10-02-2007, 10:41 AM
Hi Dierk,

Thank for answering me. If I do it from the chart window, I indeed don't have to deal with the mess generated in the strategies tab, which makes life much easier.

If I may suggest sthg, the process would be slightly easier if the strategy popup (in chart window) was not modal and/or if it kept the last parameters used when you start the strategy.

Regards,
Bertrand

NinjaTrader_Dierk
10-02-2007, 12:44 PM
Thanks for your suggestions. We'll add them to the list.