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

Re: [amibroker] Reducing MA by 1 each day



PureBytes Links

Trading Reference Links

Check the posts for past couple of weeks for similar thing


On Thu, 3 Mar 2005 23:10:00 +1100, John Simovic <jsimovic@xxxxxxxxxx> wrote:
> 
> I have the following code below and I would like to reduce the MA in the
> variable dnband and by 1 for each day I do not get stopped. Anybody know how
> to achieve this goal?
> 
> dnBand = MA(Close,50) - StDev(Close,50) * 1.25;
> 
> so that if I wasn't stopped after the first day
> 
> dnband = MA(Close,49) - StDev(Close,49) * 1.25 and so on and so on.
> Any ideas?
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/