I've switched to NT8 some weeks ago and I struggle a bit to figure out what the best practice are in Ninja for writing functions that I could reuse generally in my various scripts (e.g. for calculations within indicators, strategies etc.)
Such a function could be as simple as:
{
return <do some math>
}
Some thoughts/questions:
- Where is the best place to store such functions?
- Would it make sense to put them in a separate namespace?
- When writing a new function, would you normally start with an indicator, defining the arguments, and omit the plotting options?
Thank you for hints and/or resources on this.
P
Comment