RE: [amibroker] Setting up favourites list

2007-05-11 Thread David Smith
Graham unreal, that was so simple. I ended up running as below as the current beta doesn't show watchlists in the pickdown menu over 255 (the data provider has a lot more now). Buy = InWatchList(1288); CategoryAddSymbol("",categoryFavorite,0); Thanks so much, that saved me reinstalling the l

Re: [amibroker] Setting up favourites list

2007-05-11 Thread Graham
you could go simpler and run scan on the watchlist buy =1; CategoryAddSymbol("",categoryFavorite,0); -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 12/05/07, David Smith <[EMAIL PROTECTED]> wrote: Thank

RE: [amibroker] Setting up favourites list

2007-05-11 Thread David Smith
Thanks Graham. Using the help on the fuction, I was thinking of something like this: function CreateFavouritefromWatchList( listnum ) { // retrive comma-separated list of symbols in watch list list = CategoryGetSymbols( categoryWatchlist, listnum ); Average = 0; // just in case there are no watch

Re: [amibroker] Methods for speeding up AFL code

2007-05-11 Thread Dennis Brown
Tomasz or anyone else, Now I have a chicken and egg problem. I want to tell if any parameter has changed. My idea was to have two variables --the old value and the new value: new = ParamToggle("Something","ON|OFF",0); //new is recycled for each parameter IF (new != old) {old = new; paramChan

[amibroker] Data vendors with unadjusted and delisted stock data

2007-05-11 Thread serkhoshian777
Hello, Can you recommend any vendors (fee or free) who offer: 1. Unadjusted stock data and/or 2. Delisted stocks I know CSI offers #2. Thanks for any responses. Kind Regards, Gary

RE: [amibroker] script to explore. some help needed

2007-05-11 Thread dingo
1. dunno 2. check your settings for the report type. 3. I don't think that's avail via COM. d > -Original Message- > From: amibroker@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of murthysuresh > Sent: Friday, May 11, 2007 10:14 PM > To: amibroker@yahoogroups.com > Subject: [am

RE: [amibroker] Create database

2007-05-11 Thread dingo
I think if you just open the database with the path of the new one that it will be created. d > -Original Message- > From: amibroker@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of nickhere > Sent: Friday, May 11, 2007 10:16 PM > To: amibroker@yahoogroups.com > Subject: [amibrok

Re: [amibroker] Setting up favourites list

2007-05-11 Thread Graham
you could try running categoryaddsymbol in analysis -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 12/05/07, David <[EMAIL PROTECTED]> wrote: > Hi, does anyone know if is there a way to import one of the watc

[amibroker] Create database

2007-05-11 Thread nickhere
is there a com command that can create a new database? like Dim Ami As Object Ami = CreateObject("Broker.Application") ami.createdatabase(yahoo) ami.loaddatabase(yahoo)

[amibroker] script to explore. some help needed

2007-05-11 Thread murthysuresh
I have this script to do my scanning How can i customise it to do the following 1. How can i set the "Wait for backfill" flag 2. I get error "detailed report not available " popup. Not sure why? 3. Configure the database to be EOD data programatically Thanks Seede /* create AB object */ AB = ne

[amibroker] Range Bars

2007-05-11 Thread gnader_2000
Anyone know if we have ragne bars implemented yet? I asked about a year ago and was wondering if: a) someone has coded for range bars b) implemented within AB Thanks in advance, George

[amibroker] Setting up favourites list

2007-05-11 Thread David
Hi, does anyone know if is there a way to import one of the watchlists to the favorites folder? Cheers, Dave

[amibroker] Coding a combined buy/sell trigger

2007-05-11 Thread David
Hi, I am trying to convert a code to show the entry & exit triggers of my system, holding the entry trigger until the exit condition & resetting. I had a code from another program but having problem converting. Can anyone assist? My old code is.. entry:= EntryConditions; Exit:= Exit COndtions;

[amibroker] scan and save results to file automatically

2007-05-11 Thread murthysuresh
Can i scan and save results to file automatically? Regards Seede.

[amibroker] Re: Help with AFL for simple system/test

2007-05-11 Thread Lester Vanhoff
Try this, but double check, I don't have any clear references identifying this indicator. /*** START ***/ // Stochastic MOM // Ref: http://finance.groups.yahoo.com/group/amibroker/message/109020 function StochMom(array, periods, smoothpds, smoothpds2) { mid = ( HHV(H,periods) + LLV(L,periods) )

[amibroker] Re: Help with AFL for simple system/test

2007-05-11 Thread Alan Nouray
Can you please tell me where can I get the code for Stochastic Momentum Index Trade by Bill Blau? Alan --- In amibroker@yahoogroups.com, "Creztor Tessel" <[EMAIL PROTECTED]> wrote: > > Hi Howard many thanks for the reply. Basically if the SMI crosses 0 and is > positive and rising it will buy a

Re: [amibroker] How to find the second lowest Low of the donchian channel ?

2007-05-11 Thread wavemechanic
If I understand - see if this produces what you want: 2ndchannellowback = valuewhen(ref(lowerchannelline, -1) < lowerchannelline, ref(lowerchannelline), -1), 2); Bill - Original Message - From: "Thomas" <[EMAIL PROTECTED]> To: Sent: Friday, May 11, 2007 9:21 AM Subject: [amibroker] H

[amibroker] plot sin(30)=1/2

2007-05-11 Thread doggy2050
how can i plot sin(30)=1/2 instead of -0.988031624 thanx in advance soumya

Re: [amibroker] Methods for speeding up AFL code

