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

RE: [amibroker] moving averages envelop



PureBytes Links

Trading Reference Links

Uups,

there are multiple lines.

Use this one:

//Coded by Thomas Zmuck
//www.tradingbasis.com
//support@xxxxxxxxxxxxxxxx


periods = Param("Periods",5,3,30,1);
Percentage = Param("Percentage",5,0,10,0.5);

Middle = MA(C,periods);
LowerBand = Middle *(100-Percentage)/100;
HigherBand = Middle *(100+Percentage)/100;

Plot(C,"Close",6,128);
Plot(LowerBand,"LowerBand",4,1);
Plot(HigherBand,"HigherBand",4,1);
Plot(Middle,"Middle",5,1);


_ _ _ _ _ _ _ _ _ _ _ _ 
Best regards

Thomas Zmuck

www.tradingbasis.com
_ _ _ _ _ _ _ _ _ _ _ _ 


-----Original Message-----
From: Thomas Zmuck [mailto:tzg@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, November 10, 2004 1:28 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] moving averages envelop


Hi,

i have coded it for you. 
You can use it through the parameter window.

//Coded by Thomas Zmuck
//www.tradingbasis.com
//support@xxxxxxxxxxxxxxxx


periods = Param("Periods",5,3,30,1);
Percentage = Param("Percentage",5,0,10,0.5);

Middle = MA(C,periods);
LowerBand = Middle *(100-Percentage)/100;
HigherBand = Middle *(100+Percentage)/100;

Plot(C,"Close",6,128);
Plot(LowerBand,"LowerBand",4,1);
Plot(HigherBand,"HigherBand",4,1);
Plot(Middle,"Middle",5,1);
Plot(LowerBand,"LowerBand",4,1);
Plot(HigherBand,"HigherBand",4,1);
Plot(Middle,"Middle",5,1);



_ _ _ _ _ _ _ _ _ _ _ _ 
Best regards

Thomas Zmuck

www.tradingbasis.com
_ _ _ _ _ _ _ _ _ _ _ _ 


-----Original Message-----
From: traderix2003 [mailto:d.adam@xxxxxxx] 
Sent: Wednesday, November 10, 2004 12:51 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] moving averages envelop



I try to write a formula for a SMA ENVELOP:
SMA(21) center,an "above"  SMA(21) and a "below" SMA (21) calculated 
on a percent factor .

Could you help me?
Thank you. Traderix






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



 







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



 






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