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

Re: [amibroker] price range



PureBytes Links

Trading Reference Links


hmm I should read my post before sending them 

<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
David 
Holzgrefe 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Tuesday, February 20, 2001 5:33 
PM
Subject: [amibroker] price range

Hi tomasz
I was looking at  the afl and can'tseem to 
find a way to check for a price range maybe its something simple 
like
lowprice = close(close,0)>.50;
hiprice= close(,0)>1.50;
 
hmm looks like i found it
 
lowprice = close>.50;hiprice= 
close<1.50;hirange = lowprice <= hiprice;lowrange = hiprice 
>= lowprice;
 
buy = hirange and  lowprice;  this 
works /* buy=lowprice >= lowprice and hiprice <= hiprice;no finds 
all pricesbuy = lowrange >= hirange;   no find all under 
1.50*/