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

RE: [amibroker] Where´s the flaw?



PureBytes Links

Trading Reference Links


<SPAN 
class=010122817-29102002>Marcus,
this 
is an exploration?? try.......
<SPAN 
class=010122817-29102002> 
<SPAN 
class=010122817-29102002>filter=cum(1)>150;
<SPAN 
class=010122817-29102002>valuewhen(condition2,low,1)
<SPAN 
class=010122817-29102002> 
or 
alternatively
<SPAN 
class=010122817-29102002> 
<SPAN 
class=010122817-29102002>valuewhen(cum(1)>150 and 
condition2,low,1)
 
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: funnybiz@xxxx 
[mailto:funnybiz@xxxx]Sent: Tuesday, October 29, 2002 12:07 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Where´s the flaw?
Folks,
 
I´m trying to tell AB that one conditionshow come 
before another. My criteria of defining "b3fore" is the cum value of thope two 
conditions of which the first one has -let´s say- a cum value 0f 
150.
 
This doens´t work, and I don´t know 
why:
 
<FONT face=Arial 
size=2>Valuewhen(iif(condition2,cum(1),0)<150,low,1)
 
I´m trying to determine the low for the day on 
which condition two is fulfilled which should show a cum value <150 AT THE 
FIRST instance since condition 2 might ocur several times with a cum value 
smaller than 150!
 
Any ideas why it soesn´t wanna 
work????
 
Appreciate it!
 
MarkusPost 
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.