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

Re: [amibroker] Function "position status or similar" available ?



PureBytes Links

Trading Reference Links

hi,
 
on a portfolio basis you will need the Backtester interface.
 
If you want to use explore on individual symbols then you could do something like:
 
AddColumn(LastValue(BarsSince(Buy)),"Bars since Buy");
AddColumn(LastValue(BarsSince(Sell)),"Bars since Sell"
);
AddColumn(IIf(LastValue(BarsSince(Sell))  < LastValue(BarsSince(Buy)),1,0) ,"Long position Open = 0, Closed = 1"
);

rgds, Ed
 
 
----- Original Message -----
From: "ThomasZ" <tzg@xxxxxxxxxxxxxxxx>
To: "Amibroker yahoogroup" <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, September 25, 2005 10:00 AM
Subject: [amibroker] Function "position status or similar" available ?

> Hello,
>
> How can i explore open positions ?
> I would like to check if there is currently a long or short position open ?
> It should also work if the position was stoped out through the build-in
> stop.
> Can someone help please !
>
> --
> Regards
>
> Thomas
>
www.tradingbasis.com
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~-->
> Try Online Currency Trading with GFT. Free 50K Demo. Trade
> 24 Hours. Commission-Free.
>
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/

>
>


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