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

Re: [amibroker] How-to find out if AA is processing the very first symbol?



PureBytes Links

Trading Reference Links

Title: Re: [amibroker] How-to find out if AA is processing the very first symbol?

InBackTest = Status("Action") == 5; // Change for Explore or Scan

if( Status("StockNum") == 0 AND InBacktest )

{

// code is only executed when the first ticker is processed by backtester

}


best regards,

herman


Friday, October 3, 2008, 5:34:03 PM, you wrote:



> Hi,


> when running AA (e.g. backtester) on a list of symbols I would like to

> execute some code only when the very first symbol is processed during

> that run.


> From flow point of view it should be like below:


> //--- cut here ---

> if(veryfirstsymbol == true)

> {

>   // do some code here

>   ...

> }

> // here is the normal backtester code

> ...

> //--- cut here ---


> But, I have no idea how-to setup any AFL code which can tell me that

> the very symbol of my list (market, whatchlist of whatever) is

> processed in the Automatic Analysis. It seems that AB does not have a

> feature like internal variable which will indicate a new pass

> automatically ...


> Does anybody have some tips how to implement this? 


> Thanks in advance and best regards,

> Markus




> ------------------------------------


> **** IMPORTANT ****

> This group is for the discussion between users only.

> This is *NOT* technical support channel.


> *********************

> TO GET TECHNICAL 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/



__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___