PureBytes Links
Trading Reference Links
|
You should use PeriodsBack, not PeriodsBack - 1. Also, you should define PeriodsBack before using it in the Sum operation.
See message 136157.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, Radek Simcik <radek.simcik@xxx> wrote:
>
> Hi Jim,
>
> I am learning too but this is what I find the best.
>
> LowsGoDown = 0;
> LowsGoDownArray = (L<Ref(L,-1));
> LowsGoDown = Sum(LowsGoDownArray,PeriodsBack-1)==PeriodsBack-1;
> PeriodsBack = Optimize( "PeriodsBack", 3, 3 ,3, 1 );
>
> Short = LowsGoDown;
>
> Trigger = short;
>
> The advantage of such style is that it is very easy to change and optimize.
> enjoy
>
> Radek
>
>
> On Fri, Mar 13, 2009 at 2:13 AM, jim fenster <normanjade@xxx> wrote:
>
> >
> > 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/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|