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

[amibroker] LastValue()



PureBytes Links

Trading Reference Links

I use last value in my programs frequently because it is essential in RT trading.
 
I use it in this manner:
 
Debug = Param("Debug",0,0,1,1);
Trade  = Param("Trade",0,0,1,1);
 
Sel_Close = iif(Degug,SelectedValue(Close),iif(Trade,LastValue(Close),Close));
 
This allows me the flexibility of being able to debug program when in Debug mode, AND guarantee me that when in Trade mode that signals are the last value available. This prevents problems when I move the cursor around during trading and guarantees that the signals I generate are still based on last value and therefore valid.
 
Also when both Debug and Trade are off, I can do backtest.
 
Problem:  I understand that using LastValue() forces loading of entire array, potentially slowing down processing.
 
Quetion:  Is there a way around this, without losing the flexibility?
 
Thanks
 
Ara


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS