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

[amibroker] Reducing MA by 1 each day



PureBytes Links

Trading Reference Links

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?




------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/