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

Re: [amibroker] AmiBroker list volumes.



PureBytes Links

Trading Reference Links

I got the most of this MS formula converted but having trouble and
could use a some help with the "if" part.

For some reason it doesn't like if.

Dominick

//Reverse Engineered RSI-Low
 
wildperhigh=Param("Wilder Time Periods High",14,1,100);
valuelow=LLV(RSI(wildperhigh*2),wildperhigh*2);
expperlow=2*wildperhigh-1;
 
//Average Up Close-Low
auclow=MA(if(C>Ref(C,-1),C-Ref(C,-1),0),expperlow,E);
 
//Average Down Close-Low
adclow=MA(if(Ref(C,-1)>C,Ref(C,-1)-C,0),expperlow,E);
 
xlow=(wildperhigh-1)*(adclow*valuelow/(100-valuelow)-auclow);
if(xlow>=0,C+xlow,C+xlow*(100-valuelow)/valuelow); 



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/