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

Re: [amibroker] Execution of exploration code...



PureBytes Links

Trading Reference Links

WL = Param("Watchlist",56,1,63);

// But do this only once as you scan or explore SCAN code 3 Explore 4

if ( Status( "action" ) == 4 AND Status( "stocknum" ) == 0 ) // running an Explore and it's the first stock

{

// clear Watchlists used to store composite symbols of QP Sector Runs

ClearList = GetCategorySymbols(categoryWatchlist, WL);

for( i = 0; ( symC = StrExtract(ClearList, i) ) != ""; i++ )

{

CategoryRemoveSymbol( symC, categoryWatchlist, WL );

}

}

----- Original Message -----

From: dj9866
Sent: Wednesday, November 07, 2007 10:39 AM
Subject: [amibroker] Execution of exploration code...

Is there a way to have a segment of code execute only once within an
exploration? I have placed all coding, except that affecting static
variables, within a 'while' statement that executes only once. By
using _trace/debug, it is apparent that all coding is executed many
times and the static variables that I am using as counters are being
continually reset.

Thank you for your guidance.

__._,_.___

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




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

__,_._,___