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

Re: [amibroker] moving average coding (help)



PureBytes Links

Trading Reference Links

the basic moving average is sum(c,20)/20

If you want some examples of loops why not peruse the help screens
where the looping is discussed
Amibroker Formula language - AFL Reference Manual

You can also g through the AFL library on the AB website, or in the
yahoo group files, there are many examples there containing loops.
Just watch for the dates they were created as before about V4.30 (I
think) loops had to be done using Jscript of VBscript so the AFL
differs as you had to invoke the script reader. Later AB vesions have
the looping included in native AFL



On 10/31/05, eric paradis <thechemistrybetweenus@xxxxxxxxx> wrote:
> thats an extremely hard thing to code. good luck!
>
> You cant do it without vb or at least jscript because
> you need to access the float numbers somehow. Unless
> you wanted to do it manually. Either way, its a waste
> of time because woods theory is based on subjective
> studies, and he has never bothered to get someone to
> backtest his strategy. Just my two cents.
>
>
>
> --- rasepi <rasepi@xxxxxxxx> wrote:
>
> > any one can give me the afl code for the simple
> > moving average
> > for 20 days
> > i need the native code with loops (for ....
> > IF...ELSE....)
> > not the formula
> > i need this to learning programming
> > i have test many tests without result
> >
> > thanks for help
> > my project is to coding the float analysis indicator
> > without
> > VB scripts (not works on my computer
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/