Great,

 

Just what I wanted,

 

Thank you,

 

 

AL ,

 

-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Terry
Envoyé : mardi 30 mai 2006 16:36
À : [email protected]
Objet : RE: [amibroker] DETECTING CURRENT TRADE

 

Since you are talking about Explore, which is after all the Buy/Sell/Short/Cover have been defined, you can use Flip to do this:

 

>Flip(Buy,Sell);

>Flip(Short,Cover);

ActiveTrade = IIf(onBuy,1,IIf(onShort,-1,0));

 

--

Terry

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of martinod
Sent: Tuesday, May 30, 2006 06:38
To: [email protected]
Subject: [amibroker] DETECTING CURRENT TRADE

 

Hello,

 

Running a scan or an exploration I would like to know if the last trade was a buy or a short :

 

I tried EXREM : did not succed,

I tried EQUITY(1) : did not succed.

 

With Tradestation we had a reserved word : ActiveTrade = 1 = a buy; Activetrade =-1 = a short;

 

Cannot find a simple way to get this result in AFL.

 

Thanks for your help,

 

AL,





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




Reply via email to