This is just some general information to help you get started This can be done with AFL and the method you do it be depends on how your basic exits are calculated. Generally for anything that references entry conditions for an exit requires a loop to define your values and trade signals, or at least ensure that any additional buy signals after the actual trade is entered are excluded as they will modify your trail price array values. You must also include the correct references for buyprice if you have trade delays. eg valuewhen(buy,buyprice) is ok if you trade zero delays, but for 1 bar delay you would need to use valuewhen(ref(buy,-1),buyprice)
-- 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 07/07/06, scourt2000 <[EMAIL PROTECTED]> wrote: > > I've been looking at the various stops in the backtester and didn't > find something that I do all the time in real-time trading: > > When I am up X number of ticks when trading the ER2, I move my stop to > a breakeven + 1 tick. The backtester has a trailing stop, but this is > different. I want to test just an initial move of a stop to lock in > either a breakeven trade or a certain amount of profit once I'm up on > a trade BEFORE I start trailing the stop. > > Can this be done simply? > > 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 > > > 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/
