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

RE: [amibroker] OBV WITH 10 PERIOD EMA



PureBytes Links

Trading Reference Links




OBV 
does not require a period therefore your code resulted in a syntax error. 
Try...
<SPAN 
class=691531513-11062003> 
<FONT 
color=#282828> 
 <FONT 
face=Arial>
EMAPDS=Param("EMA PDS",10,5,50,1<FONT 
color=#282828><FONT color=#0000ff face=Arial 
size=2>);
 
Plot(<SPAN 
class=691531513-11062003>obv(),""<FONT 
color=#282828>,4<FONT 
color=#282828>,1<FONT 
color=#282828>);<FONT 
size=2>
Plot(EMA<FONT 
color=#282828>(Key,emapds),""<FONT 
color=#282828>,<FONT 
color=#000000>colorYellow<FONT 
size=2>,1<FONT 
color=#282828>);<FONT 
color=#0000ff>
Title="OBV " + " With "+WriteVal(EMApds,1.0)+ " Period EMA"<FONT 
color=#282828>; 

 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: mrdavis9 
[mailto:mrdavis9@xxxxxxxxxx]Sent: Wednesday, June 11, 2003 3:06 
AMTo: amibroker tipsSubject: [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);

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. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.