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

[amibroker] Re: Auto Update help please



PureBytes Links

Trading Reference Links

Hi Mario,

Below are two version, the first is a more basic forumla the second
contains some additional functionality:

1) Here is a 30 bar MA of the Close price pushed forward by 5 bars (-5).

Dma = Ref( MA( C, 30), -5 ); 
Plot( Dma, "Displaced MA", colorDarkRed, 1 );


2) This version basically does the same thing, it additionally includes parameters for
the moving average period and the shift(displacement) which can easily
be changed by right clicking the chart containing the plot and
selecting the Edit Parameter item from the popup menu.

Period = Param( "MA Period", 30, 5, 150, 5 );
Shift = Param( "MA Shift", -5, -50, 50, 5 );
Dma = Ref( MA( C, Period ), Shift ); 
Plot( Dma, "" + Period + " Period MA - Displacement(" + Shift + ")", colorDarkRed, 1 );


Best regards,
William Peters
www.amitools.com




Friday, July 9, 2004, 9:04:11 AM, you wrote:


M> What I meant was displacing the MA forward or backwards you can see
M> an example at prophet.net on their java charts just select add study
M> and select displaced MA. 

M> Thanks for the help.
M> Mario.


M> --- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen" 
M> <psytek@xxxx> wrote:



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