PureBytes Links
Trading Reference Links
|
This is not correct. If you want 3 consecutive lows you need to have a code like
Buy = Sum(Low < Ref(Low, -1), 2) == 2;
The comparison Low < Ref(Low, -1) counts for one lower low.
Radek
On Fri, Mar 13, 2009 at 7:10 AM, Mike <sfclimbers@xxxxxxxxx> wrote:
Buy = Sum(Low < Ref(Low, -1), 3) == 3;
Mike
> If I wanted to buy for example when you make three lower lows. How do I write this without doing it the long way? You know like Buy= ref(l,-1)<ref(l,-2) etc. Im not lazy or anything. Im just trying to learn the language. Whats the way to loop something like this?
>
> Thanks,
> Jim
>
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|