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

Re: [amibroker] OBV WITH 10 PERIOD EMA



PureBytes Links

Trading Reference Links





 
 
EMAPDS=Param<FONT 
size=2>("EMA PDS"<FONT 
size=2>,10<FONT 
size=2>,5<FONT 
size=2>,50<FONT 
size=2>,1<FONT 
size=2>);
Plot(<FONT face="Courier New" color=#0000ff 
size=2>OBV(),<FONT color=#ff00ff 
size=2>"",<FONT color=#ff00ff 
size=2>4,<FONT color=#ff00ff 
size=2>1);
Plot(EMA<FONT 
size=2>(OBV<FONT 
face="Courier New" size=2>(),emapds),<FONT 
color=#ff00ff size=2>"",colorYellow,<FONT 
color=#ff00ff size=2>1);
Title="OBV "+ 
" With "<FONT 
size=2>+WriteVal<FONT 
size=2>(EMApds,1.0<FONT 
size=2>)+ " Period EMA"<FONT 
size=2>; 

<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  mrdavis9 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker tips 
  Sent: Wednesday, June 11, 2003 3:05 
  AM
  Subject: [amibroker] OBV WITH 10 PERIOD 
  EMA
  
  
  Someone developed this first code  for RSI 
  with a 10 period EMA.  I really like it, so I tried to creat a similar 
  one for OBV (on balance volume).  Below is my attempt to change the RSI 
  version to an OBV version.   I would sure appreciate someone posting 
  the correct way to  do this.  Ron D
  // this is the RSI version that 
  works.
  RSIPDS=Param<FONT 
  size=1>("RSI PDS"<FONT 
  size=1>,14,<FONT 
  color=#ff00ff size=1>5,<FONT color=#ff00ff 
  size=1>50,<FONT color=#ff00ff 
  size=1>1);
  EMAPDS=<FONT color=#0000ff 
  size=1>Param("EMA 
  PDS",10<FONT 
  size=1>,5,<FONT 
  color=#ff00ff size=1>50,<FONT color=#ff00ff 
  size=1>1);
  
  Plot<FONT 
  size=1>(RSI<FONT 
  size=1>(rsipds),""<FONT 
  size=1>,4,<FONT 
  color=#ff00ff size=1>1);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(EMA(<FONT 
  color=#0000ff size=1>RSI(RSIpds),emapds),<FONT 
  color=#ff00ff size=1>"",colorYellow,<FONT 
  color=#ff00ff size=1>1<FONT 
face=Arial>);
  
  Title=<FONT 
  face=Arial>"RSI "+ <FONT 
  color=#0000ff size=1>WriteVal(RSIPDS,<FONT 
  color=#ff00ff size=1>1.0)+ <FONT color=#ff00ff 
  size=1>" With "+<FONT color=#0000ff 
  size=1>WriteVal(EMApds,<FONT color=#ff00ff 
  size=1>1.0)+ " Period 
  EMA"; 
   
  // this is my attempt at an OBV version that does 
  not work.
  Key=OBV();
  OBVPDS=Param<FONT 
  size=1>("Key PDS"<FONT 
  size=1>,14,<FONT 
  color=#ff00ff size=1>5,<FONT color=#ff00ff 
  size=1>50,1<FONT 
  size=1>);
  EMAPDS=Param<FONT 
  size=1>("EMA PDS"<FONT 
  size=1>,10,<FONT 
  color=#ff00ff size=1>5,<FONT color=#ff00ff 
  size=1>50,1<FONT 
  size=1>);
  Plot<FONT 
  size=1>(Key(OBVPDS),""<FONT 
  size=1>,4,<FONT 
  color=#ff00ff size=1>1);<FONT color=#0000ff 
  size=1>
  Plot(EMA<FONT 
  size=1>(Key(OBVPDS),emapds),""<FONT 
  size=1>,colorYellow,1<FONT 
  size=1>);
  Title="OBV "+ 
  WriteVal<FONT 
  size=1>(OBVPDS,1.0)+ 
  " With "+<FONT 
  color=#0000ff size=1>WriteVal(EMApds,<FONT 
  color=#ff00ff size=1>1.0)+ <FONT color=#ff00ff 
  size=1>" Period EMA"; 
  Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 
  
<BLOCKQUOTE 
><FONT 
  face="Courier New">---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.488 
  / Virus Database: 287 - Release Date: 6/5/2003






Yahoo! Groups Sponsor












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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.