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

Re: [amibroker] Please help!! - to Tomasz



PureBytes Links

Trading Reference Links



TJ,
 
 
why does AB give me always the date of the 
last day´s bar (if I select n=1 and all stocks in exploration mode) rather than 
the date of the bar the signal occurs, i.e. my condition is medt?
 
Conversely, if I select "current stock" and "all quotations", I´m given the 
days´ date when the condition is met.
 
Does the former situation serve a specific purpose? Otherwhise, I figure 
the date when a condition is met (even when n=1) is selected, seems to make mroe 
sense since otherwhise I have to eyeball the chart every time I want to see 
where exactly on the chart the condition is met. Even when I ask AB to giveme 
the the bar´s cum() number where the condition is met, that doesn´t save me much 
time either.
 
Thanks alot!
 
Markus
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Tomasz Janeczko 

To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Monday, October 28, 2002 8:56 
PM
Subject: Re: [amibroker] Please 
help!!

Markus,
 
Please note that Date column is included in each exploration 
automatically
(first is ticker, second is date/ time)
 
Alternativelly you can use DateNum() function to display 
date in YYYMMDD format
 
AddColumn( DateNum(),  "YYYMMDD" );
 
 
or Day(), Month(), Year functions:

AddColumn( Year(),  "year" );
AddColumn( Month(),  "month" );
AddColumn( Day(),  "day" );Best 
regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
IVA GmbH
To: <A title=amibroker@xxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, October 28, 2002 7:32 
PM
Subject: Re: [amibroker] Please 
help!!

Jayson,
 
thanks for your suggestion, but it´sstill 
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 title=jcasavant@xxxx 
href="">Jayson 
To: <A 
title=amibroker@xxxxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 

Sent: Monday, October 28, 20027: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>);
<SPAN 
class=517260218-28102002>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 where102 is 
the year 2002 , 10 is the month and 21 the day. 
<SPAN 
class=517260218-28102002>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 dateI´, 
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 face="Courier New" 
color=#0000ff>IIf<FONT face="Courier New" 
color=#000000>(Low<<FONT face="Courier New" 
color=#0000ff>Ref<FONT face="Courier New" 
color=#000000>(Low,-<FONT face="Courier New" 
color=#ff00ff>1<FONT face="Courier New" 
color=#000000>),<FONT face="Courier New" 
color=#0000ff>Cum<FONT face="Courier New" 
color=#000000>(1<FONT 
face="Courier New" color=#000000>),<FONT face="Courier New" 
color=#ff00ff>0);
B=A<<FONT face="Courier New" 
color=#ff00ff>1000;
C=A><FONT face="Courier New" 
color=#ff00ff>0;
Filter=1<FONT 
face="Courier New" color=#000000>;<FONT face="Courier New" 
color=#0000ff>
AddColumn(<FONT 
face="Courier New" color=#0000ff>Cum<FONT face="Courier New" 
color=#000000>(1<FONT 
face="Courier New" color=#000000>),<FONT face="Courier New" 
color=#ff00ff>"total barnumber"<FONT face="Courier New" 
color=#000000>,<FONT face="Courier New" 
color=#ff00ff>1.3<FONT face="Courier New" 
color=#000000>);
AddColumn(<FONT 
face="Courier New" color=#0000ff>ValueWhen<FONT face="Courier New" 
color=#000000>(B AND C,Low,<FONT 
face="Courier New" color=#ff00ff>2<FONT face="Courier New" 
color=#000000>),<FONT face="Courier New" 
color=#ff00ff>"low"<FONT face="Courier New" 
color=#000000>,<FONT face="Courier New" 
color=#ff00ff>1.3<FONT face="Courier New" 
color=#000000>);
AddColumn(<FONT 
face="Courier New" color=#0000ff>ValueWhen<FONT face="Courier New" 
color=#000000>(B AND C,<FONT face="Courier New" 
color=#0000ff>Cum<FONT face="Courier New" 
color=#000000>(1<FONT 
face="Courier New" color=#000000>),<FONT face="Courier New" 
color=#ff00ff>2<FONT face="Courier New" 
color=#000000>),"condition 
bar number",<FONT 
face="Courier New" color=#ff00ff>1.3<FONT face="Courier New" 
color=#000000>);<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. 
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.