When you create a custom indicator, NinjaScript automatically prepares what other platforms call a function (method in NT), for example SMA is an indicator by itself but you can also call the calculation by using
[COLOR=#0000ff]double[/COLOR] mySMA = SMA(Close, 20)[0];

Comment