Yes, the code of course works. But the signals generated are wrong. You missed part of my first post:
> I have a mixed database with 5-minute data as the lowest resolution. > I've got EOD-quotes from Yahoo and intraday from OpenTick. ... >However, the result of my exploration show 5-minute bars where the gap >occurs, not daily bars. What am I missing? The periodicity under settings is set to 5 minutes, but the TimeFrameSet (inDaily) has no effect. Thus, it's the gap between 5- minute bars that's reported, not Opening Gaps from the daily bars. And THAT is what would require some sort of advanced workaround (I guess). --- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > > Hello, > > > Generally speaking: If functionality isn't easily available straight > > from the box, and a workaround would involve something like writing a > > COM object for a total beginner, that would be disappointing - agree? > No I don't agree. > You missed the point. > > There is NO workaround needed. All you need to do is to replace 0 (zero) > with correct Open (O). And your code will work. > > Best regards, > Tomasz Janeczko > amibroker.com > ----- Original Message ----- > From: "hrokling" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, December 13, 2007 10:48 AM > Subject: [amibroker] Re: Problem with mixed database and TimeFrameSet > > > > Thanks for pointing out the O vs 0 error. > > > > Generally speaking: If functionality isn't easily available straight > > from the box, and a workaround would involve something like writing a > > COM object for a total beginner, that would be disappointing - agree? > > Now, perhaps no workarounds are needed - but then why didn't you say > > so specificly instead of hinting that it might not be needed? > > > > Perhaps I'm biased, but in this cruel world I'm not used to support > > services handling "petty" inquiries like this ones - only > > installation issues and critical errors. But! Perhaps I'm all > > wrong! (Or maybe it's Christmas!) I'll certainly lower my threshold > > for emailing support next time. I just figured the Yahoo mailing list > > would be easier/quicker. > > > > Obviously when you're dealing with internet mailing lists/ newsgroups > > one has to take information for what it is. However, when someone > > puts out wrong/misleading information, there's usually also people > > who are thrilled to set the record straight. > > > > > > --- In [email protected], "Tomasz Janeczko" <groups@> > > wrote: > >> > >> What is disappointing and what workarounds ? > >> Why do you rely on opinion that you got from here instead of > > contacting support ? > >> > >> First of all your code has a major mistake, becuase you have typed > > 0 (zero) > >> instead of O (the LETTER "O"). If you did type correctly the O (or > > OPEN) > >> the result of your formula would be correct without any workarounds. > >> > >> OpeningGap = (0 - Ref (C, -1)); // ERROR HERE ! > >> > >> Best regards, > >> Tomasz Janeczko > >> amibroker.com > >> ----- Original Message ----- > >> From: "hrokling" <henning@> > >> To: <[email protected]> > >> Sent: Wednesday, December 12, 2007 1:21 PM > >> Subject: [amibroker] Re: Problem with mixed database and > > TimeFrameSet > >> > >> > >> > Thanks! A bit disappointing that you would have to look into > > serious > >> > workarounds to do multiple timeframes in an exploration. > >> > > >> > --- In [email protected], "murthysuresh" <money@> wrote: > >> >> > >> >> when u do exploration, the time frame used depends on what you > > set in > >> >> AutoAnalysis/Settings/Periodicity
