PureBytes Links
Trading Reference Links
|
Paul, Good to know this thread is helping you as well. Normally, I wouldn't hesitate to put up the entire AFL code here but there are some aspects of the code that might infringe copyright (the code is based on a published work). I will try to obtain the author's clearance - if received, I will place the entire code either here or in the Amibroker library. In the meanwhile, if there are bits of your coding that you need help with, there are plenty of generous folk here who'd be glad to help (even I might :-) ) Cheers, Lal ----- Original Message ---- From: paulradge <paulradge@xxxxxxxxxxxxxxx> To: amibroker@xxxxxxxxxxxxxxx Sent: Wednesday, 19 March, 2008 8:12:24 AM Subject: Re: [amibroker] Plotting Vertical Lines at fixed interval
Bill n Lal
I
followed this thread with interest and even managed to plot a small Gann
Spiral working backwards in time from the the current bar,,,but i couldn't peice
together this thread due to lack of coding skills ,could one of you post the
result please,,,
i understood Lals question about ploting the cycle from
a chosen "click" on a selected bar and would like to do similar with this Spiral
but unsure how to ,,,and i'd also like to be able to run this Spiral forward in
time too from a selected bar which i think Lal is working on now,
i know what i want to do i just don't know how and have
progressed heaps since this thread started,,
please continue with the thread or feel free to contact
directly.
regards
Paul,,,,,
----- Original Message -----
Sent: Wednesday, March 19, 2008 6:41
PM
Subject: Re: [amibroker] Plotting
Vertical Lines at fixed interval
Bill, That
worked very well. Solves the problem 100%! Thank you for the kind
help. The one additional thing I would like to do is plot the vertical
lines beyond the last bar (Barcount() ). But let me struggle with
that! Regards, Lal
-----
Original Message ---- From: wavemechanic < timesarrow@xxxxxxxx h.net> To:
amibroker@xxxxxxxxx ps.comSent:
Wednesday, 19 March, 2008 12:26:12 AM Subject: Re: [amibroker] Plotting
Vertical Lines at fixed interval
Just replace cum(1)
with (cum(1) - selectedvalue( barindex( ))
Bill
-----
Original Message -----
Sent:
Tuesday, March 18, 2008 7:31 PM
Subject:
Re: [amibroker] Plotting Vertical Lines at fixed interval
Bill, Here's
the screenshot showing how the vertical plots appear. As you can see,
the vertical lines appear at a regular interval, but necessarily from the
selected bar. What I desperately want is that from the bar which is
currently selected, the vertical plots should appear on the right at the
specified interval (calculated by the AFL itself, which is not an
issue). My understanding is Cum(1) counts the bars right from the
very first bar for the ticker. That might explain why the plots appear
in the wrong place. Can we solve this by other
means? Thanks, Lal
-----
Original Message ---- From: Lal <klal25@xxxxxx co.uk> To:
amibroker@xxxxxxxxx ps.com Sent: Tuesday, 18 March, 2008 4:24:28
PM Subject: Re: [amibroker] Plotting Vertical Lines at fixed
interval
Bill, Thank
you for the response. I've incorporated your suggestion and it does
seem to work. However, there is a slight problem. Will post
again with a screenshot showing what is happening. But I think we're
nearly with the solution! Thanks, Lal
-----
Original Message ---- From: wavemechanic <timesarrow@xxxxxxxx
h.net> To: "AmiBroker, User" <amibroker@xxxxxxxxx
ps.com> Sent: Tuesday, 18 March, 2008 3:23:19 PM Subject: Re:
[amibroker] Plotting Vertical Lines at fixed interval
Nope, got it backwards:
plot(iif(barindex( ) >= selectedvalue(
barindex( )), .....
Bill
Try this:
plot(iif(selectedva lue(barindex( )) >=
barindex(), cum(1)%20 == 0, null), "", color, stylehistogram|
styleownscale) ;
Rise to the challenge for Sport Relief with Yahoo! for Good
No virus found in this incoming message. Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1333 - Release Date:
3/18/2008 8:10 AM
Rise to the challenge for Sport Relief with Yahoo!
for Good
Rise to the challenge for Sport Relief with Yahoo! for Good
__._,_.___
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
__,_._,___
|