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

RE: [amibroker] DETECTING CURRENT TRADE



PureBytes Links

Trading Reference Links

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:

 

onBuy = Flip(Buy,Sell);

onShort = Flip(Short,Cover);

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

 

--

Terry

-----Original Message-----
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of martinod
Sent: Tuesday, May 30, 2006 06:38
To: AMIBROKER@xxxxxxxxxxxxxxx
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