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

RE: [amibroker] Re: Mooving average



PureBytes Links

Trading Reference Links

Thanks very much.

 

I make it like this:

 

P = ParamField("Price field",-1);

Periods = Param("Periods", 15, 2, 100, 1, 10 );

Back = Param("Back", 8, -100, 100, 1, 10 );

Up = Param("Up", 15, -100, 100, 1, 10 );

 

pokusny = Ref( MA(P,Periods), Back) + Up;

 

 

 

Plot( pokusny, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
ParamStyle("Style") ); 

 

 

  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Graham
Sent: Thursday, February 15, 2007 5:40 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Re: Mooving average

 

Sorry you are right

Indicator = Ref( MA(C,10), -2) + 1 ;

On 15/02/07, Ed Hoopes <reefbreak_sd@ <mailto:reefbreak_sd%40yahoo.com>
yahoo.com> wrote:
> Graham,
>
> May I suggest something is missing in the Indicator = . . . below?
>
> there are 3 right parens and only 2 left parens. Perhaps you could
> supply the missing function.
>
>
>
> --- In amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com,
Graham <kavemanperth@xxx> wrote:
> >
> > this is 10 bar MA of close price, shifted 2 bars to the right, and
> moved up
> > 1 dollar (or single price unit per Y scale)
> >
> > Indicator = Ref( MA(C,10), -2), 1 );
> >
> >
> > --
> > Cheers
> > Graham
> > AB-Write >< Professional AFL Writing Service
> > Yes, I write AFL code to your requirements
> > http://www.aflwriti <http://www.aflwriting.com> ng.com
> >
> >
> > On 15/02/07, Wes Smith <wes_zoltran@xxx> wrote:
> > >
> > > You want to read up on the param() and ref() function. It allows
> you to
> > > look at previous values in an array.
> > > For example
> > >
> > > blah = ref(Close,-2) ; // blah = the value of the close 2 bars
> ago.
> > >
> > > http://www.amibroke
<http://www.amibroker.com/guide/h_understandafl.html>
r.com/guide/h_understandafl.html
> > >
> > > ----- Original Message ----
> > > From: aleskresta <ales.kresta@xxx>
> > > To: amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com
> > > Sent: Wednesday, February 14, 2007 6:42:00 AM
> > > Subject: [amibroker] Mooving average
> > >
> > > Hi there,
> > >
> > > I need help, I want to construct my own "indicator", it is simple
> > > mooving average, but I want two more parameters, on which it will
> > > depend. First is horizontal shift (I mean, if this parametrs will be
> > > 2, my computed MA will be shifted 2 days or other time periods to the
> > > past) and second will be vertical shifting(if this will be 2, my
> > > computed MA will be shifted 2 dolars(or other currency) up. I am just
> > > starting with AFL,so please could u help me and send me any comments
> > > how to do this.
> > >
> > > Thanks a lot
> > >
> > > Ales
> > >
> > >
> > >
> > > Please note that this group is for discussion between users only.
> > >
> > > To get support from AmiBroker please send an e-mail directly to
> > > SUPPORT {at} amibroker.com
> > >
> > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > > http://www.amibroke <http://www.amibroker.com/devlog/> r.com/devlog/
> > >
> > > For other support material please check also:
> > > http://www.amibroke <http://www.amibroker.com/support.html>
r.com/support.html
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroke <http://www.amibroker.com/devlog/> r.com/devlog/
>
> For other support material please check also:
> http://www.amibroke <http://www.amibroker.com/support.html>
r.com/support.html
>
> Yahoo! Groups Links
>
>
>
>

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriti <http://www.aflwriting.com> ng.com

 


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM