PureBytes Links
Trading Reference Links
|
Hi Ed,
Thank you very much !
I have tried it out and indeed it fills the arrays.
Have changed the code to view every bar's status.
Filter
= 1;
AddColumn(BarsSince(Buy),"Bars since Buy");
AddColumn(BarsSince(Sell),"Bars since Sell");
AddColumn(IIf(BarsSince(Sell)<BarsSince(Buy),1,0) ,"Long position Open = 0, Closed = 1");
Regards
Thomas
www.tradingbasis.com
emp62 wrote:
I think that Equity(1) fills the
Sell and Cover arrays, like:
... your rules...
ApplyStop( stopTypeTrail, stopModePercent, 10, True );
Equity(
1 );
rgds, Ed
-----
Original Message -----
Sent:
Sunday, September 25, 2005 8:17 PM
Subject:
Re: [amibroker] Function "position status or similar" available ?
Hi Ed,
thanks, but this will not work if a position is already closed by the
applystop function.
Regards
Thomas
www.tradingbasis.com
emp62 wrote:
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 -----
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
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
|