I have an indicator that tallies a score based on certain pricing conditions. Every bar gets a score, which I display in a histogram. I decided to test the indicator by changing it's "Input series" from ES 06-13 (100 Tick) to the SMA indicator ... SMA(ES 06-13 (100 Tick),14) to be exact. The outcome was that my scores were averaged, giving me better results. Now I am trying to figure out how to code my indicator so I can effectively achieve the same results from within NinjaScript.
In my program my scoring is stored in a DataSeries object, which I call "netScore". I don't know how to run netScore through the SMA within NinjaScript to generate an averaged netScore. I've tried several structures, including netScore(SMA(14)[0] but I cannot get it to work.
And direction/advice is greatly appreciated!
Comment