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

Re: [amibroker] Suite of Exits



PureBytes Links

Trading Reference Links

Barry applystops are place on line by themselves and do not form part of the sell statement
 
ApplyStop (1, 2,target,True ,2);
ApplyStop (0 ,2,stoploss, True,2);
ApplyStop( 3,1 ,8);
Sell Cross (psar, C);

Cover = Cross( C, psar);


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

 
On 10/3/05, Barry Seeger <bseeger@xxxxxxxxxxxxxxxx> wrote:

I want to have several ways of exiting forex trades. This code is not giving me an error signal, but it's not working as intended either:

 

Sell = ApplyStop( 1, 2,target, True,2 ) OR ApplyStop (0 ,2,stoploss, True,2 ) OR ApplyStop (3 ,1, 8) OR Cross (psar, C);

Cover = ApplyStop( 1, 2,target, True,2 ) OR ApplyStop (0 ,2,stoploss, True,2 ) OR ApplyStop (3 ,1, 8) OR Cross (C, psar);

 

I intend a trade to exit when either it reaches a target or initial stop or n bars or Close below a parabolic stop.

I would be grateful for any advice on what I'm doing wrong, and how to correct it, thanks.

 



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