how can I structure my code better.
There are variants like
- inheritance
- Trail
For a better overview, I would like to change something.
Current
public class MyFinalIndicator: Indicator
{
// code
}
option A (my imagination)
protected class MyIndikatorA: Indicator
{
// code small basic Part
}
protected class MyIndikatorB: MyIndikatorA
{
// code small extension
}
public class MyFinalIndikator: MyIndikatorB
{
// code small extension
}
option B (Trails)
How exactly I use it in NinjaTrader for classes "Trails" for "MyFinalIndikator" is not entirely clear to me.
And I can't use "protected class" for inheritance. But with "public" the indicator is visible.
Can I somehow hide the indicator otherwise?
Does anyone have a tip on how I can better structure a large class in NinjaTrader?
Comment