1. No. Any variable must be initialized before being referenced.

2. Yes, using custom backtester, you have access to all open 
positions on a bar by bar basis via findOpenPos, getFirstOpenPos, 
getNextOpenPos.

http://www.amibroker.com/guide/a_custombacktest.html

Mike

--- In [email protected], "Tomasz Lutelmowski" 
<tomasz.lutelmow...@...> wrote:
>
> Hello,
> 
> Is it possible in AmiBroker to:
> 1. get barssince(Buy) without initialising Buy at first ?
> 2. get position of system (long or short) for previous bar - Ref
(...,-1) ?
> 
> Regards,
> Tomek
>


Reply via email to