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

Re: [amibroker] Amibroker -> Plot Trailing Stop Level



PureBytes Links

Trading Reference Links

The Price Oscillator is a built-in AFL function.
Try in IB the

n1=10;
n2=20; 
Plot(OscP(n1,n2),"Price Osc",colorBlack,1);
Plot((EMA(C,n1)-EMA(C,n2))/EMA(C,n2)*100,"Analytic Price 
Osc",colorWhite,8);

to see.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "bruiserbbq" <bruiserbbq@xxxx> 
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
> 
> And here's my effort so far
> 
> Plot(EMA(Close,10),"Close", - EMA(Close,20), "Close", colorRed, 
> styleLine) * 100 ;
> 
> 
> Thanks in advance
> 
> Bruiser



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