how do you document strategy and rules

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.
 
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.
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
upload_2022-4-26_22-13-43.png

upload_2022-4-26_22-14-20.png
 
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 use if-then-else statements to document my strategy for each scenario that could be encountered in my trading.
 
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.
 
Back
Top