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

Re: [amibroker] Re: Help needed - 20 period low



PureBytes Links

Trading Reference Links

Dimitris,

The code I have given is correct. 

As to yours "the distance from L==LLV(L,20) may be greater", please think again.
 
The distance from L == LLV( L, 20 ) can not be greater than 19.

LLV( L, 20 ) is just one of the value (the lowest) during
last 20 bars. Therefore L == LLV( L, 20 ) must be met in one of those
last 20 bars (counting from 0..19)

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, September 02, 2003 2:32 PM
Subject: [amibroker] Re: Help needed - 20 period low


> Tomasz,
> I have a slight disagreement with your code.
> Your barssincelow can not be greater than 19.
> But, the distance from L==LLV(L,20) may be greater.
> If KK question was for 24 periods ago, instead of 4 periods ago, then 
> your code would give no solution.
> My proposal is
>  Cond=L==LLV(L,20);
> Solution=Cond AND Ref(BarsSince(Cond),-1)>3);
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
> wrote:
> > Hello,
> > 
> > barssincelow = LLVBars( Low, 20 );
> > 
> > lowsetup = barssincelow == 0 AND Ref( barsincelow, -1 ) > 3;
> > 
> > Hope this helps.
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "kk12338" <kk2628@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Tuesday, September 02, 2003 12:05 PM
> > Subject: [amibroker] Help needed - 20 period low
> > 
> > 
> > > Hi,
> > > 
> > > A setup I want to translate into AFL is :
> > > 1. Today is a new 20-peiod low, and
> > > 2. Previous 20-period low is at least 4 periods ago
> > > 
> > > I've written as follow but seems something is wrong,no signal was 
> > > seen.
> > > 
> > > lowsetup=L<ref(LLV(L,20),-1) and barssince(L<ref(LLV(L,20),-2))>3;
> > > 
> > > Any help appreciated.
> > > 
> > > Thanks
> > > KK
> > > 
> > > 
> > > 
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > --------------------------------------------
> > > Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > 
> > > Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> > > 
> > > 
> > >
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/