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

[amibroker] Equity()



PureBytes Links

Trading Reference Links

Hi,
 
I am working with Equity function and am having a problem I can't figure out.
 
This seems to work correctly:
 
StepEquity = LastValue( Equity( 1, 1, 126 ) ); // use n last quotes, n = 126
 
But if I go to AA and set range to: n last quotations, n = 126, then different results are returned when using defaults for last 2 args:
 
StepEquity = LastValue( Equity( ); // get last 2 args from AA settings
 
It looks to me like 1st version works correctly and 2nd version is not reading AA settings correctly. Anyone have any ideas? Thanks very much!
 
Steve


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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





YAHOO! GROUPS LINKS