// scan the "Example.afl" for the last year for the current stock analyzis.LoadFormula(@"C:\Program Files (x86)\AmiBroker\Formulas\Systems\Example.afl"); analyzis.RangeFromDate = DateTime.Now.AddYears(-1); analyzis.RangeToDate = DateTime.Now; analyzis.ApplyTo = ApplyTo.CurrentStock; analyzis.Scan();