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

Re: [amibroker] Re: Neural Netowrks in AmiBroker



PureBytes Links

Trading Reference Links

Hi bruiserbbq,

Saturday, September 4, 2004, 1:15:10 PM, you wrote:

b> Hi gang, the code below is a Metastock Directional Oscillator and
b> I would like to test it in AB....but I haven't a clue as to how to
b> convert it to AFL....can someone oblige me please?

b> Directional Oscillator - Daily
b> PDI(45)-MDI(45);
b> Mov(PDI(45)-MDI(45),20,E);0;

Maybe even I can do this one -- maybe.

PDI and MDI are already AB built in functions, but they are +DI and
-DI in AB.

So, define what you want to call the result of the first line:

definition = +DI(45) - -DI(45);

Then use the correct AFL for moving averages, which is MA for simple,
and EMA for exponential.

EMA(definition, 20);

Then you will want to use a plot statement to see this line above on
a graph, if that is your goal.

Yuki



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