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

[amibroker] Mysterious Error


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: [amibroker] Mysterious Error
  • From: "Ken Close" <ken45140@xxxxxxxxx>
  • Date: Thu, 23 Oct 2008 09:20:14 -0400
  • Authentication-results: gwout1 smtp.user=ksclose; auth=pass (LOGIN)

PureBytes Links

Trading Reference Links

I have an equation that processes correctly every symbol I feed through it except one.  For this one symbol, the formula produces no result.  No error message, just no calculation. The symbol has what appears to be good price data.
 
In the function below, if I use the first line which is commented out, the symbol MKC gives blank values, but all other symbols I have tried calculate correctly.  If I change the function (as shown) and use the second line, then even MKC gives correct values.
 
Can anyone glance at these formulas and spot something that would cause my observed behavior.  Not expecting any testing (you do not have my data source) but do you know why this would occur as I described?
 
Thanks for any ideas.
 
This first does NOT work with MKC but with other symbols.
function RSISto(Price)
{
RSIStoc = EMA(100*(Price - LLV(Price,21))/(HHV(Price,21) - LLV(Price,21)),13);
RSIStoc = RSIStoc + RSIa(Price,14);
RSIStoc = RSIStoc/2;
return RSISTOC;
}
 
 
This modification DOES WORK with MKC as well as all other symbols.
function RSISto(Price)
{
RSIStoc = 100*(Price - LLV(Price,21))/(HHV(Price,21) - LLV(Price,21));
RSIStoc = RSIStoc + RSIa(Price,14);
RSIStoc = RSIStoc/2;
return RSISTOC;
}
 
 
 
 
 
__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___