PureBytes Links
Trading Reference Links
|
Hi Bruiser,
bruiserbbq wrote
> Hi all, I'm stuck trying to convert my metastock Price Oscillator %
> code over to AB. Can someone fill in the blanks for me?
> Here's the metastock code:
>
> (( mov(C,10,E) - mov(C,20,E) )/mov(C,20,E)) * 100
First you may define the formula as
PriceOscillator = (EMA(C,10) - EMA(C,20))/EMA(C,20)*100;
> And here's my effort so far
>
> Plot(EMA(Close,10),"Close", - EMA(Close,20), "Close", colorRed,
> styleLine) * 100 ;
and then plot it
Plot(PriceOscillator, "Price Oscillator", colorRed, styleline);
But if you prefer you can put it all in a statement
Plot((EMA(C,10) - EMA(C,20))/EMA(C,20)*100, "Price Oscillator", colorRed, styleline);
--
Franco
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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
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/
|