i have build a few strategies in ninjatrader. i realize that i dont have a visual flow for the strategy and when i change it, i am scrambling how i put it in first place. how does one document the strategy and rules. its easy to build it but hard to remember when i maintain it.
I classify the chart patterns/strategies into various categories and I save those charts on my computer. And I label those patterns/strategies using some keywords. I'd go through those charts as and when necessary to refresh my memory. This helps me in my visuals.
Add detailed comments in the code to help you recall the logic later. https://ninjatrader.com/support/hel...glish.html?debugging_your_ninjascript_cod.htm
I use if-then-else statements to document my strategy for each scenario that could be encountered in my trading.
Good question. Documentation is a valuable artform in itself. Looking forward to what you decide to do. Software code documentation rules - https://www.dogpile.com/serp?q=Software+code+documentation+rules Process flow chart - https://www.dogpile.com/serp?qc=web&q=Process+flow+chart https://elitetrader.com/et/attachments/modeling-flow-png.283179/ https://elitetrader.com/et/threads/market-timing-and-style-rotation.366418/page-2#post-5585685
Following what has been said already, you can use code comments and then generate your documentation out of it. If you are using c# (it seems to be the language for ninja trader) you can use doc generators like: https://dotnet.github.io/docfx/ This idea comes from javadoc, the standard documentation generation tool for java. If you want any alternative for another language you can search for 'javadoc alternatives' and you will get the one for the language that you are using.