Great,
Just what I wanted,
Thank you,
AL ,
-----Message d'origine-----
De :
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] De la part de Terry
Envoyé : mardi 30 mai
2006 16:36
À :
amibroker@xxxxxxxxxxxxxxx
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:
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
YAHOO! GROUPS LINKS