PureBytes Links
Trading Reference Links
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 26 Jul 2004 05:35, jism1992 wrote:
> Can someone please tell me why this indicator is not working?
>
>
> // N-bar momentum
> function Mom( n )
> {
> return C - Ref( C, -n );
> }
> // N-bar fractional momentum
> function fracMom( n )
> {
> return C / Ref( C, -n );
> }
> // S, L- bar fractional MACD
> function fracMACD( s, L )
> {
> return EMA( C, s ) / EMA( C, L );
> }
I'm not sure what you mean by 'not working'. What did you expect it to do,
since you haven't asked AB to *DO* anything.
You've told it *how* to calculate Mom, fracMom and fracMACD, but (in the
quoted snippet) you haven't told AB to *use* these definitions.
What are you trying to achieve?, What do you expect to see?
See http://www.catb.org/~esr/faqs/smart-questions.html#goal
Let us know, I'm sure we can help.
Nigel
- --
Nigel Rowe
rho@xxxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFBBEAZBbmcM2pfckkRAm4wAKC9eXHQBrVMojNckA5LB58G2ZRjkgCfTq0x
farUjdUMKwiQRffsytASUko=
=WDDp
-----END PGP SIGNATURE-----
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|