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

[amibroker] OBV WITH 10 PERIOD EMA



PureBytes Links

Trading Reference Links





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"; 






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.