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

[amibroker] Re: Struggling to Learn



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "brian_z111" <brian_z111@xxx> wrote:
>
> --- In amibroker@xxxxxxxxxxxxxxx, ricko@ wrote:
> >
> > Brian
> > Thanks for you interest in this.
> > Your indicator is not quite what I had in mind.
> > 
> 
> That's alright - it was just a starting point.
> 
> The hard part with working with someone else is understanding the 
> idea behind what they want to do - implementing it shouldn't be too 
> hard.
> 
> > Rather than bands, I was looking for one trend line that plotted 
> below the bars while in an uptrend, (x% below the Highest close of 
> the lookback period - the period increases each bar until the 
cross) 
> and when the bars crossed the trend line at the start of a 
downtrend, 
> it would jump up and plot above the bars (again, x% above the 
lowest 
> close).
> > 
> > There is a website at
> > http://konkop.narod.ru/Files/4_24_28.pdf
> > which is all in Russian (which I don't understand) but there is a 
> picture on page 2 .  It is the red line that I mean.
> > 
> > Also, QuoteTracker has the "Percentage Trend Indicator" which can 
> be applied to charts.  This is what I am after.
> 
> I can't get much from the Russian site.
> Their line doesn't appear to support the 'trend' as you are 
> suggesting - their plot looks more like a zig-zag indicator as 
> the 'trend' lines are cutting the bars.
> 
> I'll do a bit more with it over the next few days and add to the 
> existing Hi/Lo indicator post - sorry but I doubt if I can achieve 
> exactly what you want without more information.

Rick,

I have finished the example at the UKB >> Rick Osborn's Indicator

http://www.amibroker.org/userkb/category/uncategorized/

I haven't scrubbed it up - I left the messy code behind.

It does what you asked for but I won't be surprized if you don't 
think it does.

You didn't define what your trend is so I assumed you meant when a 
new Hi is first made = start of uptrend and when a new Lo is made == 
start of downtrend but you can change the trend to anything you want.

Also I think you misunderstood that in step one the HHV and the LLV 
(as plotted) do auto reset the periods to zero (in effect) when a new 
Hi or Lo is made - for HHV or LLV the periods is, in practice, the 
same thing as max periods.

Probably I won't do anymore with it except tidy up the bits that are 
of general interest and add them to the existing Hi/Lo post (I'll 
delete your temporary after a few days unless you particularly want 
me to scrub it up and leave it there as is).

Good luck with the indicator and AB - I find your indicator is more 
interesting without the buy arrows where you want them.

It is often the way that as a project progresses you find something 
unexpected in it or that your first idea doesn't turn out to be the 
best version (the closes crosses you want have a lot of whipsaw in 
them).

brian_z


> 
> I don't mind trying to help.
> I learn things and it makes an interesting post for the UKB.
> 
> Cheers,
> 
> brian_z
> 
>  
> > ----- Original Message ----
> > From: brian_z111 <brian_z111@>
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Tuesday, November 20, 2007 8:48:04 AM
> > Subject: [amibroker] Re: Struggling to Learn
> > 
> > Rick,
> > 
> > I made a start with your indicator (you have your own personal 
page 
> > at the UKB - one of the perks of being an author is free space - 
> > thanks Tomasz).
> > 
> > If you can tell me, in reference to the drawing what is the first 
> buy 
> > and sell signal you want on that chart (the signal line isnt a 
> > problem I will just move it down whatever percent you want ).
> > 
> > Look for Rick Osborne's Indicator at
> > 
> > http://www.amibroke r.org/userkb/ category/ uncategorized/
> > 
> > brian_z
> > 
> > --- In amibroker@xxxxxxxxx ps.com, ricko@ wrote:
> > >
> > > Yes, except that at point 3 the close would cross below the 
line 
> > (trend) and a sell signal would occur.
> > > I also want to plot the line (trend).
> > > 
> > > GP - you mentioned that "values Uptrend, Downtrend, Crossup, 
> > Crossdown, HV, and LV
> > > are all generated using only the initial values of Trend and 
> > Period.". 
> > > 
> > > But I thought defining them before the loop created arrays that 
> > could then be accessed in the loop.
> > > 
> > > 
> > > Rick Osborn 
> > > 
> > > 
> > > 
> > > ----- Original Message ----
> > > From: brian_z111 <brian_z111@ ...>
> > > To: amibroker@xxxxxxxxx ps.com
> > > Sent: Tuesday, November 20, 2007 4:49:10 AM
> > > Subject: [amibroker] Re: Struggling to Learn
> > > 
> > > --- In amibroker@xxxxxxxxx ps.com, "ricko8294_98" <ricko@> 
wrote:
> > > >
> > > > Hello
> > > > 
> > > > I am trying to learn AB and loops in particular. There seems 
to 
> > be 
> > > > something I'm not getting - and I have been playing with this 
> for 
> > the 
> > > > past several weeks.
> > > > 
> > > > I want to create a trend indicator that will track below an 
> > uptrend 
> > > > (x% below the highest high of the most recent "y" period) or 
> > track 
> > > > above a downtrend(x% above the lowest low of the most 
> recent "y" 
> > > > period), where the period "y" increases each day for the 
> duration 
> > of 
> > > > each trend up to a maximum level. 
> > > > 
> > > > When a cross of the price (C) and the trend occurs,(either up 
> or 
> > > > down) the period "y" resets to zero.
> > > 
> > > Hello Rick,
> > > 
> > > I think there might be another way.
> > > If I understand what you are trying to do then I am pretty sure 
> it 
> > can 
> > > be done using array processing.
> > > 
> > > No harm in trying.
> > > 
> > > Just looking at the high side first (if we solve that then it 
> > should be 
> > > easy to adapt to the low side):
> > > 
> > > starting hard left of screen (using barindex) -
> > > 
> > > 1) bar 1 is higher than bar zero and then bar two starts a 
> > downtrend 
> > > that continues for a few bars so bar 1 becomes the Highest High 
> for 
> > the 
> > > set periods (P)
> > > 
> > > 2) a line is set x% below the HHValue(High, P) say 2%
> > > 
> > > 3) when the price crosses up through the setpoint you want to 
> > trigger a 
> > > signal (Buy?) AND/OR reset the periods (P) to zero.
> > > 
> > > 4) since you want to reset the periods (P), when the closes 
> > crosses, 
> > > then......
> > > 
> > > P = barssince(close crossed the setpoint)
> > > 
> > > Is that what you want?
> > > If so I might have a go at it.
> > > 
> > > Brian_z
> > >
> >
>




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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/