PureBytes Links
Trading Reference Links
|
Check out the line AA.LoadSettings
Automation Object Model
/* create AB object */
AB = new ActiveXObject("Broker.Application");
/* retrieve automatic analysis object */
AA = AB.Analysis;
/* load formula from external file */
AA.LoadFormula("afl\\macd_c.afl");
/* optional: load settings */
// AA.LoadSettings("the_path_to_the_settings_file.abs");
/* setup filters */
/* backtest over symbols present in market 0 only (zero-based
number) */
AA.ClearFilters();
AA.Filter( 0, "market" ) = 0;
/* set apply to and range */
AA.ApplyTo = 2; // use filters
AA.RangeMode = 0; // use all available quotes
/* run backtest and display report */
AA.Backtest();
AA.Report(""); // empty file name means display report
--- In amibroker@xxxxxxxxxxxxxxx, "jnz88" <jnz88@xxx> wrote:
>
> I have the same question.
>
> Especially when we have EOD/intraday mixed db, if we can not switch
> in the code between daily and intraday, we can not use both data
> at the same time.
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "whitneybroach" <WhitneyBroach@>
> wrote:
> >
> > Yeah, confused here.
> >
> > How do I set periodicity for a backtest from code? My system
needs to
> > check a daily indicator, but trades and backtest reports need to
be on
> > the weekly timeframe.
> >
> > I don't see a Periodicity item in the SetOptions help.
> >
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006
|