PureBytes Links
Trading Reference Links
|
<SPAN
class=119561120-28102002>Markus,
<SPAN
class=119561120-28102002>
are
you asking for the llv value between bars 100 and 150?
<SPAN
class=119561120-28102002>
if so
then we know the look back is 50 (150-50) so we just need the llv(l,50) value on
bar 150
<SPAN
class=119561120-28102002>
<SPAN
class=119561120-28102002> try....
<FONT
color=#282828 size=2>
x=<FONT color=#0000ff
face=Arial size=2>LLV<FONT color=#282828 face=Arial
size=2>(L<FONT
color=#282828 face=Arial size=2>,<FONT color=#ff00ff face=Arial
size=2>50);<FONT
color=#0000ff face=Arial size=2>
Plot(<FONT color=#0000ff
face=Arial size=2>ValueWhen<FONT color=#282828 face=Arial
size=2>(Cum<FONT
color=#282828 face=Arial size=2>(<FONT color=#ff00ff face=Arial
size=2>1)==<FONT
color=#ff00ff face=Arial size=2>150<FONT color=#282828 face=Arial
size=2>,x),""<FONT
color=#282828 face=Arial size=2>,<FONT color=#000000 face=Arial
size=2>colorBlue,<FONT
color=#ff00ff face=Arial size=2>4<FONT color=#282828 face=Arial
size=2>);
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: funnybiz@xxxx
[mailto:funnybiz@xxxx]Sent: Monday, October 28, 2002 1:32
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Please help!!
Jayson,
thanks for your suggestion, but itīs still somewhat
crippled.
Maybe TJ can implement another AFL function. Iīll
go ahead and ask him.
Do you have a suggestion how I could find the
lowest value, for instance th lowest low, for bar number 100 and
150.
I messed around with llv and lowest but couldnīt
figure it out how to implement the cum function!!
Thanks a lot
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A href=""
title=jcasavant@xxxx>Jayson
To: <A
href=""
title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
Sent: Monday, October 28, 2002 7:08
PM
Subject: RE: [amibroker] Please
help!!
<SPAN
class=517260218-28102002>Markus,
<SPAN
class=517260218-28102002>
<SPAN
class=517260218-28102002>Since you cannot use Date() in an exploration perhaps
you could live with....
<SPAN
class=517260218-28102002>
<SPAN
class=517260218-28102002>
AddColumn(<FONT
color=#0000ff>BarsSince(b <FONT
color=#000000>AND <FONT
color=#000000>C),<FONT
color=#ff00ff>"condition date"<FONT
color=#282828>);
the
alternative would be to use Datenum() but I find the format to be a bit
challenging as it is different then the usual 10/21/02 format
.
<SPAN
class=517260218-28102002>datenum would return this as 1021021 where 102is the
year 2002 , 10 is the month and 21 the day.
not
what you want but perhaps something you can
adapt.....
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: funnybiz@xxxx
[mailto:funnybiz@xxxx]Sent: Monday, October 28, 2002 9:43
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Please help!!
Dear folks,
I have two questions regarding the code below, if
you care:
1./ I need to find out when a given condition
happens in relation to its bar number, i.e. I -letīs say- want to find out
where a condition happens closest to bar number 1000. Can I use the
iif-function with "true result" being a cum-fun function which has multiple
values.
2./ when I use this scan, I seem to get the proper
results in terms of the low value and bar number, but the date Iī, given is
always the last barīs date INSTEAD of the dateīs bar when the conditon
happens. How can I get the conditionīs bar date, please?
Sorry for my ignorance and the waste of your
time<g>.
Markus
- - - - - - - - - -
A=<FONT color=#0000ff
face="Courier New">IIf<FONT color=#000000
face="Courier New">(Low<<FONT color=#0000ff
face="Courier New">Ref<FONT color=#000000
face="Courier New">(Low,-<FONT color=#ff00ff
face="Courier New">1<FONT color=#000000
face="Courier New">),<FONT color=#0000ff
face="Courier New">Cum<FONT color=#000000
face="Courier New">(<FONT color=#ff00ff
face="Courier New">1<FONT color=#000000
face="Courier New">),<FONT color=#ff00ff
face="Courier New">0);
B=A<<FONT color=#ff00ff
face="Courier New">1000;
C=A><FONT color=#ff00ff
face="Courier New">0;
Filter=1<FONT
color=#000000 face="Courier New">;<FONT color=#0000ff
face="Courier New">
AddColumn(<FONT
color=#0000ff face="Courier New">Cum<FONT color=#000000
face="Courier New">(<FONT color=#ff00ff
face="Courier New">1<FONT color=#000000
face="Courier New">),"total
barnumber",<FONT
color=#ff00ff face="Courier New">1.3<FONT color=#000000
face="Courier New">);
AddColumn(<FONT
color=#0000ff face="Courier New">ValueWhen<FONT color=#000000
face="Courier New">(B AND C,Low,<FONT
color=#ff00ff face="Courier New">2<FONT color=#000000
face="Courier New">),<FONT color=#ff00ff
face="Courier New">"low"<FONT color=#000000
face="Courier New">,<FONT color=#ff00ff
face="Courier New">1.3<FONT color=#000000
face="Courier New">);
AddColumn(<FONT
color=#0000ff face="Courier New">ValueWhen<FONT color=#000000
face="Courier New">(B AND C,<FONT color=#0000ff
face="Courier New">Cum<FONT color=#000000
face="Courier New">(<FONT color=#ff00ff
face="Courier New">1<FONT color=#000000
face="Courier New">),<FONT color=#ff00ff
face="Courier New">2<FONT color=#000000
face="Courier New">),"condition
bar number",<FONT
color=#ff00ff face="Courier New">1.3<FONT color=#000000
face="Courier New">);<FONT
face="Courier New">Post AmiQuote-related messages
ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|