Re: [amibroker] Re: Artificial ticker

2008-06-14 Thread Louis Préfontaine
Thanks! 2008/6/14 <[EMAIL PROTECTED]>: > > myindex = IIf( TimeNum()>094500 *AND* TimeNum()<154500, *Close*, *Null*); > > AddToComposite(myIndex, "~MyIndex", "X" ) ; > *Buy* = 0; > > > > Louis Préfontaine wrote: > > Hi, > > I'd like to use this formula to create a custom index, but I would like

Re: [amibroker] Re: Artificial ticker

2008-06-14 Thread apforex
|myindex = IIf( TimeNum()>094500 *AND* TimeNum()<154500, *Close*, *Null*); AddToComposite(myIndex, "~MyIndex", "X" ) ; *Buy* = 0;| Louis Préfontaine wrote: Hi, I'd like to use this formula to create a custom index, but I would like to remove the bars after 3:45PM and before 9:45 AM. Anyo

Re: [amibroker] Re: Artificial ticker

2008-06-14 Thread Louis Préfontaine
Hi, I'd like to use this formula to create a custom index, but I would like to remove the bars after 3:45PM and before 9:45 AM. Anyone can tell me how to do this? Thanks, Louis p.s. Here is what I tried, without any success: /* AddToComposite statements are for Automatic Analysis -> Scan *

Re: [amibroker] Re: Artificial ticker

2008-03-14 Thread Louis Préfontaine
ters. > > Donald F Lindberg > > > -- > *From:* amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Louis Préfontaine > *Sent:* Thursday, March 13, 2008 12:22 PM > *To:* amibroker@yahoogroups.com > *Subject:* Re: [amibroker]

RE: [amibroker] Re: Artificial ticker

2008-03-13 Thread Don Lindberg
PM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Re: Artificial ticker Hi, So using your code could be a good way to know if a provider is reliable. e.g. I use DTN and I see this pretty often so maybe DTN is not that reliable. I might switch to QuotePlus if they are reliable... and not

Re: [amibroker] Re: Artificial ticker

2008-03-13 Thread Louis Préfontaine
ehalf Of *Louis Préfontaine > *Sent:* Thursday, March 13, 2008 7:11 AM > *To:* amibroker@yahoogroups.com > *Subject:* Re: [amibroker] Re: Artificial ticker > > Hi, > > I tried the way you say and it seems to work. However, there are many > errors in the bars, with often lo

RE: [amibroker] Re: Artificial ticker

2008-03-13 Thread Don Lindberg
e not totally error free. Donald F Lindberg _ From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Louis Préfontaine Sent: Thursday, March 13, 2008 7:11 AM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Re: Artificial ticker Hi, I tried the way you say a

Re: [amibroker] Re: Artificial ticker

2008-03-13 Thread Louis Préfontaine
e symbols in that watchlist, not one for each stock? > > Donald F Lindberg > > > -- > *From:* amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Louis Préfontaine > *Sent:* Tuesday, March 11, 2008 8:15 AM > *To:* amibroker@yahoogr

Re: [amibroker] Re: Artificial ticker

2008-03-12 Thread Thomas Ludwig
Mike, sorry that I didn't answer your post earlier. > Thomas, > > You only need to run the formula once (use selected symbol option > from AA window on any symbol), That was the solution - extremely simple. I had applied the scan to the watchlist where I had put both symbols. After applying it

RE: [amibroker] Re: Artificial ticker

2008-03-11 Thread Don Lindberg
nald F Lindberg _ From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Louis Préfontaine Sent: Tuesday, March 11, 2008 8:15 AM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Re: Artificial ticker Hi Don, I tried to run this code using multiple-tickers and it did

Re: [amibroker] Re: Artificial ticker

2008-03-11 Thread Louis Préfontaine
Index", "I" ); > > *Buy* = 0; // required by scan mode > > /* this part is for Indicator */ > > V1=*Foreign*( "~MyIndex", "C") ; > > V2=*Foreign*( "~MyIndex", "I") ; > > *Plot* (( V1/V2),"My Index Close"

[amibroker] Re: Artificial ticker

2008-03-06 Thread Mike
Have a look at the user guide for AddToComposite. It covers this type of operation. http://www.amibroker.com/guide/a_addtocomposite.html Also, Hermen's guide, which goes into much more detail. http://www.amibroker.net/3rdparty/IntroToAtc.pdf Mike --- In amibroker@yahoogroups.com, "Louis Préfo

[amibroker] Re: Artificial ticker

2008-03-06 Thread Mike
Thomas, You only need to run the formula once (use selected symbol option from AA window on any symbol), then you can reference the symbol from any _other_ script as applied against any number of symbols. Or, if you are trying to include the code segment within some other script applied to mul

Re: [amibroker] Re: Artificial ticker

2008-03-06 Thread Louis Préfontaine
Hi Mike, I am interested in that too. I tried the formula, but it's only an average of both tickers. I'd like to find a way to create my own index. e.g. combine 5-10 tickers and adding all their close, high, low, open, volume to get a super-index for those 5-10 tickers. Is it possible? Thanks

Re: [amibroker] Re: Artificial ticker

2008-03-06 Thread Thomas Ludwig
Mike, thanks for your reply. In fact, I had tried the ATC solution before. The problem: When used as an indicator (as mentioned in my previous post) the chart looks as expected. However, with ATC the Open, High, Low and Close of both time series are added up. Thus, the logic of my formulas tha

[amibroker] Re: Artificial ticker

2008-03-05 Thread Mike
Have a look at AddToComposite http://www.amibroker.com/guide/afl/afl_view.php?id=7 AddToComposite(Foreign("846900","o"), "~MyDAX", "O"); AddToComposite(IIF(IsEmpty(Foreign("A0C4CA","h")),Foreign ("846900","h"),Max(Foreign("846900","h"),Foreign ("A0C4CA","h"))), "~MyDAX", "H"); AddToComposite(II