|
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-----
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,
|
- [amibroker] DETECTING CURRENT TRADE martinod
- RE: [amibroker] DETECTING CURRENT TRADE Terry
