I think you'll have to build a loop and define your own stops. I like to use temporary variables such as myBuy instead of BUY, then apply the results using "normal" Buy = myBuy; Sell = mySell; and so on after the loop is finished. You will need to track whether you are on a Buy or a Short to know which stop to use. -- Terry -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of broman1003 Sent: Thursday, July 27, 2006 15:25 To: [email protected] Subject: [amibroker] Re: Profit target
--- In [email protected], "broman1003" <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to build a trading system where I would like to use a > profit target. I began by using the ApplyStop function but that one > does not allow you to specify a different target for long resp short > trades. Is there an easy way around that? > Kind regards, > /Fredrik > Anyone? 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 Yahoo! Groups Links 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
