Hi,
I use this one:
buypos=Flip(Buy,Sell);
Shortpos=Flip(Short,Cover);
SLbuy=Optimize("SLbuy",0.5,0.3,0.7,0.05); ////If you wanna optimize your
stops and profit targets
SLshort=Optimize("SLshort",0.5,0.3,0.7,0.05);
TPbuy=Optimize("TPbuy",1,0.9,1.2,0.05);
TPshort=Optimize("TPshort",1,0.9,1.2,0.05);
SL=IIf(Buypos,SLbuy,IIf(Shortpos,slshort,0));
TP=IIf(Buypos,TPbuy,IIf(Shortpos,tpshort,0));
ApplyStop(stopTypeLoss,stopModePercent,SL);
ApplyStop(stopTypeProfit,stopModePercent,TP);
Sorry for the strange line breaks...
Cheers,
Matthias
--- In [email protected], "Markus Witzler" <funny...@...> wrote:
>
> Hello,
>
> I want to specify different appystop conditions for long and short
posisions.
>
> How does AB recognize which one is for which trade?
>
> Thanks
>
> Markus
>
>
>
> __________ Information from ESET Smart Security, version of virus
signature database 4668 (20091207) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>