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

Re: [amibroker] Does backtester have an initial breakeven stop capability?



PureBytes Links

Trading Reference Links

Graham,
I posted a similar question and was hoping that Amibroker would make life a bit less complex for the non-programmers of the world...If I understand you,if I set an initial maximum loss stop 6%,a profit target on 50%of my position up 20%,I can not SIMPLY "move my max loss stop" up to breakeven should the price of the stock reach the +20% profit target.I would need to get involved with looping functions...
That is the last thing i wanted to hear!!!
Is there a resource one could access that would help the novice programmer learn to do these tasks???
I purchased Amibroker for this sole purpose,and am a bit overwhelmed...

Thanks
Allan

----- Original Message -----
From: Graham <kavemanperth@xxxxxxxxx>
Date: Thursday, July 6, 2006 9:37 pm
Subject: Re: [amibroker] Does backtester have an initial breakeven stop capability?
> 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 <stevehite@xxxxxxxxxxx> 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 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
>