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

[amibroker] Displaced Moving average



PureBytes Links

Trading Reference Links

William,

Your formula for the displaced moving average is not doing what you
intended.

You are adding 5 to the value of the Moving average...example is if the
value of moving average is 43 (+5) = 48..
/*********************************************/

Displaced Moving average:
y=Ref(MA(C,50),-3);//todays value shifted three days into the future

Plot(y,"",colorRed,styleLine);

Anthony



Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/