[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: static variable



PureBytes Links

Trading Reference Links

Forget my previous post, please.
The mistake was found right after posting:)
With kind regards, Dmitri

--- In amibroker@xxxxxxxxxxxxxxx, "dkourganov" <kourganov@xxxx> wrote:
> Hello,
> 
> Did anyone have problems with static variables during running 
> Analysis Object Model?
> I run AB, then I start script which contains common calling of AB 
> Analysis Object:
> 
> optimizationRoutine ="c:\\optimize\\AT\\sellmorning.afl";
> database="c:\\program files\\amibroker470.5\\tick";
> 
> oAB = new ActiveXObject("Broker.Application");
> oAB.LoadDatabase(database);
> 
> AA = oAB.Analysis;
> AA.LoadFormula(optimizationRoutine);
> AA.Optimize(2);
> 
> sellmorning.afl contains "staticvarsettext" and "staticvargettext" 
> commands.
> 
> When I run the file sellmorning.afl from AB by clicking 
on "Optimize" 
> button, all variables are set and get as I need and everything is 
OK. 
> But when I run above script it seems that neither of static 
variables 
> is set or get.
> Can anyone explain this fact, please?
> With kind regards, Dmitri





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/