| 
 PureBytes Links 
Trading Reference Links 
 | 
Hello,
There are many ways to do that. BarsSince( Buy) works if you eliminate
redundant symbols either using ExRem or Equity(1), but most robust is just
using Portfolio backtester interface
http://www.amibroker.com/guide/a_custombacktest.html
Each trade and open position has BarsInTrade property that just holds
the information you require.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "dweilmuenster95125" <dweilmuenster95125@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, April 21, 2005 8:02 AM
Subject: [amibroker] Determining Age of Open Position
> 
> 
> Is there a way in AFL to determine the age, in bars, of an open position?
> 
> For example, in Metastock the function is Simulation.CurrentPositionAge.
> 
> barssince(Buy) won't do it for my purposes, because there may be
> additional Buys since the original entry.  
> 
> 
> Thanks for the help,
> David
> 
> 
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
>
------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
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
<*> 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/
 
 |