Example #1
0
        public IList <double> Execute(ISecurity source)
        {
            var dip = ADXHelper.CalcDIP(source, Context, Period);
            var dim = ADXHelper.CalcDIM(source, Context, Period);

            return(ADXHelper.CalcADX(dip, dim, Period));
        }
Example #2
0
        public IList <double> Execute(ISecurity source)
        {
            var dip     = ADXHelper.CalcDIP(source, Period, Context);
            var dim     = ADXHelper.CalcDIM(source, Period, Context);
            var results = ADXHelper.CalcADX(dip, dim, Period, Context);

            Context?.ReleaseArray((Array)dip);
            Context?.ReleaseArray((Array)dim);
            return(results);
        }
Example #3
0
 public IList <double> Execute(IList <double> source1, IList <double> source2)
 {
     return(ADXHelper.CalcADX(source1, source2, Period));
 }