2007-05-11 Thread Dennis Brown
Tomasz, Thank you for your ATC suggestion. I have not used ATC before and in studying it now, I can see a possible use for it, though not for the current problem. Since I only process one stock in my indicator, I do not need to save compute intensive arrays with ATC. Just leaving the result

Re: [amibroker] ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread M. N. Busigin
Tomasz Janeczko wrote: > Hello, > > I decided to add multiple-field retrieval function to the next > release of ODBC plugin. This should be available in 2 weeks time > (due to other scheduled tasks). Tomasz, This is well appreciated. Thank-you. In the mean-time, I'll have to concentrate on t

Re: [amibroker] Methods for speeding up AFL code

2007-05-11 Thread Tomasz Janeczko
Hello, Then my advice is to use AddToComposite for computing intensive task. lasttimenum = StaticVarGet("lasttimenum"); // if you want it chart-specific you may add GetChartID() prefix/suffix if( ( Now( 4 ) - lasttimenum ) > 100 ) { // one minute passed sincce last recalc // do comp

RE: [amibroker] How to find the second lowest Low of the donchian channel ?

2007-05-11 Thread Thomas Z.
Hello, i have figured it out myself already. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Sent: Friday, May 11, 2007 3:21 PM To: amibroker@yahoogroups.com Subject: [amibroker] How to find the second lowest Low of the donchian chan

Re: [amibroker] Methods for speeding up AFL code

2007-05-11 Thread Dennis Brown
Tomasz, Thank you for the helpful suggestions. My replies below are for everyones benefit. You have done a great job in making the AFL fast. Unfortunately, I still need to speed up my stuff more. I don't need to recompute ALL the historical bar related stuff for every second, just some simple

Re: [amibroker] Methods for speeding up AFL code

2007-05-11 Thread Tomasz Janeczko
Hello, You really need to take a look at the following and I guess you will be able to rewrite your formulas to run 10 times faster. 1. Use Tools->preferences->Misc "Display chart timing" to find out which formula takes the most time to execute 2. Use AFL editor "Check" function to find out how

[amibroker] How to backtest using a swing low?

2007-05-11 Thread foginthehills
Hi, I want to create a SELL condition in a backtest that exits a position when the Close price falls 2% below the most recent swing low. Thinking of Gann or similar. I am not clear how to define the swing low - can someone give me some code how to do this in AFL? many thanks - Fog (Andy)

[amibroker] Methods for speeding up AFL code

2007-05-11 Thread Dennis Brown
Hello, I have run out of processing speed on my 2GHz core duo trading machine. I do a lot of indicator computing and have bogged down AB to the point where it will no longer respond to the UI functions like cross hairs or switching timeframes when I click the buttons --or even being able

[amibroker] How to find the second lowest Low of the donchian channel ?

2007-05-11 Thread Thomas
Hello, i can't find the solution right now. I am using a simple 20 period donchian channel and want to find the second lowest low of the channel. Can someone help ? I have tried the following code which isn't correct. function BandDn2(array,period) { LowerBand = Ref(LLV(array,period),-1); Lower

Re: [amibroker] Re: Does Amibroker have "volume profile" indicator?

2007-05-11 Thread Joe Landry
Would this work? PlotVAPOverlay( lines = 300, width = 5, color = colorGreen, vapstyle = 0 ); Hope this helps Joe - Original Message - From: troll To: amibroker@yahoogroups.com Sent: Thursday, May 10, 2007 4:29 PM Subject: [amibroker] Re: Does Amibroker have "volume profile

Re: [amibroker] ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread Joe Landry
Yeah! about the multi field access. This is not a big deal but while "in there", would you also take a look at closing the ODBC process when exiting the AFL? We spoke about how to do this at the AB Conference but I didn't get it. Best regards Joe PS: It was good to hear your voice again as

[amibroker] Pairstrading a Portfolio

2007-05-11 Thread mmike8090
Hi, as a relative newbie on Amibroke I´d like to do some tests on pairstrading and market neutral strategies. Therfore I have writte the following code to define a pair of 2 stocks or a pair of stock/index to be traded. I want to go long in the one and on the same time go short in the other stock

[amibroker] Currency Tickers

2007-05-11 Thread ed
Hey all, Can u please tell me how i get the tickers for the currency eg GBPUSD, etc etc Do you do this with amiquote or another program Tks Keep up the good work Ed

[amibroker] Re: ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread vlanschot
Excellent. Thank you ! PS --- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > > Hello, > > I decided to add multiple-field retrieval function to the next > release of ODBC plugin. This should be available in 2 weeks time > (due to other scheduled tasks). > > Best r

Re: [amibroker] ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread Tomasz Janeczko
Hello, I decided to add multiple-field retrieval function to the next release of ODBC plugin. This should be available in 2 weeks time (due to other scheduled tasks). Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "M. N. Busigin" <[EMAIL PROTECTED]> To: Sent: Fri

Re: [amibroker] ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread Tomasz Janeczko
Hello, I don't know if you have got any coding experience or not. If you have: you can create your own function that will assign multiple variables (arrays) in one call - full source code for ODBC plugin is provided If you don't have such experience: I can add such function on my own. Also: MS S

[amibroker] ODBC/SQL Universal Data/AFL plugin

2007-05-11 Thread M. N. Busigin
Hi, I've successfully stuffed my fundamental data into the MS SQL Server, and I'm quite pleased with the results. One issue I've run into, though, is the data access speed. The problem seems to be that I'm running 5-6 queries for various bits of data for each stock. The OdbcGetArraySQL() comma