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

RE: [amibroker] Re: loop vs arrays



PureBytes Links

Trading Reference Links

Perfect. Thank you so much for the link.

 

Tom

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of bilbo0211
Sent: Tuesday, September 23, 2008 10:00 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: loop vs arrays

 

Maybe the formula in this message might help:

http://finance.groups.yahoo.com/group/amibroker/message/129490

--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> OK, I understand now. I suspect that you'll need to do the looping.
> The user guide example uses looping. So, at least you know it's not
> considered bad form in this instance.
>
> http://www.amibroker.com/guide/afl/afl_view.php?id=309
>
> Mike
>
> --- In amibroker@xxxxxxxxxxxxxxx, "TOMSTI" <tcsibor@> wrote:
> >
> > Mike,
> >
> >
> >
> > Swing high is when a bar's high is higher than either the preceding
> or
> > following bar. Swing low is where the bar's low is lower than the
> preceding
> > or following bar. I have no problem in doing that. At Ara's
> suggestion, I am
> > also able to use arrays to determine the previous swing highs/lows.
> The only
> > problem I have now is actually marking the top of the bar in
> question with
> > text, instead of just shapes. I cannot seem to find a method to get
> the x
> > and y coordinates that Plottext requires without doing it in a for
> loop
> > using Barcount.
> >
> >
> >
> > There are methods of obtaining Selected Bar coordinates and Mouse
> > coordinates using the low level graphics, but I cannot find a way to
> get
> > them as I need them without looping. I am sure there is a way, but I
> just
> > haven't found it.
> >
> >
> >
> > Tom
> >
> >
> >
> >
> >
> > From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
> On Behalf
> > Of Mike
> > Sent: Tuesday, September 23, 2008 2:00 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: loop vs arrays
> >
> >
> >
> > Hi,
> >
> > Your explanation is not entirely clear. Specifically; What is your
> > definition of a 3 bar swing high/low? Is it 3 consecutive up bars,
> or
> > just 3rd bar higher than preceding 2 though 2nd might be lower than
> > 1st, or just highest bar of any consecutive 3, or MA(C, 3), etc...).
> >
> > If you've already written the loop, post it here, for clarity, and
> > someone will point out how to do it using array manipulations
> instead.
> >
> > Mike
> >
> > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com> ,
> > "TOMSTI" <tcsibor@> wrote:
> > >
> > > Hello All,
> > >
> > >
> > >
> > > I need to plot a chart that first of all shows 3 bar swing high
> and
> > swing
> > > lows. After that, I need to show and mark if a swing made a higher
> > swing
> > > than the previous swing (or lower). I can do this using a loop and
> > > remembering the previous swing high or swing low bar, but am
> > wondering if
> > > there is any way of avoiding a loop and accomplishing the same
> > thing?
> > >
> > >
> > >
> > > Any thoughts appreciated. I have gone through the archives and the
> > knowledge
> > > base, but, unless I missed it, I did not find a solution.
> > >
> > >
> > >
> > > Thanks
> > >
> > > Tom
> > >
> >
>

__._,_.___

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

__,_._,___