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

[amibroker] Re: Automatic Analysis- Are these things possible?



PureBytes Links

Trading Reference Links

You could probably do all of that just by using Optimize. The code 
will run once for each Optimize iteration and pump the output to the 
screen at which point you can use the Files button to export as html 
or csv.

If it's just one variable, use that variable as the result of the 
Optimize.

If it's multiple variables that you want to handle in sets, you can 
just create a counter variable to Optimize over and try using a 
switch or if-else to set the variables based on the counter value.

Not the most elegant, but perhaps a decent quick and dirty way to do 
what you want if there are not too many iterations to code up.

If this is something you'll want to use again with differing values, 
then not so good, since you'll have to keep updating the code. But, 
if it's a one time deal, it might be good enough.

e.g.

counter = Optimize("counter", 1, 1, 5, 1);

switch (counter) {
  case 1:
    var1 = ...
    var2 = ...
    break;
  case 2:
    var1 = ...
    var2 = ...
    break;
}


--- In amibroker@xxxxxxxxxxxxxxx, "James Quillian" <jquillian@xxx> 
wrote:
>
> I have some code that I need to run multiple times using the 
> automatic analysis feature.
> I need to find out
> 
> 1. Is it possible to insert code so that the progam would run 
> multiple times, like a loop, so as to not have to manually click 
the 
> AA icon?
> 
> 2. Is it possible to access an outside file so that variables can 
> change each time the program runs?
> For example, on the first run the program might use the following 
> variables, r200=46.7667; r120=85.1556;
> 
> but they would need to change on the next run.
> 
> 3.) Is it possible to write the results directly to a an outside 
> file as apposed to displaying them on the screen?
> 
> Thanks
> 
> James
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/